repositories / dotfiles

dotfiles

bugabingas dorkfiles

owned by bugabinga

fix niri keybinds: correct IPC client id and workspace numbering

9ac700c3bcd469f7b56267571abcfbd12a86f1d1

Oliver Jan Krylow <oliver@bugabinga.net> ·

unsigned

Browse filesCompare with HEAD

- IPC binds used `-c nugu`; the quickshell client id is `nuguland`,
  so launcher/lock/power/volume/media/brightness binds never reached
  the shell. Rename all to `nuguland`.
- Mod+2/3/4 (and Mod+Shift variants) mapped names in the wrong order
  versus workspaces.kdl idx, so Mod+2 activated ws4. Reorder to
  code/media/games/browser/vault.
- Add XF86Launch1 hotkey-overlay bind.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>

Changed files (1)

+24 / −21 text lines

Diff layout

niri/cfg/keybinds.kdl

Modified

+24 / −21 text lines

22 Mod+F1 {
33 show-hotkey-overlay
44 }
5 XF86Launch1 hotkey-overlay-title="Niri: Show hotkey overlay" {
6 show-hotkey-overlay
7 }
58 Mod+Return hotkey-overlay-title="Open a Terminal: Wezterm" {
69 spawn "uwsm" "app" "-s" "work.slice" "--" "wezterm" "start" "--always-new-process"
710 }
811 Mod+Space hotkey-overlay-title="Nuguland: launcher" {
9 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "nugu" "openRegisteredPopout" "launcher"
12 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "nugu" "openRegisteredPopout" "launcher"
1013 }
1114 Mod+B hotkey-overlay-title="Open Browser: firefox" {
1215 spawn "uwsm" "app" "-s" "app-graphical.slice" "--" "firefox"
1821 spawn "uwsm" "app" "-s" "work.slice" "--" "wezterm" "start" "--always-new-process" "--class" "aerc" "--" "aerc"
1922 }
2023 Mod+ALT+L hotkey-overlay-title="Nuguland: lock" {
21 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "nugu" "lockRequest"
24 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "nugu" "lockRequest"
2225 }
2326 Mod+Shift+Q hotkey-overlay-title="Nuguland: power" {
24 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "nugu" "openRegisteredPopout" "power"
27 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "nugu" "openRegisteredPopout" "power"
2528 }
2629 Mod+TAB hotkey-overlay-title="Niri: Cycle right window" {
2730 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "sh" "-c" "niri msg action focus-column-right; niri msg action move-column-to-last; niri msg action focus-window-previous"
3033 spawn "uwsm" "app" "-s" "work.slice" "--" "wezterm" "start" "--always-new-process" "--" "yazi"
3134 }
3235 XF86AudioRaiseVolume allow-when-locked=true {
33 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "volume" "increase"
36 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "volume" "increase"
3437 }
3538 XF86AudioLowerVolume allow-when-locked=true {
36 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "volume" "decrease"
39 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "volume" "decrease"
3740 }
3841 XF86AudioMute allow-when-locked=true {
39 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "volume" "muteOutput"
42 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "volume" "muteOutput"
4043 }
4144 XF86AudioMicMute allow-when-locked=true {
42 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "volume" "muteInput"
45 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "volume" "muteInput"
4346 }
4447 XF86AudioNext allow-when-locked=true {
45 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "media" "next"
48 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "media" "next"
4649 }
4750 XF86AudioPrev allow-when-locked=true {
48 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "media" "previous"
51 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "media" "previous"
4952 }
5053 XF86AudioPlay allow-when-locked=true {
51 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "media" "playPause"
54 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "media" "playPause"
5255 }
5356 XF86AudioPause allow-when-locked=true {
54 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "media" "playPause"
57 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "media" "playPause"
5558 }
5659 XF86MonBrightnessUp allow-when-locked=true {
57 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "brightness" "increase"
60 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "brightness" "increase"
5861 }
5962 XF86MonBrightnessDown allow-when-locked=true {
60 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nugu" "call" "brightness" "decrease"
63 spawn "uwsm" "app" "-s" "session-graphical.slice" "--" "qs" "ipc" "-c" "nuguland" "call" "brightness" "decrease"
6164 }
6265 Mod+Q {
6366 close-window
120123 focus-workspace "code"
121124 }
122125 Mod+2 {
123 focus-workspace "browser"
124 }
125 Mod+3 {
126126 focus-workspace "media"
127127 }
128 Mod+4 {
128 Mod+3 {
129129 focus-workspace "games"
130130 }
131 Mod+4 {
132 focus-workspace "browser"
133 }
131134 Mod+5 {
132135 focus-workspace "vault"
133136 }
135138 move-column-to-workspace "code"
136139 }
137140 Mod+Shift+2 {
138 move-column-to-workspace "browser"
139 }
140 Mod+Shift+3 {
141141 move-column-to-workspace "media"
142142 }
143 Mod+Shift+4 {
143 Mod+Shift+3 {
144144 move-column-to-workspace "games"
145145 }
146 Mod+Shift+4 {
147 move-column-to-workspace "browser"
148 }
146149 Mod+Shift+5 {
147150 move-column-to-workspace "vault"
148151 }