Skip to content

Commit fdcc02f

Browse files
committed
feat(niri): add overlay titles to launcher shortcuts
Add hotkey overlay titles to common launcher bindings and regroup the launcher, column, and screenshot shortcuts for a cleaner niri config.
1 parent 9f4d711 commit fdcc02f

File tree

1 file changed

+13
-22
lines changed

1 file changed

+13
-22
lines changed

dot_config/niri/dms/binds.kdl

Lines changed: 13 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,24 @@
11
binds {
2-
Mod+Comma { "consume-window-into-column"; }
3-
Mod+Alt+A { screenshot; }
4-
Mod+B { spawn "firefox"; }
5-
Mod+E { spawn "nautilus"; }
6-
Mod+M { spawn "/opt/SPlayer/SPlayer" ; }
7-
Mod+S { spawn "code"; }
8-
92
// === System & Overview ===
103
Mod+Tab repeat=false { toggle-overview; }
114
Mod+Shift+Slash { show-hotkey-overlay; }
125

136
// === Application Launchers ===
14-
Mod+T hotkey-overlay-title="Open Terminal" { spawn "sh" "-c" "$HOME/.local/bin/ghostty-tmux.sh"; }
157
Mod+D hotkey-overlay-title="Application Launcher" {
168
spawn "dms" "ipc" "call" "spotlight" "toggle";
179
}
18-
Mod+Shift+C hotkey-overlay-title="Clipboard Manager" {
19-
spawn "dms" "ipc" "call" "clipboard" "toggle";
20-
}
21-
Mod+Shift+T hotkey-overlay-title="Task Manager" {
22-
spawn "dms" "ipc" "call" "processlist" "focusOrToggle";
23-
}
24-
25-
Super+X hotkey-overlay-title="Power Menu: Toggle" { spawn "dms" "ipc" "call" "powermenu" "toggle"; }
26-
Mod+Shift+S hotkey-overlay-title="Settings" {
27-
spawn "dms" "ipc" "call" "settings" "focusOrToggle";
28-
}
29-
Mod+Y hotkey-overlay-title="Browse Wallpapers" {
30-
spawn "dms" "ipc" "call" "dankdash" "wallpaper";
31-
}
10+
Mod+B hotkey-overlay-title="Web Browser" { spawn "firefox"; }
11+
Mod+E hotkey-overlay-title="File Explorer" { spawn "nautilus"; }
12+
Mod+M hotkey-overlay-title="Music Player" { spawn "/opt/SPlayer/SPlayer"; }
3213
Mod+N hotkey-overlay-title="Notification Center" { spawn "dms" "ipc" "call" "notifications" "toggle"; }
14+
Mod+S hotkey-overlay-title="Code Editor" { spawn "code"; }
15+
Mod+T hotkey-overlay-title="Open Terminal" { spawn "sh" "-c" "$HOME/.local/bin/ghostty-tmux.sh"; }
16+
Mod+X hotkey-overlay-title="Power Menu: Toggle" { spawn "dms" "ipc" "call" "powermenu" "toggle"; }
17+
Mod+Y hotkey-overlay-title="Browse Wallpapers" { spawn "dms" "ipc" "call" "dankdash" "wallpaper"; }
18+
Mod+Shift+C hotkey-overlay-title="Clipboard Manager" { spawn "dms" "ipc" "call" "clipboard" "toggle"; }
3319
Mod+Shift+N hotkey-overlay-title="Notepad" { spawn "dms" "ipc" "call" "notepad" "toggle"; }
20+
Mod+Shift+S hotkey-overlay-title="Settings" { spawn "dms" "ipc" "call" "settings" "focusOrToggle"; }
21+
Mod+Shift+T hotkey-overlay-title="Task Manager" { spawn "dms" "ipc" "call" "processlist" "focusOrToggle"; }
3422

3523
// === Security ===
3624
Mod+Alt+L hotkey-overlay-title="Lock Screen" {
@@ -195,6 +183,7 @@ binds {
195183
// === Column Management ===
196184
Mod+BracketLeft { consume-or-expel-window-left; }
197185
Mod+BracketRight { consume-or-expel-window-right; }
186+
Mod+Comma { consume-window-into-column; }
198187
Mod+Period { expel-window-from-column; }
199188

200189
// === Sizing & Layout ===
@@ -212,12 +201,14 @@ binds {
212201
Mod+Shift+Equal { set-window-height "+10%"; }
213202

214203
// === Screenshots ===
204+
Mod+Alt+A { screenshot; }
215205
XF86Launch1 { screenshot; }
216206
Ctrl+XF86Launch1 { screenshot-screen; }
217207
Alt+XF86Launch1 { screenshot-window; }
218208
Print { screenshot; }
219209
Ctrl+Print { screenshot-screen; }
220210
Alt+Print { screenshot-window; }
211+
221212
// === System Controls ===
222213
Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; }
223214
Mod+Shift+P { power-off-monitors; }

0 commit comments

Comments
 (0)