This document contains setup instructions and keyboard shortcuts for a Lenovo T480 (1920x1080) laptop running Linux.
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
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 |
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"
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"
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 |