summaryrefslogtreecommitdiff
path: root/accounts/gkleen@sif
diff options
context:
space:
mode:
Diffstat (limited to 'accounts/gkleen@sif')
-rw-r--r--accounts/gkleen@sif/default.nix34
-rw-r--r--accounts/gkleen@sif/systemd.nix16
2 files changed, 32 insertions, 18 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index e3267fc7..e85f816d 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -311,7 +311,7 @@ in {
311 "(.*) - Mozilla Thunderbird" = "$1"; 311 "(.*) - Mozilla Thunderbird" = "$1";
312 "(.*) - mpv" = "$1"; 312 "(.*) - mpv" = "$1";
313 }; 313 };
314 iconSize = 14; 314 iconSize = 11;
315 in [ 315 in [
316 { 316 {
317 layer = "top"; 317 layer = "top";
@@ -326,7 +326,7 @@ in {
326 format = "{}"; 326 format = "{}";
327 tooltip = true; 327 tooltip = true;
328 interval = 3600; 328 interval = 3600;
329 exec = "${lib.getExe pkgs.wttrbar} --hide-conditions --custom-indicator \"{ICON} {FeelsLikeC}°\""; 329 exec = "${lib.getExe pkgs.wttrbar} --hide-conditions --custom-indicator \"<span font=\\\"Symbols Nerd Font Mono\\\">{ICON}</span> {FeelsLikeC}°\"";
330 return-type = "json"; 330 return-type = "json";
331 }; 331 };
332 "custom/keymap" = { 332 "custom/keymap" = {
@@ -371,7 +371,7 @@ in {
371 "hyprland/window" = { 371 "hyprland/window" = {
372 separate-outputs = true; 372 separate-outputs = true;
373 icon = true; 373 icon = true;
374 icon-size = iconSize; 374 icon-size = 14;
375 rewrite = windowRewrites; 375 rewrite = windowRewrites;
376 }; 376 };
377 clock = { 377 clock = {
@@ -394,7 +394,8 @@ in {
394 }; 394 };
395 }; 395 };
396 battery = { 396 battery = {
397 format = "{icon}"; 397 format = "<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>";
398 icon-size = iconSize - 2;
398 states = { warning = 30; critical = 15; }; 399 states = { warning = 30; critical = 15; };
399 format-icons = ["&#xf008e;" "&#xf007a;" "&#xf007b;" "&#xf007c;" "&#xf007d;" "&#xf007e;" "&#xf007f;" "&#xf0080;" "&#xf0081;" "&#xf0082;" "&#xf0079;" ]; 400 format-icons = ["&#xf008e;" "&#xf007a;" "&#xf007b;" "&#xf007c;" "&#xf007d;" "&#xf007e;" "&#xf007f;" "&#xf0080;" "&#xf0081;" "&#xf0082;" "&#xf0079;" ];
400 format-charging = "&#xf0084;"; 401 format-charging = "&#xf0084;";
@@ -408,25 +409,26 @@ in {
408 spacing = 1; 409 spacing = 1;
409 }; 410 };
410 privacy = { 411 privacy = {
411 icon-spacing = 6; 412 icon-spacing = 7;
412 icon-size = 11; 413 icon-size = iconSize;
413 modules = [ { type = "screenshare"; } { type = "audio-in"; } ]; 414 modules = [ { type = "screenshare"; } { type = "audio-in"; } ];
414 }; 415 };
415 idle_inhibitor = { 416 idle_inhibitor = {
416 format = "{icon}"; 417 format = "<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>";
417 icon-size = 16; 418 icon-size = iconSize;
418 format-icons = { activated = "&#xf0208;"; deactivated = "&#xf0209;"; }; 419 format-icons = { activated = "&#xf0208;"; deactivated = "&#xf0209;"; };
419 }; 420 };
420 backlight = { 421 backlight = {
421 format = "{icon}"; 422 format = "<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>";
423 icon-size = iconSize;
422 tooltip-format = "{percent}%"; 424 tooltip-format = "{percent}%";
423 format-icons = ["&#xf00da;" "&#xf00db;" "&#xf00dc;" "&#xf00dd;" "&#xf00de;" "&#xf00df;" "&#xf00e0;"]; 425 format-icons = ["&#xf00da;" "&#xf00db;" "&#xf00dc;" "&#xf00dd;" "&#xf00de;" "&#xf00df;" "&#xf00e0;"];
424 on-scroll-up = "lightctl -d up"; 426 on-scroll-up = "lightctl -d up";
425 on-scroll-down = "lightctl -d down"; 427 on-scroll-down = "lightctl -d down";
426 }; 428 };
427 pulseaudio = { 429 pulseaudio = {
428 format = "{icon}"; 430 format = "<span font=\"Symbols Nerd Font Mono\" size=\"90%\">{icon}</span>";
429 icon-size = 16; 431 icon-size = iconSize;
430 tooltip-format = "{volume}% {desc}"; 432 tooltip-format = "{volume}% {desc}";
431 format-icons = ["&#xf057f;" "&#xf0580;" "&#xf057e;"]; 433 format-icons = ["&#xf057f;" "&#xf0580;" "&#xf057e;"];
432 format-muted = "&#xf075f;"; 434 format-muted = "&#xf075f;";
@@ -451,7 +453,7 @@ in {
451 "hyprland/window" = { 453 "hyprland/window" = {
452 separate-outputs = true; 454 separate-outputs = true;
453 icon = true; 455 icon = true;
454 icon-size = iconSize; 456 icon-size = 14;
455 rewrite = windowRewrites; 457 rewrite = windowRewrites;
456 }; 458 };
457 clock = { 459 clock = {
@@ -514,17 +516,14 @@ in {
514 } 516 }
515 517
516 #tray { 518 #tray {
517 margin: 0 2px; 519 margin: 0;
518 } 520 }
519 #battery, #idle_inhibitor, #backlight, #pulseaudio { 521 #battery, #idle_inhibitor, #backlight, #pulseaudio {
520 color: @grey; 522 color: @grey;
521 } 523 }
522 #battery, #pulseaudio { 524 #battery, #pulseaudio, #backlight, #idle_inhibitor {
523 margin: 0 5px 0 2px; 525 margin: 0 5px 0 2px;
524 } 526 }
525 #backlight {
526 margin: 0 9px 0 3px;
527 }
528 #battery.discharging { 527 #battery.discharging {
529 color: @white; 528 color: @white;
530 } 529 }
@@ -543,7 +542,6 @@ in {
543 542
544 #idle_inhibitor { 543 #idle_inhibitor {
545 padding-top: 1px; 544 padding-top: 1px;
546 margin: 0 9px 0 2px;
547 } 545 }
548 546
549 #privacy { 547 #privacy {
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 92404b61..be016b09 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -188,6 +188,22 @@ in {
188 RuntimeDirectory = "swayidle"; 188 RuntimeDirectory = "swayidle";
189 }; 189 };
190 }; 190 };
191 psi-notify = {
192 Install = {
193 WantedBy = ["graphical-session.target"];
194 };
195 Unit = {
196 Requires = ["graphical-session-pre.target"];
197 After = ["graphical-session-pre.target"];
198 };
199 Service = {
200 ExecStart = lib.getExe pkgs.psi-notify;
201 ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID";
202 Type = "notify";
203 Restart = "always";
204 WatchdogSec = "2s";
205 };
206 };
191 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" { 207 } // listToAttrs (map ({host, port}: nameValuePair "proxy-to-autossh-socks@${toString port}" {
192 Unit = { 208 Unit = {
193 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"]; 209 Requires = ["autossh-socks@${host}:${toString (port + 1)}.service" "proxy-to-autossh-socks@${toString port}.socket"];