summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix5
-rw-r--r--accounts/gkleen@sif/niri/default.nix33
-rw-r--r--accounts/gkleen@sif/niri/mako.nix1
-rw-r--r--accounts/gkleen@sif/systemd.nix30
4 files changed, 60 insertions, 9 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 10180eca..7f4879f4 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -427,6 +427,7 @@ in {
427 pynitrokey gtklock wlrctl remmina openscad spice-record 427 pynitrokey gtklock wlrctl remmina openscad spice-record
428 libguestfs-with-appliance nerd-fonts.fira-mono 428 libguestfs-with-appliance nerd-fonts.fira-mono
429 nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts 429 nerd-fonts.symbols-only nerd-fonts.fira-code powerline-fonts
430 swtpm
430 ]; 431 ];
431 432
432 file = { 433 file = {
@@ -492,6 +493,10 @@ in {
492 }; 493 };
493 }; 494 };
494 "emacs/init.el".source = ./emacs.el; 495 "emacs/init.el".source = ./emacs.el;
496 "systemd/user/xdg-desktop-portal.service.d/after-graphical-session.conf".text = ''
497 [Unit]
498 After=graphical-session.target
499 '';
495 }; 500 };
496 501
497 xdg.dataFile = { 502 xdg.dataFile = {
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]}"
diff --git a/accounts/gkleen@sif/niri/mako.nix b/accounts/gkleen@sif/niri/mako.nix
index 8abf14d8..901ed022 100644
--- a/accounts/gkleen@sif/niri/mako.nix
+++ b/accounts/gkleen@sif/niri/mako.nix
@@ -13,6 +13,7 @@
13 extraConfig = '' 13 extraConfig = ''
14 outer-margin=1 14 outer-margin=1
15 max-history=100 15 max-history=100
16 max-icon-size=48
16 17
17 [grouped] 18 [grouped]
18 format=<b>(%g)</b> <i>%s</i>\n%b 19 format=<b>(%g)</b> <i>%s</i>\n%b
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 34f52172..bce2f4cd 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -123,7 +123,8 @@ in {
123 }; 123 };
124 emacs = { 124 emacs = {
125 Unit = { 125 Unit = {
126 After = ["graphical-session-pre.target"]; 126 After = [ "graphical-session.target" ];
127 BindsTo = [ "graphical-session.target" ];
127 }; 128 };
128 }; 129 };
129 keepassxc = { 130 keepassxc = {
@@ -135,8 +136,8 @@ in {
135 Environment = [ "QT_QPA_PLATFORM=wayland" ]; 136 Environment = [ "QT_QPA_PLATFORM=wayland" ];
136 }; 137 };
137 Unit = { 138 Unit = {
138 Requires = ["graphical-session-pre.target"]; 139 After = [ "graphical-session.target" ];
139 After = ["graphical-session-pre.target"]; 140 BindsTo = [ "graphical-session.target" ];
140 }; 141 };
141 }; 142 };
142 mpris-proxy = { 143 mpris-proxy = {
@@ -184,8 +185,8 @@ in {
184 WantedBy = ["graphical-session.target"]; 185 WantedBy = ["graphical-session.target"];
185 }; 186 };
186 Unit = { 187 Unit = {
187 Requires = ["graphical-session-pre.target"]; 188 After = [ "graphical-session.target" ];
188 After = ["graphical-session-pre.target"]; 189 PartOf = [ "graphical-session.target" ];
189 }; 190 };
190 Service = { 191 Service = {
191 ExecStart = lib.getExe pkgs.psi-notify; 192 ExecStart = lib.getExe pkgs.psi-notify;
@@ -198,6 +199,7 @@ in {
198 gtklock = { 199 gtklock = {
199 Unit = { 200 Unit = {
200 Requisite = ["graphical-session.target"]; 201 Requisite = ["graphical-session.target"];
202 After = [ "graphical-session.target" ];
201 PartOf = ["graphical-session.target"]; 203 PartOf = ["graphical-session.target"];
202 }; 204 };
203 Service = { 205 Service = {
@@ -304,8 +306,8 @@ in {
304 WantedBy = ["graphical-session.target"]; 306 WantedBy = ["graphical-session.target"];
305 }; 307 };
306 Unit = { 308 Unit = {
307 BindsTo = ["graphical-session-pre.target"]; 309 After = [ "graphical-session.target" ];
308 After = ["graphical-session-pre.target"]; 310 PartOf = [ "graphical-session.target" ];
309 }; 311 };
310 Service = { 312 Service = {
311 ExecStart = lib.getExe cfg.programs.wpaperd.package; 313 ExecStart = lib.getExe cfg.programs.wpaperd.package;
@@ -314,6 +316,17 @@ in {
314 RestartSec = "2s"; 316 RestartSec = "2s";
315 }; 317 };
316 }; 318 };
319 xembed-sni-proxy = {
320 Unit = {
321 BindsTo = ["xwayland-satellite.service"];
322 After = ["xwayland-satellite.service"];
323 };
324 };
325 poweralertd = {
326 Unit = {
327 After = ["graphical-session.target"];
328 };
329 };
317 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { 330 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" {
318 Unit = { 331 Unit = {
319 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 332 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];
@@ -364,6 +377,9 @@ in {
364 }; 377 };
365 tray = { 378 tray = {
366 Unit = { 379 Unit = {
380 PartOf = [ "graphical-session.target" ];
381 Requires = [ "waybar.service" ];
382 After = [ "graphical-session.target" "waybar.service" ];
367 Wants = ["blueman-applet.service" "udiskie.service" "network-manager-applet.service"]; 383 Wants = ["blueman-applet.service" "udiskie.service" "network-manager-applet.service"];
368 }; 384 };
369 }; 385 };