|
5 | 5 | }: { |
6 | 6 | programs.niri = { |
7 | 7 | package = pkgs.niri-unstable; |
| 8 | + config = '' |
| 9 | + overview { |
| 10 | + zoom 0.5 |
| 11 | + } |
| 12 | + gestures { |
| 13 | + hot-corners { |
| 14 | + off |
| 15 | + } |
| 16 | + } |
| 17 | + input { |
| 18 | + keyboard { |
| 19 | + xkb { |
| 20 | + layout "us" |
| 21 | + model "pc105" |
| 22 | + rules "" |
| 23 | + variant "altgr-intl" |
| 24 | + options "compose:rctrl,lv3:caps_switch" |
| 25 | + } |
| 26 | + repeat-delay 600 |
| 27 | + repeat-rate 25 |
| 28 | + track-layout "global" |
| 29 | + } |
| 30 | + touchpad { |
| 31 | + tap |
| 32 | + dwt |
| 33 | + middle-emulation |
| 34 | + accel-speed 0.400000 |
| 35 | + accel-profile "adaptive" |
| 36 | + } |
| 37 | + mouse { accel-speed 0.000000; } |
| 38 | + trackpoint { accel-speed 0.000000; } |
| 39 | + trackball { accel-speed 0.000000; } |
| 40 | + tablet |
| 41 | + touch |
| 42 | + focus-follows-mouse max-scroll-amount="0%" |
| 43 | + workspace-auto-back-and-forth |
| 44 | + } |
| 45 | + output "DP-1" { |
| 46 | + background-color "#16161d" |
| 47 | + transform "normal" |
| 48 | + } |
| 49 | + output "eDP-1" { |
| 50 | + background-color "#16161d" |
| 51 | + scale 1.000000 |
| 52 | + transform "normal" |
| 53 | + } |
| 54 | + screenshot-path "~/pictures/screenshot-%d-%m-%Y-%T.png" |
| 55 | + prefer-no-csd |
| 56 | + layout { |
| 57 | + gaps 0 |
| 58 | + struts { |
| 59 | + left 0 |
| 60 | + right 0 |
| 61 | + top 0 |
| 62 | + bottom 0 |
| 63 | + } |
| 64 | + focus-ring { |
| 65 | + width 1 |
| 66 | + active-color "#7e9cd800" |
| 67 | + inactive-color "#6a9589" |
| 68 | + } |
| 69 | + border { |
| 70 | + width 2 |
| 71 | + active-color "#7e9cd8" |
| 72 | + inactive-color "#363646" |
| 73 | + } |
| 74 | + tab-indicator { |
| 75 | + gap -8.000000 |
| 76 | + width 5 |
| 77 | + length total-proportion=0.100000 |
| 78 | + position "right" |
| 79 | + gaps-between-tabs 5 |
| 80 | + corner-radius 5 |
| 81 | + active-color "#7e9cd888" |
| 82 | + inactive-color "#36364688" |
| 83 | + } |
| 84 | + insert-hint { color "#76946a88"; } |
| 85 | + default-column-width { proportion 0.333300; } |
| 86 | + preset-column-widths { |
| 87 | + proportion 0.333300 |
| 88 | + proportion 0.500000 |
| 89 | + proportion 0.666700 |
| 90 | + } |
| 91 | + preset-window-heights { |
| 92 | + proportion 0.200000 |
| 93 | + proportion 0.400000 |
| 94 | + proportion 0.600000 |
| 95 | + proportion 0.800000 |
| 96 | + } |
| 97 | + center-focused-column "never" |
| 98 | + } |
| 99 | + cursor { |
| 100 | + xcursor-theme "default" |
| 101 | + xcursor-size 24 |
| 102 | + } |
| 103 | + hotkey-overlay { skip-at-startup; } |
| 104 | + environment { DISPLAY ":42"; } |
| 105 | + binds { |
| 106 | + Cancel { spawn "/nix/store/q0fc3igzic4j2qw6zqbszakkmhw9y0xn-swaylock-effects-1.7.0.0/bin/swaylock" "-f"; } |
| 107 | + Ctrl+Alt+Delete allow-inhibiting=false { quit; } |
| 108 | + Ctrl+Print { screenshot-window; } |
| 109 | + Mod+0 { focus-workspace "yellow"; } |
| 110 | + Mod+1 { focus-workspace "red"; } |
| 111 | + Mod+2 { focus-workspace "green"; } |
| 112 | + Mod+3 { focus-workspace "blue"; } |
| 113 | + Mod+4 { focus-workspace "orange"; } |
| 114 | + Mod+7 { focus-workspace "pink"; } |
| 115 | + Mod+8 { focus-workspace "cyan"; } |
| 116 | + Mod+9 { focus-workspace "purple"; } |
| 117 | + Mod+Backslash { spawn "/nix/store/q0fc3igzic4j2qw6zqbszakkmhw9y0xn-swaylock-effects-1.7.0.0/bin/swaylock" "-f"; } |
| 118 | + Mod+BracketLeft { focus-column-first; } |
| 119 | + Mod+BracketRight { focus-column-last; } |
| 120 | + Mod+C { center-column; } |
| 121 | + Mod+Comma { set-column-width "33.33%"; } |
| 122 | + Mod+Ctrl+0 { set-workspace-name "yellow"; } |
| 123 | + Mod+Ctrl+1 { set-workspace-name "red"; } |
| 124 | + Mod+Ctrl+2 { set-workspace-name "green"; } |
| 125 | + Mod+Ctrl+3 { set-workspace-name "blue"; } |
| 126 | + Mod+Ctrl+4 { set-workspace-name "orange"; } |
| 127 | + Mod+Ctrl+7 { set-workspace-name "pink"; } |
| 128 | + Mod+Ctrl+8 { set-workspace-name "cyan"; } |
| 129 | + Mod+Ctrl+9 { set-workspace-name "purple"; } |
| 130 | + Mod+Ctrl+F { toggle-windowed-fullscreen; } |
| 131 | + Mod+Ctrl+H { move-column-left; } |
| 132 | + Mod+Ctrl+J { move-workspace-down; } |
| 133 | + Mod+Ctrl+K { move-workspace-up; } |
| 134 | + Mod+Ctrl+L { move-column-right; } |
| 135 | + Mod+Ctrl+M { expand-column-to-available-width; } |
| 136 | + Mod+Ctrl+Minus { unset-workspace-name; } |
| 137 | + Mod+Ctrl+S { set-dynamic-cast-monitor; } |
| 138 | + Mod+Ctrl+Shift+Backslash { spawn "systemctl" "suspend"; } |
| 139 | + Mod+Ctrl+Tab { move-workspace-to-monitor-next; } |
| 140 | + Mod+Ctrl+V { toggle-window-floating; } |
| 141 | + Mod+D { spawn "/nix/store/w1sm854ilhiw793nq64bgp6s0p416a6a-wofi-1.4.1/bin/wofi" "-aGS" "drun"; } |
| 142 | + Mod+Equal { spawn "niri" "msg" "output" "eDP-1" "on"; } |
| 143 | + Mod+Escape allow-inhibiting=false { toggle-keyboard-shortcuts-inhibit; } |
| 144 | + Mod+F { fullscreen-window; } |
| 145 | + Mod+H { focus-column-left-or-last; } |
| 146 | + Mod+J { focus-window-or-workspace-down; } |
| 147 | + Mod+K { focus-window-or-workspace-up; } |
| 148 | + Mod+L { focus-column-right-or-first; } |
| 149 | + Mod+M { maximize-column; } |
| 150 | + Mod+Minus { focus-workspace 42; } |
| 151 | + Mod+N { spawn "/nix/store/dhflc7gyj5kxn14q8jc74nbgdag7n30m-mako-1.10.0/bin/makoctl" "dismiss" "-a"; } |
| 152 | + Mod+Period { set-column-width "66.67%"; } |
| 153 | + Mod+Q { close-window; } |
| 154 | + Mod+R { switch-preset-column-width; } |
| 155 | + Mod+Return { spawn "/nix/store/jkya41rx8azpjcxi72z4rnm180pihkhl-kitty-0.41.1/bin/kitty"; } |
| 156 | + Mod+S { set-dynamic-cast-window; } |
| 157 | + 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)"; } |
| 158 | + Mod+Shift+0 { spawn "fish" "-c" "niri msg action move-window-to-workspace yellow"; } |
| 159 | + Mod+Shift+1 { spawn "fish" "-c" "niri msg action move-window-to-workspace red"; } |
| 160 | + Mod+Shift+2 { spawn "fish" "-c" "niri msg action move-window-to-workspace green"; } |
| 161 | + Mod+Shift+3 { spawn "fish" "-c" "niri msg action move-window-to-workspace blue"; } |
| 162 | + Mod+Shift+4 { spawn "fish" "-c" "niri msg action move-window-to-workspace orange"; } |
| 163 | + Mod+Shift+7 { spawn "fish" "-c" "niri msg action move-window-to-workspace pink"; } |
| 164 | + Mod+Shift+8 { spawn "fish" "-c" "niri msg action move-window-to-workspace cyan"; } |
| 165 | + Mod+Shift+9 { spawn "fish" "-c" "niri msg action move-window-to-workspace purple"; } |
| 166 | + Mod+Shift+BracketLeft { move-column-to-first; } |
| 167 | + Mod+Shift+BracketRight { move-column-to-last; } |
| 168 | + Mod+Shift+Equal { spawn "niri" "msg" "output" "eDP-1" "off"; } |
| 169 | + Mod+Shift+F { toggle-windowed-fullscreen; } |
| 170 | + Mod+Shift+H { consume-or-expel-window-left; } |
| 171 | + Mod+Shift+J { move-window-down-or-to-workspace-down; } |
| 172 | + Mod+Shift+K { move-window-up-or-to-workspace-up; } |
| 173 | + Mod+Shift+L { consume-or-expel-window-right; } |
| 174 | + Mod+Shift+M { reset-window-height; } |
| 175 | + Mod+Shift+Minus { spawn "fish" "-c" "niri msg action move-window-to-workspace 42"; } |
| 176 | + Mod+Shift+R { switch-preset-window-height; } |
| 177 | + Mod+Shift+S { clear-dynamic-cast-target; } |
| 178 | + Mod+Shift+Tab { move-window-to-monitor-next; } |
| 179 | + Mod+Shift+WheelScrollDown cooldown-ms=150 { focus-column-right; } |
| 180 | + Mod+Shift+WheelScrollUp cooldown-ms=150 { focus-column-left; } |
| 181 | + Mod+Shift+XF86AudioLowerVolume { set-window-height "-1%"; } |
| 182 | + Mod+Shift+XF86AudioRaiseVolume { set-window-height "+1%"; } |
| 183 | + Mod+Slash { set-column-width "50%"; } |
| 184 | + Mod+Space { spawn "fish" "-c" "niri msg action toggle-overview"; } |
| 185 | + Mod+Tab { focus-monitor-next; } |
| 186 | + Mod+V { switch-focus-between-floating-and-tiling; } |
| 187 | + Mod+W { toggle-column-tabbed-display; } |
| 188 | + Mod+WheelScrollDown cooldown-ms=150 { focus-workspace-down; } |
| 189 | + Mod+WheelScrollUp cooldown-ms=150 { focus-workspace-up; } |
| 190 | + Mod+XF86AudioLowerVolume { set-column-width "-1%"; } |
| 191 | + Mod+XF86AudioRaiseVolume { set-column-width "+1%"; } |
| 192 | + Print { screenshot; } |
| 193 | + Shift+XF86AudioLowerVolume allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --output-volume=-5 && pkill -SIGRTMIN+4 waybar"; } |
| 194 | + Shift+XF86AudioRaiseVolume allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --output-volume=5 && pkill -SIGRTMIN+4 waybar"; } |
| 195 | + XF86AudioLowerVolume allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --output-volume=-1 && pkill -SIGRTMIN+4 waybar"; } |
| 196 | + XF86AudioMicMute allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --input-volume=mute-toggle && pkill -SIGRTMIN+4 waybar"; } |
| 197 | + XF86AudioMute allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --output-volume=mute-toggle && pkill -SIGRTMIN+4 waybar"; } |
| 198 | + XF86AudioNext allow-when-locked=true { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client" "--playerctl=next"; } |
| 199 | + XF86AudioPlay allow-when-locked=true { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client" "--playerctl=play-pause"; } |
| 200 | + XF86AudioPrev allow-when-locked=true { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client" "--playerctl=prev"; } |
| 201 | + XF86AudioRaiseVolume allow-when-locked=true { spawn "bash" "-c" "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --output-volume=1 && pkill -SIGRTMIN+4 waybar"; } |
| 202 | + XF86AudioStop allow-when-locked=true { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client" "--playerctl=play-pause"; } |
| 203 | + XF86MonBrightnessDown { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=lower"; } |
| 204 | + XF86MonBrightnessUp { spawn "/nix/store/9vvyad1zvfh6yjgcm9q0lv2car16spfz-swayosd-0.2.0/bin/swayosd-client --brightness=raise"; } |
| 205 | + } |
| 206 | + spawn-at-startup "/nix/store/vzh35c419zivp27zaxxr9yzsaymb0fsf-xwayland-satellite-0.5.1/bin/xwayland-satellite" ":42" |
| 207 | + window-rule { |
| 208 | + geometry-corner-radius 1.000000 1.000000 1.000000 1.000000 |
| 209 | + clip-to-geometry true |
| 210 | + } |
| 211 | + window-rule { |
| 212 | + match title="^\\[private\\] .*$" |
| 213 | + block-out-from "screencast" |
| 214 | + } |
| 215 | + window-rule { |
| 216 | + match is-window-cast-target=true |
| 217 | + border { |
| 218 | + active-color "#e82424" |
| 219 | + inactive-color "#c34043" |
| 220 | + } |
| 221 | + shadow { |
| 222 | + on |
| 223 | + color "#c34043" |
| 224 | + } |
| 225 | + } |
| 226 | + window-rule { |
| 227 | + match is-floating=true |
| 228 | + shadow { |
| 229 | + on |
| 230 | + color "#7e9cd8" |
| 231 | + } |
| 232 | + } |
| 233 | + layer-rule { |
| 234 | + match namespace="notifications" |
| 235 | + block-out-from "screen-capture" |
| 236 | + } |
| 237 | + animations { slowdown 1.000000; } |
| 238 | + ''; |
8 | 239 | settings = { |
9 | 240 | spawn-at-startup = [ |
10 | 241 | { |
|
0 commit comments