summaryrefslogtreecommitdiff
path: root/overlays
diff options
context:
space:
mode:
Diffstat (limited to 'overlays')
-rw-r--r--overlays/uucp/default.nix9
-rw-r--r--overlays/uucp/mailprogram.patch16
-rw-r--r--overlays/wttrbar/default.nix7
-rw-r--r--overlays/wttrbar/icons.patch154
4 files changed, 25 insertions, 161 deletions
diff --git a/overlays/uucp/default.nix b/overlays/uucp/default.nix
new file mode 100644
index 00000000..4189dbcc
--- /dev/null
+++ b/overlays/uucp/default.nix
@@ -0,0 +1,9 @@
1{ final, prev, ... }: {
2 uucp = prev.uucp.overrideAttrs (oldAttrs: {
3 configureFlags = (oldAttrs.configureFlags or []) ++ ["--with-newconfigdir=/etc/uucp"];
4 patches = (oldAttrs.patches or []) ++ [
5 ./mailprogram.patch
6 ];
7 NIX_CFLAGS_COMPILE = "${oldAttrs.NIX_CFLAGS_COMPILE or ""} -Wno-error=incompatible-pointer-types";
8 });
9}
diff --git a/overlays/uucp/mailprogram.patch b/overlays/uucp/mailprogram.patch
new file mode 100644
index 00000000..89ac8f31
--- /dev/null
+++ b/overlays/uucp/mailprogram.patch
@@ -0,0 +1,16 @@
1 policy.h | 2 +-
2 1 file changed, 1 insertion(+), 1 deletion(-)
3
4diff --git a/policy.h b/policy.h
5index 5afe34b..8e92c8b 100644
6--- a/policy.h
7+++ b/policy.h
8@@ -240,7 +240,7 @@
9 the sendmail choice below. Otherwise, select one of the other
10 choices as appropriate. */
11 #if 1
12-#define MAIL_PROGRAM "/usr/lib/sendmail -t"
13+#define MAIL_PROGRAM "${config.security.wrapperDir}/sendmail -t"
14 /* #define MAIL_PROGRAM "/usr/sbin/sendmail -t" */
15 #define MAIL_PROGRAM_TO_BODY 1
16 #define MAIL_PROGRAM_SUBJECT_BODY 1
diff --git a/overlays/wttrbar/default.nix b/overlays/wttrbar/default.nix
deleted file mode 100644
index 876fa699..00000000
--- a/overlays/wttrbar/default.nix
+++ /dev/null
@@ -1,7 +0,0 @@
1{ prev, ... }: {
2 wttrbar = prev.wttrbar.overrideAttrs (oldAttrs: {
3 patches = (oldAttrs.patches or []) ++ [
4 ./icons.patch
5 ];
6 });
7}
diff --git a/overlays/wttrbar/icons.patch b/overlays/wttrbar/icons.patch
deleted file mode 100644
index e7e721c8..00000000
--- a/overlays/wttrbar/icons.patch
+++ /dev/null
@@ -1,154 +0,0 @@
1diff --git a/src/constants.rs b/src/constants.rs
2index 81b1926..3619d8f 100644
3--- a/src/constants.rs
4+++ b/src/constants.rs
5@@ -1,64 +1,52 @@
6 pub const WEATHER_CODES: &[(i32, &str)] = &[
7- (113, "☀ī¸"),
8- (116, "🌤ī¸"),
9- (119, "☁ī¸"),
10- (122, "đŸŒĨī¸"),
11- (143, "đŸŒĢī¸"),
12- (176, "đŸŒĻī¸"),
13- (179, "🌧ī¸"),
14- (182, "🌨ī¸"),
15- (185, "🌨ī¸"),
16- (200, "🌩ī¸"),
17- (227, "❄ī¸"),
18- (230, "❄ī¸"),
19- (248, "đŸŒĢī¸"),
20- (260, "đŸŒĢī¸"),
21- (263, "🌧ī¸"),
22- (266, "🌧ī¸"),
23- (281, "đŸŒĻī¸"),
24- (284, "đŸŒĻī¸"),
25- (293, "🌧ī¸"),
26- (296, "🌧ī¸"),
27- (299, "🌧ī¸"),
28- (302, "🌧ī¸"),
29- (305, "🌧ī¸"),
30- (308, "🌧ī¸"),
31- (311, "🌧ī¸"),
32- (314, "🌧ī¸"),
33- (317, "🌧ī¸"),
34- (320, "🌨ī¸"),
35- (323, "🌨ī¸"),
36- (326, "🌨ī¸"),
37- (329, "🌨ī¸"),
38- (332, "🌨ī¸"),
39- (335, "🌨ī¸"),
40- (338, "🌨ī¸"),
41- (350, "🌨ī¸"),
42- (353, "🌧ī¸"),
43- (356, "🌧ī¸"),
44- (359, "🌧ī¸"),
45- (362, "🌨ī¸"),
46- (365, "🌨ī¸"),
47- (368, "🌨ī¸"),
48- (371, "🌨ī¸"),
49- (374, "🌨ī¸"),
50- (377, "🌨ī¸"),
51- (386, "🌩ī¸"),
52- (389, "🌨ī¸"),
53- (392, "🌨ī¸"),
54- (395, "🌨ī¸"),
55- (398, "🌨ī¸"),
56- (401, "🌨ī¸"),
57- (404, "🌨ī¸"),
58- (407, "🌨ī¸"),
59- (410, "🌨ī¸"),
60- (413, "🌨ī¸"),
61- (416, "🌨ī¸"),
62- (419, "🌨ī¸"),
63- (422, "🌨ī¸"),
64- (425, "🌨ī¸"),
65- (428, "🌨ī¸"),
66- (431, "🌨ī¸"),
67+ (113, "<span font=\"Symbols Nerd Font Mono\"></span>"),
68+ (116, "<span font=\"Symbols Nerd Font Mono\"></span>"),
69+ (119, "<span font=\"Symbols Nerd Font Mono\">îŒŊ</span>"),
70+ (122, "<span font=\"Symbols Nerd Font Mono\"></span>"),
71+ (143, "<span font=\"Symbols Nerd Font Mono\"></span>"),
72+ (176, "<span font=\"Symbols Nerd Font Mono\"></span>"),
73+ (179, "<span font=\"Symbols Nerd Font Mono\"></span>"),
74+ (182, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
75+ (185, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
76+ (200, "<span font=\"Symbols Nerd Font Mono\"></span>"),
77+ (227, "<span font=\"Symbols Nerd Font Mono\"></span>"),
78+ (230, "<span font=\"Symbols Nerd Font Mono\"></span>"),
79+ (248, "<span font=\"Symbols Nerd Font Mono\"></span>"),
80+ (260, "<span font=\"Symbols Nerd Font Mono\"></span>"),
81+ (263, "<span font=\"Symbols Nerd Font Mono\"></span>"),
82+ (266, "<span font=\"Symbols Nerd Font Mono\"></span>"),
83+ (281, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
84+ (284, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
85+ (293, "<span font=\"Symbols Nerd Font Mono\"></span>"),
86+ (296, "<span font=\"Symbols Nerd Font Mono\"></span>"),
87+ (299, "<span font=\"Symbols Nerd Font Mono\"></span>"),
88+ (302, "<span font=\"Symbols Nerd Font Mono\"></span>"),
89+ (305, "<span font=\"Symbols Nerd Font Mono\"></span>"),
90+ (308, "<span font=\"Symbols Nerd Font Mono\"></span>"),
91+ (311, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
92+ (314, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
93+ (317, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
94+ (320, "<span font=\"Symbols Nerd Font Mono\"></span>"),
95+ (323, "<span font=\"Symbols Nerd Font Mono\"></span>"),
96+ (326, "<span font=\"Symbols Nerd Font Mono\"></span>"),
97+ (329, "<span font=\"Symbols Nerd Font Mono\"></span>"),
98+ (332, "<span font=\"Symbols Nerd Font Mono\"></span>"),
99+ (335, "<span font=\"Symbols Nerd Font Mono\"></span>"),
100+ (338, "<span font=\"Symbols Nerd Font Mono\"></span>"),
101+ (350, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
102+ (353, "<span font=\"Symbols Nerd Font Mono\"></span>"),
103+ (356, "<span font=\"Symbols Nerd Font Mono\"></span>"),
104+ (359, "<span font=\"Symbols Nerd Font Mono\"></span>"),
105+ (362, "<span font=\"Symbols Nerd Font Mono\"></span>"),
106+ (365, "<span font=\"Symbols Nerd Font Mono\"></span>"),
107+ (368, "<span font=\"Symbols Nerd Font Mono\"></span>"),
108+ (371, "<span font=\"Symbols Nerd Font Mono\"></span>"),
109+ (374, "<span font=\"Symbols Nerd Font Mono\"></span>"),
110+ (377, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
111+ (386, "<span font=\"Symbols Nerd Font Mono\"></span>"),
112+ (389, "<span font=\"Symbols Nerd Font Mono\"></span>"),
113+ (392, "<span font=\"Symbols Nerd Font Mono\">îĨ</span>"),
114+ (395, "<span font=\"Symbols Nerd Font Mono\"></span>"),
115 ];
116
117 pub const ICON_PLACEHOLDER: &str = "{ICON}";
118diff --git a/src/main.rs b/src/main.rs
119index 6ac4654..1b84207 100644
120--- a/src/main.rs
121+++ b/src/main.rs
122@@ -175,20 +175,20 @@ fn main() {
123
124 if args.fahrenheit {
125 tooltip += &format!(
126- "âŦ†ī¸ {}° âŦ‡ī¸ {}° ",
127+ "<span font=\"Symbols Nerd Font Mono\">ķ°¸ƒ</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸‚</span> {}° ",
128 day["maxtempF"].as_str().unwrap(),
129 day["mintempF"].as_str().unwrap(),
130 );
131 } else {
132 tooltip += &format!(
133- "âŦ†ī¸ {}° âŦ‡ī¸ {}° ",
134+ "<span font=\"Symbols Nerd Font Mono\">ķ°¸ƒ</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸‚</span> {}° ",
135 day["maxtempC"].as_str().unwrap(),
136 day["mintempC"].as_str().unwrap(),
137 );
138 };
139
140 tooltip += &format!(
141- "🌅 {} 🌇 {}\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),
144 format_ampm_time(day, "sunset", args.ampm),
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()