Skip to content

Shortcuts

[shortcuts] binds the shell’s global shortcuts. They work whichever window has focus. They need a compositor with Mir’s ext-input-trigger protocols (Miracle WM, Miriway); elsewhere none are registered.

[shortcuts]
open_settings = "super+s"
open_launcher = "super+d"
open_emoji = "ctrl+shift+e"
open_notifications = "super+n"
open_power_menu = "shift+super+e"
switch_windows = "alt+tab"
switch_windows_back = "alt+shift+tab"
screenshot_area = "print"
record_screen = "super+print"
toggle_scratchpad = "super+z"
move_to_scratchpad = "shift+super+z"
power_button = "poweroff"
Key Default Action
open_settings "super+s" Toggle Settings
open_launcher "super+d" Toggle the application launcher
open_emoji "ctrl+shift+e" Toggle the emoji picker
open_notifications "super+n" Toggle the notification panel
open_power_menu "shift+super+e" Toggle the power menu
switch_windows "alt+tab" Window switcher, forwards (Miracle WM only)
switch_windows_back "alt+shift+tab" Window switcher, backwards (Miracle WM only)
screenshot_area "print" Screenshot an area you drag out
record_screen "super+print" Start recording the focused screen; press again to stop
toggle_scratchpad "super+z" Show or hide the scratchpad (Miracle WM only)
move_to_scratchpad "shift+super+z" Move the focused window to the scratchpad (Miracle WM only)
power_button "poweroff" The machine’s power button; what it does is set in [power]

All values are strings.

  • Changes need a shell restart. Shortcuts are registered once at start-up.
  • Set a key to "" or "none" to disable it (for example, when it clashes with an input method).
  • An invalid value falls back to the default and is logged.
  • If two keys use the same combination, only the first is registered. If another client already owns a combination, it is skipped and logged.
  • record_screen records the screen with the focused workspace. Without Miracle WM it asks you to click a screen instead.

Hold Alt and press Tab: an overlay lists open windows, most recent first. Press Tab again (or the arrow keys) to move; release Alt to switch. Escape or a click on the backdrop cancels; a click on an icon switches to that window. Switching to a window on another workspace changes workspace too.

The switcher ends when the last held modifier is released, so a binding must include a modifier ("f13" alone would never close it).

The keyboard icon on the bar opens the overview’s Shortcuts tab. The shell’s shortcuts are listed under Shell; click one and press a new combination:

  • Esc cancels.
  • Backspace disables the shortcut.
  • The arrow beside a changed row restores the default.

The sheet refuses a combination another shell shortcut already uses and warns when the window manager uses it. Changes still need a restart. The window manager’s own bindings are shown read-only; edit them under Settings › Window Manager › Key Bindings.

Modifiers and one key joined by +, case-insensitive.

Part Accepted
Modifiers ctrl/control, shift, alt, super/meta/win/logo
Key a–z, 0–9, f1–f24, a named key, a raw keysym 0x…, or an evdev keycode code:N

Named keys: space, return/enter, tab, escape/esc, backspace, delete/del, insert, home, end, pageup, pagedown, left, right, up, down, print, pause, menu, poweroff/power, sleep, and minus, equal, plus, comma, period, slash, backslash, semicolon, apostrophe, grave, bracketleft, bracketright.

  • There are no left/right modifier variants; ctrl matches either Control key.
  • Write Shift explicitly: "ctrl+S" is the same as "ctrl+s". Use "ctrl+shift+s".
  • With shift, digits and punctuation are translated using a US layout ("ctrl+shift+1" registers !). On other layouts use a raw keysym or keycode:
[shortcuts]
open_launcher = "0x1008ff1b" # raw keysym (XF86Search)
open_settings = "super+code:31" # evdev keycode: the physical S key, on any layout