i3
Tiling window manager for Linux
(Default) Shortcuts
Section titled “(Default) Shortcuts”- The default modifier key is
Win, also calledMetaorCmd. In the following I just call itWin, because that corresponds to the logo/icon this key has on most keyboards.
| Shortcut | Function |
|---|---|
Win+D |
Start launcher (dmenu) |
Win+DownArrow |
Focus window below |
Win+E |
Switch container to split layout. If the container is already split, changes from horizontal to vertical split or vice-versa. |
Win+Enter |
Open terminal emulator |
Win+H |
The next window should be split horizontally (to the right) |
Win+J |
Switch between windows |
Win+LeftArrow |
Focus window to the left |
Win+RightArrow |
Focus window to the right |
Win+Shift+E |
Exit i3 |
Win+Shift+Q |
Close current window |
Win+Shift+R |
Reload i3 (after changing configuration) |
Win+UpArrow |
Focus window above |
Win+V |
The next window should be split vertically (below) |
Win+S |
Switch container to stacked layout |
Win+W |
Switch container to tabbed layout |
Resources
Section titled “Resources”Launchers
Section titled “Launchers”- dmenu - simple launcher
- davatorium/rofi - a themeable window switcher, application launcher and dmenu replacement
for_window does not seem to target window by class
Section titled “for_window does not seem to target window by class”Make sure to use the second string displayed for WM_CLASS by xprop.
My old config file
Section titled “My old config file”- From the good old FreeBSD times:
set $mod Mod4floating_modifier $modbindsym $mod+Return exec ssh-agent lxterminalbindsym Mod1+F4 killbindsym $mod+d exec --no-startup-id i3-dmenu-desktopbindsym $mod+j focus leftbindsym $mod+k focus downbindsym $mod+l focus upbindsym $mod+ae focus rightbindsym $mod+ISO_Level3_Shift focus leftbindsym $mod+Super_R focus downbindsym $mod+Print focus upbindsym $mod+(null) focus rightbindsym $mod+Shift+Left move leftbindsym $mod+Shift+Down move downbindsym $mod+Shift+Up move upbindsym $mod+Shift+Right move rightbindsym $mod+Shift+ISO_Level3_Shift move leftbindsym $mod+Shift+Super_R move downbindsym $mod+Shift+Print move upbindsym $mod+Shift+(null) move rightbindsym $mod+h split hbindsym $mod+v split vbindsym $mod+f fullscreenbindsym $mod+s layout stackingbindsym $mod+w layout tabbedbindsym $mod+e layout toggle splitbindsym $mod+Shift+space floating togglebindsym $mod+space focus mode_togglebindsym $mod+a focus parent#bindsym $mod+d focus childbindsym $mod+1 workspace 1bindsym $mod+2 workspace 2bindsym $mod+3 workspace 3bindsym $mod+4 workspace 4bindsym $mod+5 workspace 5bindsym $mod+6 workspace 6bindsym $mod+7 workspace 7bindsym $mod+8 workspace 8bindsym $mod+9 workspace 9bindsym $mod+0 workspace 10bindsym $mod+Shift+1 move container to workspace 1bindsym $mod+Shift+2 move container to workspace 2bindsym $mod+Shift+3 move container to workspace 3bindsym $mod+Shift+4 move container to workspace 4bindsym $mod+Shift+5 move container to workspace 5bindsym $mod+Shift+6 move container to workspace 6bindsym $mod+Shift+7 move container to workspace 7bindsym $mod+Shift+8 move container to workspace 8bindsym $mod+Shift+9 move container to workspace 9bindsym $mod+Shift+0 move container to workspace 10bindsym Mod1+Shift+Tab workspace prevbindsym Mod1+Tab workspace nextbindsym $mod+Shift+c reloadbindsym $mod+Shift+r restartbindsym $mod+q exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -b 'Yes, exit i3' 'i3-msg exit'"mode "resize" {bindsym j resize shrink width 10 px or 10 pptbindsym k resize grow height 10 px or 10 pptbindsym l resize shrink height 10 px or 10 pptbindsym ae resize grow width 10 px or 10 pptbindsym Left resize shrink width 10 px or 10 pptbindsym Down resize grow height 10 px or 10 pptbindsym Up resize shrink height 10 px or 10 pptbindsym Right resize grow width 10 px or 10 pptbindsym Return mode "default"bindsym Escape mode "default"}bindsym $mod+z mode "resize"bar {status_command i3status}new_window 1pixelhide_edge_borders bothfocus_follows_mouse noworkspace_auto_back_and_forth yesexec_always --no-startup-id sleep 1 && xrandr --output LVDS1 --auto --rotate normal --pos 0x0 --output VGA1 --auto --rotate normal --right-of LVDS1exec_always --no-startup-id sleep 1 && xsetroot -bg '#101010' -fg '#000000' -mod 3 3