95 lines
4.3 KiB
KDL
95 lines
4.3 KiB
KDL
// =========================
|
|
// Shared Keybindings
|
|
// =========================
|
|
// Common keybindings across all desktop environments
|
|
|
|
binds {
|
|
// =========================
|
|
// General
|
|
// =========================
|
|
Mod+Shift+H { show-hotkey-overlay; }
|
|
Mod+T { spawn "ghostty"; }
|
|
Mod+A { spawn "ghostty" "-e" "pi"; }
|
|
Mod+Z { spawn "flatpak" "run" "app.zen_browser.zen"; }
|
|
Mod+B { spawn "chromium"; }
|
|
Mod+E { spawn "wofi-emoji"; }
|
|
Mod+Alt+E { spawn-sh "zeditor ~/.config/niri/shared/binds.kdl"; }
|
|
Mod+Q { close-window; }
|
|
Mod+Alt+N hotkey-overlay-title="Workspace: Rename" { spawn "skygqts" "workspace-badge" "edit"; }
|
|
|
|
|
|
// =========================
|
|
// Navigation
|
|
// =========================
|
|
Mod+Left { focus-column-left; }
|
|
Mod+Down { focus-workspace-down; }
|
|
Mod+Up { focus-workspace-up; }
|
|
Mod+Right { focus-column-right; }
|
|
|
|
Mod+Ctrl+Tab hotkey-overlay-title="Workspace: Cycle" { spawn "skygqts" "workspace-manager" "toggle"; }
|
|
Mod+Shift+Tab { focus-monitor-next; }
|
|
|
|
// =========================
|
|
// Window Management
|
|
// =========================
|
|
Mod+Ctrl+Right { swap-window-right; }
|
|
Mod+Ctrl+Left { swap-window-left; }
|
|
Mod+Ctrl+Up { move-window-to-workspace-up; }
|
|
Mod+Ctrl+Down { move-window-to-workspace-down; }
|
|
|
|
Mod+F { maximize-column; }
|
|
Mod+Shift+F { fullscreen-window; }
|
|
Mod+Ctrl+F { reset-window-height; }
|
|
Mod+V { toggle-window-floating; }
|
|
Mod+C { center-column; }
|
|
|
|
// =========================
|
|
// Basic Sound Control
|
|
// =========================
|
|
Mod+Shift+Right hotkey-overlay-title="PlayerCtrl: Next" { spawn "playerctl" "next"; }
|
|
Mod+Shift+Left hotkey-overlay-title="PlayerCtrl: Previous" { spawn "playerctl" "previous"; }
|
|
Mod+Shift+Up allow-when-locked=true { spawn "playerctl" "volume" "0.1+"; }
|
|
Mod+Shift+Down allow-when-locked=true { spawn "playerctl" "volume" "0.1-"; }
|
|
Mod+Shift+Space allow-when-locked=true { spawn "playerctl" "play-pause"; }
|
|
Mod+Shift+M allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
|
Mod+Shift+S allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
|
XF86AudioRaiseVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%+"; }
|
|
XF86AudioLowerVolume allow-when-locked=true { spawn "wpctl" "set-volume" "@DEFAULT_AUDIO_SINK@" "5%-"; }
|
|
XF86AudioMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SINK@" "toggle"; }
|
|
XF86AudioMicMute allow-when-locked=true { spawn "wpctl" "set-mute" "@DEFAULT_AUDIO_SOURCE@" "toggle"; }
|
|
XF86MonBrightnessUp allow-when-locked=true { spawn "brightnessctl" "set" "5%+"; }
|
|
XF86MonBrightnessDown allow-when-locked=true { spawn "brightnessctl" "set" "5%-"; }
|
|
|
|
// =========================
|
|
// Resizing
|
|
// =========================
|
|
Mod+Minus { set-column-width "-10%"; }
|
|
Mod+Equal { set-column-width "+10%"; }
|
|
Mod+Shift+Minus { set-window-height "-10%"; }
|
|
Mod+Shift+Equal { set-window-height "+10%"; }
|
|
|
|
// =========================
|
|
// Screenshots & Recording
|
|
// =========================
|
|
Mod+R { spawn "/home/ari/.config/niri/screen-record.sh"; }
|
|
Mod+M { spawn "nu" "/home/ari/.config/hypr/speak-selection.nu"; }
|
|
|
|
// =========================
|
|
// Misc
|
|
// =========================
|
|
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
|
|
|
|
// =========================
|
|
// Monitor Movement
|
|
// =========================
|
|
Mod+Alt+Down hotkey-overlay-title="Move to Monitor Down" { move-column-to-monitor-down; }
|
|
Mod+Alt+Left hotkey-overlay-title="Move to Monitor Left" { move-column-to-monitor-left; }
|
|
Mod+Alt+Right hotkey-overlay-title="Move to Monitor Right" { move-column-to-monitor-right; }
|
|
Mod+Alt+Up hotkey-overlay-title="Move to Monitor Up" { move-column-to-monitor-up; }
|
|
|
|
Mod+TouchpadScrollUp hotkey-overlay-title="Move Workspace to Monitor Down" { move-workspace-to-monitor-down; }
|
|
Mod+TouchpadScrollRight hotkey-overlay-title="Move Workspace to Monitor Left" { move-workspace-to-monitor-left; }
|
|
Mod+TouchpadScrollLeft hotkey-overlay-title="Move Workspace to Monitor Right" { move-workspace-to-monitor-right; }
|
|
Mod+TouchpadScrollDown hotkey-overlay-title="Move Workspace to Monitor Up" { move-workspace-to-monitor-up; }
|
|
}
|