Adding keybindings for 'emacs' and rebinding 'quit' Niri.

This commit is contained in:
Derek Taylor
2026-01-16 18:10:08 -06:00
parent f04bfc9aa3
commit 0686141759

View File

@@ -386,10 +386,13 @@ binds {
Mod+Shift+Slash hotkey-overlay-title="Show important bindings" { show-hotkey-overlay; }
// Suggested binds for running programs: terminal, app launcher, screen locker.
Mod+Return hotkey-overlay-title="Open terminal: alacritty" { spawn "alacritty"; }
// Mod+Shift+Return hotkey-overlay-title="Run an Application: fuzzel" { spawn "fuzzel" "-f" "Ubuntu:weight=regular:size=12" "-w" "60" "-x" "14" "-y" "14" "-b" "#282c34ff" "-t" "#abb2bfff" "-m" "#51afefff" "-s" "#1c1f24ff" "-S" "#abb2bfff" "-M" "#51afefff" "-C" "#51afefff" "-p" "RUN:"; }
Mod+Return hotkey-overlay-title="Open terminal: alacritty" { spawn "alacritty"; }
Mod+Shift+Return hotkey-overlay-title="Run launcher: rofi" { spawn "rofi" "-show" "drun" "-show-icons"; }
Mod+Alt+Minus hotkey-overlay-title="Lock screen: swaylock" { spawn "swaylock"; }
Mod+E hotkey-overlay-title="Open emacs" { spawn "emacsclient" "-c" "-a" "emacs"; }
Mod+Shift+Q hotkey-overlay-title="Quit out of niri" { quit; }
// Use spawn-sh to run a shell command. Do this if you need pipes, multiple commands, etc.
// Note: the entire command goes as a single argument. It's passed verbatim to `sh -c`.
@@ -592,10 +595,6 @@ binds {
// which ensures niri always processes them, even when an inhibitor is active.
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
// The quit action will show a confirmation dialog to avoid accidental exits.
Mod+Shift+E { quit; }
Ctrl+Alt+Delete { quit; }
// Powers off the monitors. To turn them back on, do any input like
// moving the mouse or pressing any other key.
Mod+Shift+P { power-off-monitors; }