Keybinding reference for the two compositors. The tables show the defaults .
Every action’s chord is an option, and setting one to null drops the bind. The
two modules share a chord wherever the action exists in both, so the same hand
positions work in either session.
Chords live under othrys.desktop.compositors.hyprland.binds.*. $mainMod is the mainMod option (default SUPER), and numbered-workspace binds are toggled by numberedWorkspaceBinds.
Chords use Hyprland’s +-separated syntax, e.g. $mainMod + SHIFT + H or a bare Print. Add binds the module does not curate with extraBinds, whose dispatcher is a raw Lua expression:
othrys.desktop.compositors.hyprland.extraBinds = [
{
key = "$mainMod + CTRL + 1";
dispatcher = ''hl.dsp.focus({ monitor = "DP-1" })'';
}
];
Binding Action
Super + 1-0Switch to workspace 1-10
Super + Shift + 1-0Move window to workspace 1-10
Super + Ctrl + Left/RightCycle workspaces
Super + Mouse wheelCycle workspaces
Super + SToggle scratchpad
Super + Shift + SMove to scratchpad
Binding Action
Super + H/J/K/LFocus left/down/up/right
Super + Shift + H/J/K/LSwap window left/down/up/right
Super + QKill active window
Super + MFullscreen
Super + VToggle floating
Super + PPseudo-tile
Super + YPin window
Super + Shift + EExit Hyprland
Binding Action
Super + Left click dragMove window
Super + Right click dragResize window
Binding Action
Super + ReturnTerminal (the terminal option)
Super + FBrowser (the browser option)
Launcher, run-prompt, emoji-picker, clipboard, file-search and color-picker binds are added by the ashell module when enabled.
Binding Action
Volume Up/DownAdjust volume (5%)
Volume MuteToggle mute
Mic MuteToggle mic mute
Brightness Up/DownAdjust brightness (10%)
Media Next/Prev/PlayPlayer control
Binding Action
PrintFull screenshot → screenshots.directory (default ~/Pictures/Screenshots/)
Super + PrintRegion screenshot → file
Super + Shift + PrintRegion screenshot → clipboard
bind = let
b = cfg.binds;
in
lib.optionals cfg.numberedWorkspaceBinds (
map (n:
hlLua.mkBind {
key = "$mainMod + ${toString (lib.mod n 10)}";
dispatcher = "hl.dsp.focus({ workspace = ${toString n} })";
}) (lib.range 1 10)
++ map (n:
hlLua.mkBind {
key = "$mainMod + SHIFT + ${toString (lib.mod n 10)}";
dispatcher = "hl.dsp.window.move({ workspace = ${toString n} })";
}) (lib.range 1 10)
)
++ mkBind b.focusLeft ''hl.dsp.focus({ direction = "left" })''
++ mkBind b.focusRight ''hl.dsp.focus({ direction = "right" })''
++ mkBind b.focusDown ''hl.dsp.focus({ direction = "down" })''
++ mkBind b.focusUp ''hl.dsp.focus({ direction = "up" })''
++ mkBind b.swapLeft ''hl.dsp.window.swap({ direction = "left" })''
++ mkBind b.swapRight ''hl.dsp.window.swap({ direction = "right" })''
++ mkBind b.swapDown ''hl.dsp.window.swap({ direction = "down" })''
++ mkBind b.swapUp ''hl.dsp.window.swap({ direction = "up" })''
++ mkBind b.killActive "hl.dsp.window.close()"
++ mkBind b.terminal "hl.dsp.exec_cmd(terminal)"
++ mkBind b.browser "hl.dsp.exec_cmd(browser)"
++ mkBind b.fullscreen "hl.dsp.window.fullscreen()"
++ mkBind b.toggleFloating "hl.dsp.window.float()"
++ mkBind b.pseudo "hl.dsp.window.pseudo()"
++ mkBind b.pin "hl.dsp.window.pin()"
++ mkBind b.exit "hl.dsp.exit()"
++ mkBind b.specialWorkspace ''hl.dsp.workspace.toggle_special("magic")''
++ mkBind b.moveToSpecialWorkspace ''hl.dsp.window.move({ workspace = "special:magic" })''
++ mkBind b.workspacePrev ''hl.dsp.focus({ workspace = "e-1" })''
++ mkBind b.workspaceNext ''hl.dsp.focus({ workspace = "e+1" })''
++ mkBind b.screenshot (execCmd "grim ${screenshotFile}")
++ mkBind b.screenshotRegion (execCmd ''grim -g "$(slurp)" ${screenshotFile}'')
++ mkBind b.screenshotRegionToClipboard (execCmd ''grim -g "$(slurp)" - | wl-copy'')
# Drag binds, where `mouse` is exclusive with locked/repeating.
++ [
(hlLua.mkBind {
key = "$mainMod + mouse:272";
dispatcher = "hl.dsp.window.drag()";
opts.mouse = true;
})
(hlLua.mkBind {
key = "$mainMod + mouse:273";
dispatcher = "hl.dsp.window.resize()";
opts.mouse = true;
})
(hlLua.mkBind {
key = "$mainMod + mouse_down";
dispatcher = ''hl.dsp.focus({ workspace = "e+1" })'';
})
(hlLua.mkBind {
key = "$mainMod + mouse_up";
dispatcher = ''hl.dsp.focus({ workspace = "e-1" })'';
})
]
# Media and brightness keys stay live on the lock screen and
# repeat while held.
++ map (spec:
hlLua.mkBind {
inherit (spec) key dispatcher;
opts = {
locked = true;
repeating = true;
};
}) [
{
key = "XF86AudioRaiseVolume";
dispatcher = execCmd "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%+";
}
{
key = "XF86AudioLowerVolume";
dispatcher = execCmd "wpctl set-volume @DEFAULT_AUDIO_SINK@ 5%-";
}
{
key = "XF86AudioMute";
dispatcher = execCmd "wpctl set-mute @DEFAULT_AUDIO_SINK@ toggle";
}
{
key = "XF86AudioMicMute";
dispatcher = execCmd "wpctl set-mute @DEFAULT_AUDIO_SOURCE@ toggle";
}
{
key = "XF86MonBrightnessUp";
dispatcher = execCmd "brightnessctl s 10%+";
}
{
key = "XF86MonBrightnessDown";
dispatcher = execCmd "brightnessctl s 10%-";
}
]
++ map (spec:
hlLua.mkBind {
inherit (spec) key dispatcher;
opts.locked = true;
}) [
{
key = "XF86AudioNext";
dispatcher = execCmd "playerctl next";
}
{
key = "XF86AudioPrev";
dispatcher = execCmd "playerctl previous";
}
{
key = "XF86AudioPlay";
dispatcher = execCmd "playerctl play-pause";
}
{
key = "XF86AudioPause";
dispatcher = execCmd "playerctl play-pause";
}
]
++ map hlLua.mkBind cfg.extraBinds;
Chords live under othrys.desktop.compositors.niri.binds.* and use niri’s
syntax, Mod+Shift+H or a bare Print. Mod is the Super key in a session
started from a greeter. Niri arranges windows in columns on a strip that
scrolls sideways, so the horizontal binds act on columns and the vertical ones
on the windows inside a column. Add binds the module does not curate with
extraBinds, in the format of programs.niri.settings.binds:
othrys.desktop.compositors.niri.extraBinds = {
"Mod+T".action.spawn = "thunderbird";
};
Binding Option Action
Mod + 1-9numberedWorkspaceBindsFocus workspace 1-9
Mod + Shift + 1-9numberedWorkspaceBindsMove the column to workspace 1-9
Mod + Ctrl + Leftbinds.workspacePrevPrevious workspace
Mod + Ctrl + Rightbinds.workspaceNextNext workspace
Mod + Sbinds.overviewToggle the overview
Niri has no scratchpad, so Mod + S opens the overview where Hyprland toggles
its scratchpad.
Binding Option Action
Mod + H/Lbinds.focusLeft, binds.focusRightFocus the column to the left or right
Mod + J/Kbinds.focusDown, binds.focusUpFocus the window below or above
Mod + Shift + H/Lbinds.moveLeft, binds.moveRightMove the column left or right
Mod + Shift + J/Kbinds.moveDown, binds.moveUpMove the window down or up
Mod + Qbinds.killActiveClose the active window
Mod + Mbinds.fullscreenToggle fullscreen
Mod + Pbinds.maximizeColumnMaximize the column
Mod + Vbinds.toggleFloatingToggle floating
Mod + Shift + Ebinds.exitQuit niri
Binding Option Action
Mod + Returnbinds.terminalTerminal (the terminal option)
Mod + Fbinds.browserBrowser (the browser option)
The ashell module adds Mod + D for the
launcher, Mod + Shift + D for the run prompt, Mod + E for the emoji picker,
Mod + Shift + V for the clipboard history and Mod + Shift + F for file
search. Each picker chord is bound only while its signal holds a command. The
color picker is Hyprland only.
These keys also work while the session is locked. They have no option and are
replaced through extraBinds.
Binding Action
Volume Up/DownAdjust volume (5%)
Volume MuteToggle mute
Media Play/PauseToggle playback
Binding Option Action
Printbinds.screenshotOpen niri’s interactive screenshot UI
Mod + Printbinds.screenshotScreenScreenshot the full screen
Mod + Shift + Printbinds.screenshotWindowScreenshot the focused window
Screenshots are saved into screenshots.directory (default
~/Pictures/Screenshots).