summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--accounts/gkleen@sif/default.nix34
-rw-r--r--accounts/gkleen@sif/systemd.nix16
-rw-r--r--overlays/nerdfonts.nix2
-rw-r--r--overlays/wttrbar/icons.patch115
4 files changed, 95 insertions, 72 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"];
diff --git a/overlays/nerdfonts.nix b/overlays/nerdfonts.nix
index 2b73bad3..3e5ac9a2 100644
--- a/overlays/nerdfonts.nix
+++ b/overlays/nerdfonts.nix
@@ -1,5 +1,5 @@
1{ prev, ... }: { 1{ prev, ... }: {
2 nerdfonts = prev.nerdfonts.override { 2 nerdfonts = prev.nerdfonts.override {
3 fonts = ["FiraMono" "FiraCode"]; 3 fonts = ["FiraMono" "FiraCode" "NerdFontsSymbolsOnly"];
4 }; 4 };
5} 5}
diff --git a/overlays/wttrbar/icons.patch b/overlays/wttrbar/icons.patch
index 9382ee88..e7e721c8 100644
--- a/overlays/wttrbar/icons.patch
+++ b/overlays/wttrbar/icons.patch
@@ -1,5 +1,5 @@
1diff --git a/src/constants.rs b/src/constants.rs 1diff --git a/src/constants.rs b/src/constants.rs
2index 81b1926..36e26ac 100644 2index 81b1926..3619d8f 100644
3--- a/src/constants.rs 3--- a/src/constants.rs
4+++ b/src/constants.rs 4+++ b/src/constants.rs
5@@ -1,64 +1,52 @@ 5@@ -1,64 +1,52 @@
@@ -64,59 +64,59 @@ index 81b1926..36e26ac 100644
64- (425, "🌨️"), 64- (425, "🌨️"),
65- (428, "🌨️"), 65- (428, "🌨️"),
66- (431, "🌨️"), 66- (431, "🌨️"),
67+ (113, ""), 67+ (113, "<span font=\"Symbols Nerd Font Mono\"></span>"),
68+ (116, ""), 68+ (116, "<span font=\"Symbols Nerd Font Mono\"></span>"),
69+ (119, ""), 69+ (119, "<span font=\"Symbols Nerd Font Mono\"></span>"),
70+ (122, ""), 70+ (122, "<span font=\"Symbols Nerd Font Mono\"></span>"),
71+ (143, ""), 71+ (143, "<span font=\"Symbols Nerd Font Mono\"></span>"),
72+ (176, ""), 72+ (176, "<span font=\"Symbols Nerd Font Mono\"></span>"),
73+ (179, ""), 73+ (179, "<span font=\"Symbols Nerd Font Mono\"></span>"),
74+ (182, ""), 74+ (182, "<span font=\"Symbols Nerd Font Mono\"></span>"),
75+ (185, ""), 75+ (185, "<span font=\"Symbols Nerd Font Mono\"></span>"),
76+ (200, ""), 76+ (200, "<span font=\"Symbols Nerd Font Mono\"></span>"),
77+ (227, ""), 77+ (227, "<span font=\"Symbols Nerd Font Mono\"></span>"),
78+ (230, ""), 78+ (230, "<span font=\"Symbols Nerd Font Mono\"></span>"),
79+ (248, ""), 79+ (248, "<span font=\"Symbols Nerd Font Mono\"></span>"),
80+ (260, ""), 80+ (260, "<span font=\"Symbols Nerd Font Mono\"></span>"),
81+ (263, ""), 81+ (263, "<span font=\"Symbols Nerd Font Mono\"></span>"),
82+ (266, ""), 82+ (266, "<span font=\"Symbols Nerd Font Mono\"></span>"),
83+ (281, ""), 83+ (281, "<span font=\"Symbols Nerd Font Mono\"></span>"),
84+ (284, ""), 84+ (284, "<span font=\"Symbols Nerd Font Mono\"></span>"),
85+ (293, ""), 85+ (293, "<span font=\"Symbols Nerd Font Mono\"></span>"),
86+ (296, ""), 86+ (296, "<span font=\"Symbols Nerd Font Mono\"></span>"),
87+ (299, ""), 87+ (299, "<span font=\"Symbols Nerd Font Mono\"></span>"),
88+ (302, ""), 88+ (302, "<span font=\"Symbols Nerd Font Mono\"></span>"),
89+ (305, ""), 89+ (305, "<span font=\"Symbols Nerd Font Mono\"></span>"),
90+ (308, ""), 90+ (308, "<span font=\"Symbols Nerd Font Mono\"></span>"),
91+ (311, ""), 91+ (311, "<span font=\"Symbols Nerd Font Mono\"></span>"),
92+ (314, ""), 92+ (314, "<span font=\"Symbols Nerd Font Mono\"></span>"),
93+ (317, ""), 93+ (317, "<span font=\"Symbols Nerd Font Mono\"></span>"),
94+ (320, ""), 94+ (320, "<span font=\"Symbols Nerd Font Mono\"></span>"),
95+ (323, ""), 95+ (323, "<span font=\"Symbols Nerd Font Mono\"></span>"),
96+ (326, ""), 96+ (326, "<span font=\"Symbols Nerd Font Mono\"></span>"),
97+ (329, ""), 97+ (329, "<span font=\"Symbols Nerd Font Mono\"></span>"),
98+ (332, ""), 98+ (332, "<span font=\"Symbols Nerd Font Mono\"></span>"),
99+ (335, ""), 99+ (335, "<span font=\"Symbols Nerd Font Mono\"></span>"),
100+ (338, ""), 100+ (338, "<span font=\"Symbols Nerd Font Mono\"></span>"),
101+ (350, ""), 101+ (350, "<span font=\"Symbols Nerd Font Mono\"></span>"),
102+ (353, ""), 102+ (353, "<span font=\"Symbols Nerd Font Mono\"></span>"),
103+ (356, ""), 103+ (356, "<span font=\"Symbols Nerd Font Mono\"></span>"),
104+ (359, ""), 104+ (359, "<span font=\"Symbols Nerd Font Mono\"></span>"),
105+ (362, ""), 105+ (362, "<span font=\"Symbols Nerd Font Mono\"></span>"),
106+ (365, ""), 106+ (365, "<span font=\"Symbols Nerd Font Mono\"></span>"),
107+ (368, ""), 107+ (368, "<span font=\"Symbols Nerd Font Mono\"></span>"),
108+ (371, ""), 108+ (371, "<span font=\"Symbols Nerd Font Mono\"></span>"),
109+ (374, ""), 109+ (374, "<span font=\"Symbols Nerd Font Mono\"></span>"),
110+ (377, ""), 110+ (377, "<span font=\"Symbols Nerd Font Mono\"></span>"),
111+ (386, ""), 111+ (386, "<span font=\"Symbols Nerd Font Mono\"></span>"),
112+ (389, ""), 112+ (389, "<span font=\"Symbols Nerd Font Mono\"></span>"),
113+ (392, ""), 113+ (392, "<span font=\"Symbols Nerd Font Mono\"></span>"),
114+ (395, ""), 114+ (395, "<span font=\"Symbols Nerd Font Mono\"></span>"),
115 ]; 115 ];
116 116
117 pub const ICON_PLACEHOLDER: &str = "{ICON}"; 117 pub const ICON_PLACEHOLDER: &str = "{ICON}";
118diff --git a/src/main.rs b/src/main.rs 118diff --git a/src/main.rs b/src/main.rs
119index 6ac4654..8f9ed6a 100644 119index 6ac4654..1b84207 100644
120--- a/src/main.rs 120--- a/src/main.rs
121+++ b/src/main.rs 121+++ b/src/main.rs
122@@ -175,20 +175,20 @@ fn main() { 122@@ -175,20 +175,20 @@ fn main() {
@@ -124,14 +124,14 @@ index 6ac4654..8f9ed6a 100644
124 if args.fahrenheit { 124 if args.fahrenheit {
125 tooltip += &format!( 125 tooltip += &format!(
126- "⬆️ {}° ⬇️ {}° ", 126- "⬆️ {}° ⬇️ {}° ",
127+ "󰸃 {}° 󰸂 {}° ", 127+ "<span font=\"Symbols Nerd Font Mono\">󰸃</span> {}° <span font=\"Symbols Nerd Font Mono\">󰸂</span> {}° ",
128 day["maxtempF"].as_str().unwrap(), 128 day["maxtempF"].as_str().unwrap(),
129 day["mintempF"].as_str().unwrap(), 129 day["mintempF"].as_str().unwrap(),
130 ); 130 );
131 } else { 131 } else {
132 tooltip += &format!( 132 tooltip += &format!(
133- "⬆️ {}° ⬇️ {}° ", 133- "⬆️ {}° ⬇️ {}° ",
134+ "󰸃 {}° 󰸂 {}° ", 134+ "<span font=\"Symbols Nerd Font Mono\">󰸃</span> {}° <span font=\"Symbols Nerd Font Mono\">󰸂</span> {}° ",
135 day["maxtempC"].as_str().unwrap(), 135 day["maxtempC"].as_str().unwrap(),
136 day["mintempC"].as_str().unwrap(), 136 day["mintempC"].as_str().unwrap(),
137 ); 137 );
@@ -139,7 +139,16 @@ index 6ac4654..8f9ed6a 100644
139 139
140 tooltip += &format!( 140 tooltip += &format!(
141- "🌅 {} 🌇 {}\n", 141- "🌅 {} 🌇 {}\n",
142+ " {}  {}\n", 142+ "<span font=\"Symbols Nerd Font Mono\"></span> {} <span font=\"Symbols Nerd Font Mono\"></span> {}\n",
143 format_ampm_time(day, "sunrise", args.ampm), 143 format_ampm_time(day, "sunrise", args.ampm),
144 format_ampm_time(day, "sunset", args.ampm), 144 format_ampm_time(day, "sunset", args.ampm),
145 ); 145 );
146@@ -207,7 +207,7 @@ fn main() {
147 }
148
149 let mut tooltip_line = format!(
150- "{} {} {} {}",
151+ "{} {}{} {}",
152 format_time(hour["time"].as_str().unwrap(), args.ampm),
153 WEATHER_CODES
154 .iter()