Skip to content

Instantly share code, notes, and snippets.

@JeffPaine
Last active December 10, 2025 04:22
Show Gist options
  • Select an option

  • Save JeffPaine/cbdf57c3721546b14113 to your computer and use it in GitHub Desktop.

Select an option

Save JeffPaine/cbdf57c3721546b14113 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 (alt by default)

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 in place
  • $mod+shift+c reload config file
  • $mod+shift+q kill window (does normal close if application supports it)

Windows

  • $mod+w tabbed layout
  • $mod+e vertical and horizontal layout (switches to and between them)
  • $mod+s stacked layout
  • $mod+f fullscreen

Moving Windows

  • $mod+shift+<direction key> Move window in direction (depends on direction keys settings)
@N3RDIUM
Copy link

N3RDIUM commented Jul 16, 2023

i edited the config file and added two lines like this:

bar {
    position top
    status_command  i3blocks
}

And after restarting i3, nothing has happened. The status line remains the same (i3status). Has anyone here ever encountered the same issue?

@ninjarogue Did you remove the default bar config which was already there in the file?

@init-zhang
Copy link

how can i reset the window mode... i sometimes end up in weird layered modes such that the titlebar for a single window in a stack shows crazy shit like "V[S[V[Navigator]]]" ... there's gotta be a way to remove all those modes without closing the window right?

@erincerys if you move the window up or down the stack, it removes the V/S split mode and retains the window position in the stack. Same for tabbed move, except you move left or right.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment