Keyboard bindings
A bind maps modifiers and a key to a command. Binds come from your config. The defaults below are those of the shipped config.conf.
Syntax
bind[flags]=MODIFIERS,KEY,COMMAND,PARAMETERS
bind=SUPER,r,reload_config
bindl=SUPER,L,spawn,swaylock
Modifiers are SUPER, CTRL, ALT, SHIFT and NONE, joined with +. Find key names with wev, or use code:N. Flags: l (when locked), s (keysym), r (on release), p (pass to client), c (allow conflict), n (no repeat).
Default binds
| Bind | Command |
|---|---|
Alt + Return | spawn,foot |
Alt + Space | spawn,rofi -show drun |
Alt + Q | killclient |
Super + R | reload_config |
Super + M | quit |
Alt + Arrows | focusdir |
Super + Arrows | canvas_pan |
Super + C | canvas_center_window |
Super + Home | canvas_reset_camera |
Super + T | canvas_cascade |
Super + Minus / Equal / 0 | canvas_zoom_out / canvas_zoom_in / canvas_zoom,0,100 |
Super + Tab | canvas_overview |
Alt + Tab | canvas_jump |
Alt + F | togglefullscreen |
Alt + A | togglemaximizescreen |
Alt + Backslash | togglefloating |
Super + G | toggleglobal |
Super + I | minimized |
Alt + Z | toggle_scratchpad |
Ctrl + 1..9 | view |
Alt + 1..9 | tag |
Key modes
Binds after key_mode=NAME apply only in that mode. setkeymode switches modes. The modes switcher, workspace_overview, jump and overview apply while those views are open.
The bindings reference lists every command.