repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

niri/cfg/keybinds.kdl

Raw
binds {
    Mod+F1 {
        show-hotkey-overlay
    }
    Mod+Return hotkey-overlay-title="Open a Terminal: Wezterm" {
        spawn "wezterm" "start" "--always-new-process"
    }
    Mod+Space hotkey-overlay-title="Open App Launcher: noctalia launcher" {
        spawn-sh "qs -c noctalia-shell ipc call launcher toggle"
    }
    Mod+B hotkey-overlay-title="Open Browser: firefox" {
        spawn "firefox"
    }
    Mod+A hotkey-overlay-title="Open Mail: aerc" {
        spawn "wezterm" "start" "--always-new-process" "--class" "aerc" "--" "aerc"
    }
    Mod+XF86Mail hotkey-overlay-title="Open Mail: aerc" {
        spawn "wezterm" "start" "--always-new-process" "--class" "aerc" "--" "aerc"
    }
    Mod+ALT+L hotkey-overlay-title="Lock Screen: noctalia lock" {
        spawn-sh "qs -c noctalia-shell ipc call lockScreen lock"
    }
    Mod+Shift+Q hotkey-overlay-title="Session Menu: noctalia sessionMenu" {
        spawn-sh "qs -c noctalia-shell ipc call sessionMenu toggle"
    }
    Mod+TAB hotkey-overlay-title="Niri: Cycle right window" {
        spawn "sh" "-c" "niri msg action focus-column-right; niri msg action move-column-to-last; niri msg action focus-window-previous"
    }
    CTRL+grave repeat=false hotkey-overlay-title="Handy: Toggle Transcription" {
        spawn "pkill" "-USR2" "-x" "handy"
    }
    // seems to crash handy for now
    // CTRL+SHIFT+grave										repeat=false hotkey-overlay-title="Handy: Toggle Post Process" { spawn "pkill" "-USR1" "-x" "handy"; }
    Mod+E hotkey-overlay-title="File Manager: Yazi" {
        spawn "wezterm" "start" "--always-new-process" "--" "yazi"
    }
    XF86AudioRaiseVolume allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call volume increase"
    }
    XF86AudioLowerVolume allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call volume decrease"
    }
    XF86AudioMute allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call volume muteOutput"
    }
    XF86AudioMicMute allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call volume muteInput"
    }
    XF86AudioNext allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call media next"
    }
    XF86AudioPrev allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call media previous"
    }
    XF86AudioPlay allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call media playPause"
    }
    XF86AudioPause allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call media playPause"
    }
    XF86MonBrightnessUp allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call brightness increase"
    }
    XF86MonBrightnessDown allow-when-locked=true {
        spawn-sh "qs -c noctalia-shell ipc call brightness decrease"
    }
    Mod+Q {
        close-window
    }
    Mod+M {
        maximize-column
    }
    Mod+F {
        maximize-window-to-edges
    }
    Mod+Shift+F {
        fullscreen-window
    }
    Mod+C {
        center-column
    }
    Mod+H {
        focus-column-left
    }
    Mod+L {
        focus-column-right
    }
    Super+WheelScrollUp cooldown-ms=150 {
        focus-column-right
    }
    Super+WheelScrollDown cooldown-ms=150 {
        focus-column-left
    }
    Mod+K {
        focus-window-up
    }
    Mod+J {
        focus-window-down
    }
    Mod+CTRL+H {
        move-column-left
    }
    Mod+CTRL+L {
        move-column-right
    }
    Mod+CTRL+K {
        move-window-up
    }
    Mod+CTRL+J {
        move-window-down
    }
    Mod+Shift+CTRL+Left {
        move-column-to-monitor-left
    }
    Mod+Shift+CTRL+Right {
        move-column-to-monitor-right
    }
    Mod+Shift+CTRL+UP {
        move-column-to-monitor-up
    }
    Mod+Shift+CTRL+Down {
        move-column-to-monitor-down
    }
    Mod+1 {
        focus-workspace "code"
    }
    Mod+2 {
        focus-workspace "browser"
    }
    Mod+3 {
        focus-workspace "media"
    }
    Mod+4 {
        focus-workspace "games"
    }
    Mod+5 {
        focus-workspace "vault"
    }
    Mod+Shift+1 {
        move-column-to-workspace "code"
    }
    Mod+Shift+2 {
        move-column-to-workspace "browser"
    }
    Mod+Shift+3 {
        move-column-to-workspace "media"
    }
    Mod+Shift+4 {
        move-column-to-workspace "games"
    }
    Mod+Shift+5 {
        move-column-to-workspace "vault"
    }
    Mod+S {
        screenshot
    }
    Mod+Ctrl+S {
        screenshot-window
    }
    Mod+Ctrl+Shift+S {
        screenshot-screen
    }
    // ─── Emergency Escape Key ───
    // Use this when a fullscreen app blocks your keybinds.
    // It disables any active keyboard shortcut inhibitor, restoring control.
    Mod+ESCAPE allow-inhibiting=false {
        toggle-keyboard-shortcuts-inhibit
    }
    CTRL+ALT+Delete {
        quit
    }
    Mod+Shift+P {
        power-off-monitors
    }
    Mod+O repeat=false {
        toggle-overview
    }
}