Overview
Mango uses a declarative keybinding syntax where you define modifier keys and commands. Keybindings are defined inconfig.conf using the bind= directive.
Binding Syntax
Modifier Keys
SUPER- Super/Windows/Meta keyALT- Alt keyCTRL- Control keySHIFT- Shift keyNONE- No modifier
+:
SUPER+SHIFTALT+SHIFTCTRL+SUPER
Key Names
Key names can be determined using thewev or xev command. Common keys include:
- Letters:
a-z - Numbers:
1-9,0 - Special keys:
Return,space,Tab,backslash - Arrow keys:
Left,Right,Up,Down
Default Keybindings
System Control
Reload the configuration file without restarting
Exit Mango compositor
Application Launching
Launch application launcher (rofi)
Launch terminal (foot)
Close the focused window
Window Focus
Focus next window in stack
Focus window in direction (left, right, up, down)
Window Manipulation
Swap window with adjacent window in direction
Window States
Toggle window global state (visible on all tags)
Toggle overview mode
Toggle window floating state
Toggle window maximized state
Toggle window fullscreen state
Toggle fake fullscreen (fullscreen within window area)
Minimize the focused window
Restore minimized window
Toggle window overlay mode
Toggle scratchpad visibility
Layout Control
Cycle through available layouts
Set scroller layout proportion (scroller layout only)
Cycle through proportion presets (scroller layout only)
Tag Navigation
Switch to previous/next tag
Switch to previous/next tag that has windows
Switch to specific tag (workspace)
Move window to specific tag and follow it
Move window to previous/next tag
Monitor Control
Focus monitor in direction
Move window to monitor in direction
Gaps Control
Increase gaps
Decrease gaps
Toggle gaps on/off
Floating Window Movement
Move floating window by pixels
Floating Window Resizing
Resize floating window by pixels
Mouse Bindings
Mouse bindings are defined withmousebind=:
Default Mouse Bindings
Move window by dragging
Toggle maximize on click
Resize window by dragging
Axis Bindings
Axis bindings (scroll wheel) are defined withaxisbind=:
Default Axis Bindings
Switch to previous tag with windows
Switch to next tag with windows
Custom Keybindings
You can create custom keybindings by adding newbind= lines to your config.conf:
