Skip to content

Instantly share code, notes, and snippets.

@micrub
Last active October 25, 2024 18:39
Show Gist options
  • Save micrub/aeebe7eb4d2df9e5e203e76a0fd89542 to your computer and use it in GitHub Desktop.
Save micrub/aeebe7eb4d2df9e5e203e76a0fd89542 to your computer and use it in GitHub Desktop.
Xmonad default key bindings

xmonad default key bindings

Action key bindings

Key binding Action
mod - shift - slash Run xmessage with a summary of the default keybindings (useful for beginners)
mod - shift - return Launch terminal
mod - p Launch dmenu
mod - shift - p Launch gmrun
mod - shift - c Close the focused window
mod - shift - q Quit xmonad
mod - q Restart xmonad

Movement key bindings

Window Movement key bindings

Key binding Action
mod - space Rotate through the available layout algorithms
mod - shift - space Reset the layouts on the current workspace to default
mod - n Resize viewed windows to the correct size
mod - tab Move focus to the next window
mod - shift - tab Move focus to the previous window
mod - j Move focus to the next window
mod - k Move focus to the previous window
mod - m Move focus to the master window
mod - return Swap the focused window and the master window
mod - shift - j Swap the focused window with the next window
mod - shift - k Swap the focused window with the previous window
mod - h Shrink the master area
mod - l Expand the master area
mod - t Push window back into tiling
mod - comma Increment the number of windows in the master area
mod - period Deincrement the number of windows in the master area

Window Movement key and mouse button bindings

Binding Action
mod - button1 Set the window to floating mode and move by dragging
mod - button3 Set the window to floating mode and resize by dragging
mod - button2 Raise the window to the top of the stack

Workspace Movement key bindings

Key binding Action
mod - [1..9] Switch to workspace N
mod - shift - [1..9] Move client to workspace N

Screen Movement key bindings

Key binding Action
mod - {w,e,r} Switch to physical/Xinerama screens 1, 2, or 3
mod - shift - {w,e,r} Move client to screen 1, 2, or 3
@hasufell
Copy link

What is the default mod key?

@montybytes
Copy link

alt is Xmonad's default mod key

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