Skip to content

Instantly share code, notes, and snippets.

@koad
Created August 9, 2025 03:17
Show Gist options
  • Save koad/283e72e0e4f402cbf6416a02f7094363 to your computer and use it in GitHub Desktop.
Save koad/283e72e0e4f402cbf6416a02f7094363 to your computer and use it in GitHub Desktop.
This document contains setup instructions and keyboard shortcuts for a Lenovo T480 (1920x1080) laptop running Linux.

Lenovo T480 Keyboard Shortcuts and Setup Guide

This document contains setup instructions and keyboard shortcuts for a Lenovo T480 (1920x1080) laptop running Linux.

Table of Contents

Prerequisites

Install the keyboard shortcut registration script:

wget -O ~/.local/bin/register-keyboard-shortcut https://raw.githubusercontent.com/koad/register-keyboard-shortcut/refs/heads/main/command.sh && chmod +x ~/.local/bin/register-keyboard-shortcut

Window Positioning Shortcuts

Set keyboard shortcuts for window positioning:

register-keyboard-shortcut 'bottom-left' 'wmctrl -r :ACTIVE: -e 0,-10,646,1938,446' '<Super>q'
register-keyboard-shortcut 'top-left' 'wmctrl -r :ACTIVE: -e 0,0,44,1565,980' '<Super>w'
register-keyboard-shortcut 'top-right' 'wmctrl -r :ACTIVE: -e 0,197,31,1731,975' '<Super>e'
register-keyboard-shortcut 'bottom-right' 'wmctrl -r :ACTIVE: -e 0,501,368,1366,607' '<Super>r'
Position Shortcut Command
Bottom-left <Super>q wmctrl -r :ACTIVE: -e 0,-10,646,1938,446
Top-left <Super>w wmctrl -r :ACTIVE: -e 0,0,44,1565,980
Top-right <Super>e wmctrl -r :ACTIVE: -e 0,197,31,1731,975
Bottom-right <Super>r wmctrl -r :ACTIVE: -e 0,501,368,1366,607

Workspace Management

Install the workspace name management script:

wget -O ~/.local/bin/change-workspace-name https://raw.githubusercontent.com/koad/workspace-names/refs/heads/main/command.sh && chmod +x ~/.local/bin/change-workspace-name

Register workspace name updating with Ctrl+Alt+Space:

register-keyboard-shortcut "Set Workspace Name" "$HOME/.local/bin/change-workspace-name" "<Control><Alt>Space"

Tab Management

Install the kill-all-tabs script:

wget -O ~/.local/bin/kill-all-tabs https://gist.githubusercontent.com/koad/9295c94e77e75223268efcf654ea7369/raw/d837d451cf9aaf9b3a98cee3151f15aba158c09b/kill-all-tabs.sh && chmod +x ~/.local/bin/kill-all-tabs

Register kill-all-tabs with Super+k:

register-keyboard-shortcut "Kill All Tabs" "$HOME/.local/bin/kill-all-tabs" "<Super>k"

Browser Shortcuts

Register browser shortcuts:

# Launch Google Chrome (personal profile)
register-keyboard-shortcut "Chrome - Personal" "gtk-launch chrome-personal" "<Super>g"

# Launch Brave in incognito mode
register-keyboard-shortcut "Brave - Incognito" "gtk-launch brave-public" "<Super>i"
Browser Shortcut Command
Chrome (Personal) <Super>g gtk-launch chrome-personal
Brave (Incognito) <Super>i gtk-launch brave-public
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment