|
6 | 6 | programs.niri = { |
7 | 7 | package = pkgs.niri-unstable; |
8 | 8 | config = '' |
9 | | - overview { |
10 | | - zoom 0.5 |
11 | | - } |
12 | 9 | gestures { |
13 | 10 | hot-corners { |
14 | 11 | off |
|
30 | 27 | touchpad { |
31 | 28 | tap |
32 | 29 | dwt |
33 | | - middle-emulation |
34 | 30 | natural-scroll |
| 31 | + middle-emulation |
35 | 32 | accel-speed 0.400000 |
36 | 33 | accel-profile "adaptive" |
37 | 34 | } |
|
47 | 44 | background-color "#16161d" |
48 | 45 | transform "normal" |
49 | 46 | } |
| 47 | + output "DP-2" { |
| 48 | + background-color "#16161d" |
| 49 | + transform "normal" |
| 50 | + } |
50 | 51 | output "eDP-1" { |
51 | 52 | background-color "#16161d" |
52 | 53 | scale 1.000000 |
|
68 | 69 | inactive-color "#6a9589" |
69 | 70 | } |
70 | 71 | border { |
71 | | - width 1 |
| 72 | + width 2 |
72 | 73 | active-color "#7e9cd8" |
73 | 74 | inactive-color "#363646" |
74 | 75 | } |
|
83 | 84 | inactive-color "#36364688" |
84 | 85 | } |
85 | 86 | insert-hint { color "#76946a88"; } |
86 | | - default-column-width { proportion 0.333300; } |
| 87 | + default-column-width { proportion 0.333000; } |
87 | 88 | preset-column-widths { |
88 | | - proportion 0.333300 |
| 89 | + proportion 0.333000 |
89 | 90 | proportion 0.500000 |
90 | | - proportion 0.666700 |
| 91 | + proportion 0.667000 |
91 | 92 | } |
92 | 93 | preset-window-heights { |
93 | | - proportion 0.200000 |
94 | | - proportion 0.400000 |
95 | | - proportion 0.600000 |
96 | | - proportion 0.800000 |
| 94 | + proportion 0.333000 |
| 95 | + proportion 0.500000 |
| 96 | + proportion 0.667000 |
97 | 97 | } |
98 | 98 | center-focused-column "never" |
99 | 99 | } |
|
119 | 119 | Mod+BracketLeft { focus-column-first; } |
120 | 120 | Mod+BracketRight { focus-column-last; } |
121 | 121 | Mod+C { center-column; } |
122 | | - Mod+Comma { set-column-width "33.33%"; } |
| 122 | + Mod+Comma { set-column-width "33.3%"; } |
123 | 123 | Mod+Ctrl+0 { set-workspace-name "yellow"; } |
124 | 124 | Mod+Ctrl+1 { set-workspace-name "red"; } |
125 | 125 | Mod+Ctrl+2 { set-workspace-name "green"; } |
|
129 | 129 | Mod+Ctrl+8 { set-workspace-name "cyan"; } |
130 | 130 | Mod+Ctrl+9 { set-workspace-name "purple"; } |
131 | 131 | Mod+Ctrl+F { toggle-windowed-fullscreen; } |
132 | | - Mod+Ctrl+H { move-column-left; } |
| 132 | + Mod+Ctrl+H { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-left || niri msg action move-column-left-or-to-monitor-left"; } |
133 | 133 | Mod+Ctrl+J { move-workspace-down; } |
134 | 134 | Mod+Ctrl+K { move-workspace-up; } |
135 | | - Mod+Ctrl+L { move-column-right; } |
| 135 | + Mod+Ctrl+L { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-monitor-right || niri msg action move-column-right-or-to-monitor-right"; } |
136 | 136 | Mod+Ctrl+M { expand-column-to-available-width; } |
137 | 137 | Mod+Ctrl+Minus { unset-workspace-name; } |
138 | 138 | Mod+Ctrl+S { set-dynamic-cast-monitor; } |
|
143 | 143 | Mod+Equal { spawn "niri" "msg" "output" "eDP-1" "on"; } |
144 | 144 | Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } |
145 | 145 | Mod+F { fullscreen-window; } |
146 | | - Mod+H { focus-column-left-or-last; } |
| 146 | + Mod+H { focus-column-or-monitor-left; } |
147 | 147 | Mod+J { focus-window-or-workspace-down; } |
148 | 148 | Mod+K { focus-window-or-workspace-up; } |
149 | | - Mod+L { focus-column-right-or-first; } |
| 149 | + Mod+L { focus-column-or-monitor-right; } |
150 | 150 | Mod+M { maximize-column; } |
151 | 151 | Mod+Minus { focus-workspace 42; } |
152 | 152 | Mod+N { spawn "/nix/store/dhflc7gyj5kxn14q8jc74nbgdag7n30m-mako-1.10.0/bin/makoctl" "dismiss" "-a"; } |
153 | | - Mod+Period { set-column-width "66.67%"; } |
| 153 | + Mod+Period { set-column-width "66.7%"; } |
154 | 154 | Mod+Q { close-window; } |
155 | 155 | Mod+R { switch-preset-column-width; } |
156 | | - Mod+Return { spawn "/nix/store/jkya41rx8azpjcxi72z4rnm180pihkhl-kitty-0.41.1/bin/kitty"; } |
| 156 | + Mod+Return { spawn "/nix/store/r8xiqydgjbxixvqa092ag18zmnvlnbyc-kitty-0.41.1/bin/kitty"; } |
157 | 157 | Mod+S { set-dynamic-cast-window; } |
158 | 158 | Mod+Semicolon { spawn "fish" "-c" "niri msg action focus-window --id (niri msg -j windows | jq -r '.[] | (.id|tostring) + \" \" + .app_id + \": \" + .title' | /nix/store/w1sm854ilhiw793nq64bgp6s0p416a6a-wofi-1.4.1/bin/wofi -di | cut -d' ' -f1)"; } |
159 | 159 | Mod+Shift+0 { spawn "fish" "-c" "niri msg action move-window-to-workspace yellow"; } |
|
169 | 169 | Mod+Shift+Equal { spawn "niri" "msg" "output" "eDP-1" "off"; } |
170 | 170 | Mod+Shift+F { toggle-windowed-fullscreen; } |
171 | 171 | Mod+Shift+H { consume-or-expel-window-left; } |
172 | | - Mod+Shift+J { move-window-down-or-to-workspace-down; } |
173 | | - Mod+Shift+K { move-window-up-or-to-workspace-up; } |
| 172 | + Mod+Shift+J { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-down || niri msg action move-window-down-or-to-workspace-down"; } |
| 173 | + Mod+Shift+K { spawn "fish" "-c" "niri msg -j windows | jq -er '.[]|select(.is_focused==true)|.is_floating' && niri msg action move-window-to-workspace-up || niri msg action move-window-up-or-to-workspace-up"; } |
174 | 174 | Mod+Shift+L { consume-or-expel-window-right; } |
175 | 175 | Mod+Shift+M { reset-window-height; } |
176 | 176 | Mod+Shift+Minus { spawn "fish" "-c" "niri msg action move-window-to-workspace 42"; } |
|
182 | 182 | Mod+Shift+XF86AudioLowerVolume { set-window-height "-1%"; } |
183 | 183 | Mod+Shift+XF86AudioRaiseVolume { set-window-height "+1%"; } |
184 | 184 | Mod+Slash { set-column-width "50%"; } |
185 | | - Mod+Space { spawn "fish" "-c" "niri msg action toggle-overview"; } |
| 185 | + Mod+Space { toggle-overview; } |
186 | 186 | Mod+Tab { focus-monitor-next; } |
187 | 187 | Mod+V { switch-focus-between-floating-and-tiling; } |
188 | 188 | Mod+W { toggle-column-tabbed-display; } |
|
204 | 204 | XF86MonBrightnessDown { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=lower"; } |
205 | 205 | XF86MonBrightnessUp { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=raise"; } |
206 | 206 | } |
207 | | - spawn-at-startup "/nix/store/vzh35c419zivp27zaxxr9yzsaymb0fsf-xwayland-satellite-0.5.1/bin/xwayland-satellite" ":42" |
| 207 | + spawn-at-startup "${pkgs.xwayland-satellite}/bin/xwayland-satellite" ":42" |
208 | 208 | window-rule { |
209 | 209 | geometry-corner-radius 1.000000 1.000000 1.000000 1.000000 |
210 | 210 | clip-to-geometry true |
|
213 | 213 | match title="^\\[private\\] .*$" |
214 | 214 | block-out-from "screencast" |
215 | 215 | } |
| 216 | + window-rule { |
| 217 | + match app-id="firefox" title="Picture-in-Picture" |
| 218 | + open-floating true |
| 219 | + } |
216 | 220 | window-rule { |
217 | 221 | match is-window-cast-target=true |
218 | 222 | border { |
|
278 | 282 | "DP-1" = { |
279 | 283 | background-color = "#${config.colors.dark_bg}"; |
280 | 284 | }; |
| 285 | + "DP-2" = { |
| 286 | + background-color = "#${config.colors.dark_bg}"; |
| 287 | + }; |
281 | 288 | }; |
282 | 289 | hotkey-overlay.skip-at-startup = true; |
283 | 290 | prefer-no-csd = true; |
|
429 | 436 | # subprocess.call(['niri', 'msg', 'action', 'consume-or-expel-window-left']) |
430 | 437 | # break |
431 | 438 | # ''}"; |
432 | | - "Mod+Space".action = spawn "fish" "-c" "niri msg action toggle-overview"; |
| 439 | + "Mod+Space".action = toggle-overview; |
433 | 440 |
|
434 | 441 | # window width |
435 | 442 | "Mod+R".action = switch-preset-column-width; |
|
0 commit comments