2 min read

On i3 Cheatsheet


Mod key is either Alt or Windows.

Mine is Alt.

Movements

  • Vim bindings
    • j, k, l, ;
  • arrow keys
    • I’ve removed support for the arrow keys, just like I’ve disabled them in my Vim configuration.

These are often combined with the Mod key and others to facilitate moving focus and workspaces and windows.

When combined with an aforementioned key, I’ll just refer to it as a Move.

General

  • Create config file
    • i3-config-wizard in a terminal
  • Restart i3 / Refresh config file
    • Mod + Shift + r
  • Logout
    • Mod + Shift + e
  • Lock screen
    • i3lock in a terminal
    • In i3 config file:
      • bindsym $mod+shift+x exec i3lock
  • Set background image
    • sudo apt-get install feh
    • In i3 config file:
      • exec_always feh --bg-scale /home/kilgore-trout/wallpaper.jpeg

Workspaces

  • Create a terminal
    • Mod + Enter
  • Create a program
    • Mod + d
    • Opens the dmenu at the top of the screen
    • Type to filter the programs
  • Close a workspace
    • Mod + Shift + q

Windows

  • Move focused window
    • Mod + Shift + Move
  • Move focused window to another workspace
    • Mod + Shift + Number
  • Change window focus
    • Mod + Move
  • Create a new window vertically
    • Mod + v
    • Mod + Enter or Mod + d
  • Create a new window horizontally
    • Mod + h
    • Mod + Enter or Mod + d
  • Resize windows
    • Mod + r
    • Move
    • Esc to exit resize mode
  • Stack windows
    • Mod + s (s == stacking)
    • Mod + e to undo
  • Tabbed windows
    • Mod + w
    • Mod + e to undo

References