Core System Commands
quit
Exits the Mango compositor.Quits Mango and ends the Wayland session
reload_config
Reloads the configuration file without restarting Mango.Hot-reloads
~/.config/mango/config.conf applying changes immediately- Keybindings
- Colors and appearance
- Animation settings
- Window effects
- Rules and options
- Input device settings (trackpad, keyboard layout)
- Monitor configuration changes
- IPC-related settings
spawn
Launches an external program or command.Spawns a new process with the specified command
The command to execute (can include arguments)
spawn_shell
Spawns a command through a shell, allowing shell features like pipes and redirects.Executes command through
/bin/sh -cShell command or script to execute
spawn_on_empty
Spawns a command only if the current tag has no windows.Conditionally spawns if tag is empty
Command to execute when tag is empty
killclient
Closes the currently focused window.Sends close request to focused window
This sends a graceful close request. Applications can prompt to save before closing.
Input Device Commands
toggle_trackpad_enable
Toggles the trackpad on/off at runtime.Enables or disables the trackpad device
switch_keyboard_layout
Cycles through configured keyboard layouts.Switches to next keyboard layout in XKB configuration
setkeymode
Sets a specific keyboard mode or layout by index.Directly sets keyboard layout by index (0-based)
Layout index from xkb_rules_layout
Display Commands
disable_monitor
Disables a specific monitor output.Turns off the specified monitor
Monitor name (e.g., “eDP-1”, “HDMI-A-1”)
enable_monitor
Enables a previously disabled monitor.Turns on the specified monitor
Monitor name to enable
toggle_monitor
Toggles a monitor on/off.Toggles monitor between enabled and disabled states
Monitor name to toggle
create_virtual_output
Creates a virtual display output for testing or screencasting.Creates a headless virtual display
- Testing multi-monitor layouts without physical displays
- Creating virtual displays for screen recording
- Development and debugging
destroy_all_virtual_output
Removes all virtual display outputs.Destroys all virtual outputs created with create_virtual_output
Advanced Commands
chvt
Switches to a different virtual terminal (TTY).Changes to specified virtual terminal
Virtual terminal number (1-12)
setoption
Sets a configuration option at runtime.Dynamically changes a config option without reloading
Configuration option name
New value for the option
- Most appearance options (blur, shadows, gaps, borders)
- Window behavior options
- Animation settings
Some options like input device settings require a restart and won’t work with
setoption.bind_to_view
Binds the focused window to a specific tag permanently.Pins window to specific tag across all monitors
Tag ID to bind to (1-9)
tag:
tag: Moves window to tag (can be moved again)bind_to_view: Permanently binds to tag (sticky)
See Also
- Keybindings Reference - Complete keybinding syntax
- Window Commands - Window manipulation
- Configuration Overview - Config file structure
- Input Devices - Input device configuration
