summaryrefslogtreecommitdiff
path: root/accounts
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2024-08-12 00:52:50 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2024-08-12 00:52:50 +0200
commit6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8 (patch)
tree38a904a0894be69d5db1f64adeb22ad4b68fc635 /accounts
parent67e15aa73723811f193eef62c6f79f65c919faec (diff)
downloadnixos-6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8.tar
nixos-6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8.tar.gz
nixos-6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8.tar.bz2
nixos-6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8.tar.xz
nixos-6b91cb79e32cb5ff2d3b3d7f854e4bfc53fdd6d8.zip
...
Diffstat (limited to 'accounts')
-rw-r--r--accounts/gkleen@sif/default.nix29
-rw-r--r--accounts/gkleen@sif/systemd.nix7
2 files changed, 26 insertions, 10 deletions
diff --git a/accounts/gkleen@sif/default.nix b/accounts/gkleen@sif/default.nix
index 8332b38a..e855bbec 100644
--- a/accounts/gkleen@sif/default.nix
+++ b/accounts/gkleen@sif/default.nix
@@ -302,8 +302,15 @@ in {
302 output = "eDP-1"; 302 output = "eDP-1";
303 modules-left = [ "hyprland/workspaces" ]; 303 modules-left = [ "hyprland/workspaces" ];
304 modules-center = [ "hyprland/window" ]; 304 modules-center = [ "hyprland/window" ];
305 modules-right = [ "privacy" "clock" "tray" "battery" "idle_inhibitor" ]; 305 modules-right = [ "custom/weather" "clock" "privacy" "tray" "backlight" "battery" "idle_inhibitor" ];
306 306
307 "custom/weather" = {
308 format = "{}";
309 tooltip = true;
310 interval = 3600;
311 exec = "${lib.getExe pkgs.wttrbar} --hide-conditions --custom-indicator \"{ICON} {temp_C}° ({FeelsLikeC}°)\"";
312 return-type = "json";
313 };
307 "hyprland/workspaces" = { 314 "hyprland/workspaces" = {
308 all-outputs = true; 315 all-outputs = true;
309 }; 316 };
@@ -355,6 +362,13 @@ in {
355 format = "{icon}"; 362 format = "{icon}";
356 format-icons = { activated = "&#xf0208;"; deactivated = "&#xf0209;"; }; 363 format-icons = { activated = "&#xf0208;"; deactivated = "&#xf0209;"; };
357 }; 364 };
365 backlight = {
366 format = "{icon}";
367 tooltip-format = "{percent}%";
368 format-icons = ["&#xf00da;" "&#xf00db;" "&#xf00dc;" "&#xf00dd;" "&#xf00de;" "&#xf00df;" "&#xf00e0;"];
369 on-scroll-up = "brightnessctl s +1";
370 on-scroll-down = "brightnessctl s 1-";
371 };
358 } 372 }
359 { 373 {
360 layer = "top"; 374 layer = "top";
@@ -429,7 +443,12 @@ in {
429 color: @red; 443 color: @red;
430 } 444 }
431 445
432 #battery, #idle_inhibitor { 446 #custom-weather {
447 color: @white;
448 opacity: 0.6;
449 }
450
451 #battery, #idle_inhibitor, #backlight {
433 color: @grey; 452 color: @grey;
434 } 453 }
435 #battery.warning { 454 #battery.warning {
@@ -444,6 +463,10 @@ in {
444 #idle_inhibitor.activated { 463 #idle_inhibitor.activated {
445 color: @white; 464 color: @white;
446 } 465 }
466
467 #privacy {
468 color: @red;
469 }
447 ''; 470 '';
448 }; 471 };
449 wpaperd = { 472 wpaperd = {
diff --git a/accounts/gkleen@sif/systemd.nix b/accounts/gkleen@sif/systemd.nix
index 30fd2d72..1397ca62 100644
--- a/accounts/gkleen@sif/systemd.nix
+++ b/accounts/gkleen@sif/systemd.nix
@@ -126,13 +126,6 @@ in {
126 Environment = with pkgs; "PATH=${worktime}/bin:${systemd}/bin"; 126 Environment = with pkgs; "PATH=${worktime}/bin:${systemd}/bin";
127 }; 127 };
128 }; 128 };
129 waybar = {
130 Service = {
131 Environment = [
132 "TZ=:/etc/localtime"
133 ];
134 };
135 };
136 dunst = { 129 dunst = {
137 Service = { 130 Service = {
138 ExecStart = lib.mkForce "${cfg.services.dunst.package}/bin/dunst"; 131 ExecStart = lib.mkForce "${cfg.services.dunst.package}/bin/dunst";