i3 Window Manager
Basic commands
- open terminal: mod+enter
- exit: mod+shift+e
- reload config: mod+shift+c
- restart: mod+shift+r
- run command/configurations: i3-msg ..., (e.g. remove border:i3-msg border none)
source
Workspace
- change focus: mod+<number>
Window
- vertical+horizontal layout: mod+e
- tabbed layout: mod+w
- fullscreen: mod+f
- select all windows: mod+a
- move current window: mod+shift+[jkl;] (j: left, k: down, l: up, ;: right)
- change focus window: mod+[jkl;] (j: left, k: down, l: up, ;: right)
Run commands within i3 wm
# kill all window containing firefox
i3-msg '$mod+x [class="(?i)firefox"] kill'
List workspaces (debug)
i3-msg -t get_workspaces
Prompt (GUI) to store in bash variable
v=$(i3-input -P 'Value ?' | grep command | sed 's/command = //g')
source