diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-23 14:37:58 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2025-01-23 14:37:58 +0100 |
commit | 11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5 (patch) | |
tree | c5506cea25ad516d7f28ac8bddb04245b5bd3603 /accounts/gkleen@sif/niri/default.nix | |
parent | 07496f4fd71e711859fab2cc858d2c440053f20c (diff) | |
download | nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.gz nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.bz2 nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.tar.xz nixos-11bbb2a99fb6a8741522830d8d3e9c2d90d4e5d5.zip |
...
Diffstat (limited to 'accounts/gkleen@sif/niri/default.nix')
-rw-r--r-- | accounts/gkleen@sif/niri/default.nix | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/accounts/gkleen@sif/niri/default.nix b/accounts/gkleen@sif/niri/default.nix index 165eb5fa..71870aa4 100644 --- a/accounts/gkleen@sif/niri/default.nix +++ b/accounts/gkleen@sif/niri/default.nix | |||
@@ -200,6 +200,8 @@ in { | |||
200 | DISPLAY = ":0"; | 200 | DISPLAY = ":0"; |
201 | }; | 201 | }; |
202 | 202 | ||
203 | debug.render-drm-device = "/dev/dri/by-path/pci-0000:00:02.0-render"; | ||
204 | |||
203 | layout = { | 205 | layout = { |
204 | gaps = 8; | 206 | gaps = 8; |
205 | struts = { left = 0; right = 0; top = 0; bottom = 0; }; | 207 | struts = { left = 0; right = 0; top = 0; bottom = 0; }; |
@@ -239,6 +241,14 @@ in { | |||
239 | 241 | ||
240 | cursor.hide-when-typing = true; | 242 | cursor.hide-when-typing = true; |
241 | 243 | ||
244 | input = { | ||
245 | touchpad.enable = false; | ||
246 | trackball = { | ||
247 | scroll-method = "on-button-down"; | ||
248 | scroll-button = 278; | ||
249 | }; | ||
250 | }; | ||
251 | |||
242 | workspaces = { | 252 | workspaces = { |
243 | "001" = { name = "pwctl"; open-on-output = "eDP-1"; }; | 253 | "001" = { name = "pwctl"; open-on-output = "eDP-1"; }; |
244 | "002" = { name = "kpxc"; open-on-output = "eDP-1"; }; | 254 | "002" = { name = "kpxc"; open-on-output = "eDP-1"; }; |
@@ -250,6 +260,7 @@ in { | |||
250 | # "104".name = "read"; | 260 | # "104".name = "read"; |
251 | # "105".name = "mon"; | 261 | # "105".name = "mon"; |
252 | "110".name = "vid"; | 262 | "110".name = "vid"; |
263 | "120".name = "bmr"; | ||
253 | }; | 264 | }; |
254 | 265 | ||
255 | window-rules = [ | 266 | window-rules = [ |
@@ -356,6 +367,22 @@ in { | |||
356 | # ]; | 367 | # ]; |
357 | # open-on-workspace = "mon"; | 368 | # open-on-workspace = "mon"; |
358 | # } | 369 | # } |
370 | { | ||
371 | matches = [ { app-id = "^pdfpc$"; } ]; | ||
372 | default-column-width.proportion = 1.; | ||
373 | } | ||
374 | { | ||
375 | matches = [ { app-id = "^pdfpc$"; title = "^pdfpc - presentation"; } ]; | ||
376 | open-on-workspace = "bmr"; | ||
377 | open-fullscreen = true; | ||
378 | } | ||
379 | { | ||
380 | matches = [ | ||
381 | { app-id = "^Gimp-"; title = "^Quit GIMP$"; } | ||
382 | { app-id = "^org\.kde\.polkit-kde-authentication-agent-1$"; } | ||
383 | ]; | ||
384 | open-floating = true; | ||
385 | } | ||
359 | ]; | 386 | ]; |
360 | layer-rules = [ | 387 | layer-rules = [ |
361 | { matches = [ | 388 | { matches = [ |
@@ -414,12 +441,14 @@ in { | |||
414 | fi | 441 | fi |
415 | [[ -n "$QALC_RES" ]] || exit 1 | 442 | [[ -n "$QALC_RES" ]] || exit 1 |
416 | EXISTING=false | 443 | EXISTING=false |
417 | set +e | 444 | set +o pipefail |
418 | grep -Fxrl "$QALC_RES" "$RESULTS_DIR" | xargs -r touch | 445 | grep -Fxrl "$QALC_RES" "$RESULTS_DIR" | xargs -r touch |
419 | [[ ''${PIPESTATUS[0]} -eq 0 ]] && EXISTING=true | 446 | [[ ''${PIPESTATUS[0]} -eq 0 ]] && EXISTING=true |
420 | set -e | 447 | set -o pipefail |
421 | if [[ $QALC_RET -eq 0 ]] && ! $EXISTING; then | 448 | if [[ $QALC_RET -eq 0 ]] && ! $EXISTING; then |
449 | set +o pipefail | ||
422 | RES_FILE="$RESULTS_DIR"/$(date -uIs).$(tr -Cd 'a-zA-Z0-9' </dev/random | head -c 10) | 450 | RES_FILE="$RESULTS_DIR"/$(date -uIs).$(tr -Cd 'a-zA-Z0-9' </dev/random | head -c 10) |
451 | set -o pipefail | ||
423 | cat >"$RES_FILE" <<<"$QALC_RES" | 452 | cat >"$RES_FILE" <<<"$QALC_RES" |
424 | fi | 453 | fi |
425 | [[ "$QALC_RES" =~ .*\ =\ (.*) ]] && QALC_RES="''${BASH_REMATCH[1]}" | 454 | [[ "$QALC_RES" =~ .*\ =\ (.*) ]] && QALC_RES="''${BASH_REMATCH[1]}" |