Skip to content

Instantly share code, notes, and snippets.

@miguelmota
Forked from JeffPaine/i3-cheat-sheet.md
Last active May 3, 2024 21:16
Show Gist options
  • Star 47 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save miguelmota/e51b9a3c3a42202f058215ebb1d0ca72 to your computer and use it in GitHub Desktop.
Save miguelmota/e51b9a3c3a42202f058215ebb1d0ca72 to your computer and use it in GitHub Desktop.
i3 Window Manager Cheat Sheet

i3 Window Manager Cheat Sheet

$mod refers to the modifier key (window/command or alt by default depending on config)

General

  • startx i3 start i3 from command line
  • $mod+<Enter> open a terminal
  • $mod+d open dmenu (text based program launcher)
  • $mod+r resize mode ( or to leave resize mode)
  • $mod+shift+e exit i3
  • $mod+shift+r restart i3 inplace
  • $mod+shift+c reload config file
  • $mod+shift+q kill window (does normal close if application supports it)
  • $mod+space toggle focus

Windows

  • $mod+w tabbed layout
  • $mod+e vertical and horizontal layout (switches to and between them)
  • $mod+s stacked layout
  • $mod+f fullscreen
  • $mod+v split window vertically
  • $mod+h split window horizontally

Moving Windows

  • $mod+shift+<direction key> move window in direction (depends on direction keys settings)
  • direction keys
    • j left
    • k down
    • l up
    • ; right

Floating

  • $mod+shift+space toggle floating
  • $mod+mouse drag floating

Workspaces

  • $mod+[0-9] switch to another workspace
  • $mod+shift+[0-9] move a window to another workspace

Config

  • copy /etc/i3/config to ~/.i3/config (or ~/.config/i3/config)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment