Skip to content

Instantly share code, notes, and snippets.

@gilbertw1
Created August 25, 2017 15:00
Show Gist options
  • Save gilbertw1/e5a29ce795f64f74d34df3d9c07bcdec to your computer and use it in GitHub Desktop.
Save gilbertw1/e5a29ce795f64f74d34df3d9c07bcdec to your computer and use it in GitHub Desktop.

XMonad Keybindings

Core

  • M-q Reload XMonad configuration
  • M-S-q Exit XMonad

Layout

  • M-SPC Switch to next layout in current workspace
  • M-S-SPC Reset layout in current workspace
  • M-f Switch to fullscreen layout

Windows

Navigation

  • M-h/j/k/l Move focus to window left/down/up/right
  • M-TAB Cycle to next window in current workspace
  • M-RET Move focus to master window

Actions

  • M-S-h/j/k/l Swap window left/down/up/right
  • M-C-h/j/k/l Expand/shrink window left/down/up/right
  • M-S-c Kill current window
  • M-, Increase master pane size
  • M-. Decrease master pane size
  • M-m Minimize currently selected window
  • M-S-m Restore most recently minimized window
  • M-C-RET Swap current window with one in master position
  • M-<mouse-1> Drag and move window (pulls window out of layout)
  • M-<mouse-2> Drag and resize window (pulls window out of layout)
  • M-t Put window back into layout

Workspaces

  • M-<num> Switch to workspace <num>
  • M-` Swap to previous workspace
  • M-BACKSPACE Swap workspaces with next screen
  • M-<left>/<right> Switch to prev/next workspace (ignoring ones visible on other screen)
  • M-S-<left>/<right> Move current window to prev/next screen

Screens (monitors)

  • M-<up>/<down> Change focus to prev/next screen
  • M-S-<up>/<down> Move current window to prev/next screen
  • M-w/e/r Switch to screen 1/2/3
  • M-S-w/e/r Move current window to screen 1/2/3

Applications

  • M-S-RET Open terminal (termite)
  • M-S-f Open file browser (thunar)
  • M-p Open application launcher (rofi)
  • M-S-p Open window selector (rofi)
  • M-g Grid select open windows/applications
  • F12 Open scratch terminal
  • M-F10 Open scratch telegram
  • M-c Open roficlip (clipboard history)

Misc

Note that most media keys require additonal programs to function properly (see “Additional keybindings for media keys” section of config)

  • M-+ Increase brightness
  • M-- Decrease brightness
  • M-b Toggle status bar gap (cover top status bar)
  • M-ESC Lock computer (custom lock.sh script)

Binary Space Partition Layout

  • M-A-h/j/k/l Expand window left/down/up/right
  • M-A-S-h/j/k/l Shrink window left/down/up/right
  • M-d Rotate section
  • M-s Swap section
  • M-C-n Select node
  • M-S-n Move node
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment