summaryrefslogtreecommitdiff
path: root/overlays/wttrbar/icons.patch
blob: e7e721c8adcd4f9e61b56f6ff31b237d0f06035a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
diff --git a/src/constants.rs b/src/constants.rs
index 81b1926..3619d8f 100644
--- a/src/constants.rs
+++ b/src/constants.rs
@@ -1,64 +1,52 @@
 pub const WEATHER_CODES: &[(i32, &str)] = &[
-    (113, "☀ī¸"),
-    (116, "🌤ī¸"),
-    (119, "☁ī¸"),
-    (122, "đŸŒĨī¸"),
-    (143, "đŸŒĢī¸"),
-    (176, "đŸŒĻī¸"),
-    (179, "🌧ī¸"),
-    (182, "🌨ī¸"),
-    (185, "🌨ī¸"),
-    (200, "🌩ī¸"),
-    (227, "❄ī¸"),
-    (230, "❄ī¸"),
-    (248, "đŸŒĢī¸"),
-    (260, "đŸŒĢī¸"),
-    (263, "🌧ī¸"),
-    (266, "🌧ī¸"),
-    (281, "đŸŒĻī¸"),
-    (284, "đŸŒĻī¸"),
-    (293, "🌧ī¸"),
-    (296, "🌧ī¸"),
-    (299, "🌧ī¸"),
-    (302, "🌧ī¸"),
-    (305, "🌧ī¸"),
-    (308, "🌧ī¸"),
-    (311, "🌧ī¸"),
-    (314, "🌧ī¸"),
-    (317, "🌧ī¸"),
-    (320, "🌨ī¸"),
-    (323, "🌨ī¸"),
-    (326, "🌨ī¸"),
-    (329, "🌨ī¸"),
-    (332, "🌨ī¸"),
-    (335, "🌨ī¸"),
-    (338, "🌨ī¸"),
-    (350, "🌨ī¸"),
-    (353, "🌧ī¸"),
-    (356, "🌧ī¸"),
-    (359, "🌧ī¸"),
-    (362, "🌨ī¸"),
-    (365, "🌨ī¸"),
-    (368, "🌨ī¸"),
-    (371, "🌨ī¸"),
-    (374, "🌨ī¸"),
-    (377, "🌨ī¸"),
-    (386, "🌩ī¸"),
-    (389, "🌨ī¸"),
-    (392, "🌨ī¸"),
-    (395, "🌨ī¸"),
-    (398, "🌨ī¸"),
-    (401, "🌨ī¸"),
-    (404, "🌨ī¸"),
-    (407, "🌨ī¸"),
-    (410, "🌨ī¸"),
-    (413, "🌨ī¸"),
-    (416, "🌨ī¸"),
-    (419, "🌨ī¸"),
-    (422, "🌨ī¸"),
-    (425, "🌨ī¸"),
-    (428, "🌨ī¸"),
-    (431, "🌨ī¸"),
+    (113, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (116, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (119, "<span font=\"Symbols Nerd Font Mono\">îŒŊ</span>"),
+    (122, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (143, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (176, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (179, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (182, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (185, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (200, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (227, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (230, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (248, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (260, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (263, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (266, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (281, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (284, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (293, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (296, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (299, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (302, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (305, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (308, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (311, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (314, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (317, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (320, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (323, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (326, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (329, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (332, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (335, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (338, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (350, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (353, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (356, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (359, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (362, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (365, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (368, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (371, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (374, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (377, "<span font=\"Symbols Nerd Font Mono\">îŽĒ</span>"),
+    (386, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (389, "<span font=\"Symbols Nerd Font Mono\"></span>"),
+    (392, "<span font=\"Symbols Nerd Font Mono\">îĨ</span>"),
+    (395, "<span font=\"Symbols Nerd Font Mono\"></span>"),
 ];
 
 pub const ICON_PLACEHOLDER: &str = "{ICON}";
diff --git a/src/main.rs b/src/main.rs
index 6ac4654..1b84207 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -175,20 +175,20 @@ fn main() {
 
         if args.fahrenheit {
             tooltip += &format!(
-                "âŦ†ī¸ {}° âŦ‡ī¸ {}° ",
+                "<span font=\"Symbols Nerd Font Mono\">ķ°¸ƒ</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸‚</span> {}° ",
                 day["maxtempF"].as_str().unwrap(),
                 day["mintempF"].as_str().unwrap(),
             );
         } else {
             tooltip += &format!(
-                "âŦ†ī¸ {}° âŦ‡ī¸ {}° ",
+                "<span font=\"Symbols Nerd Font Mono\">ķ°¸ƒ</span> {}° <span font=\"Symbols Nerd Font Mono\">ķ°¸‚</span> {}° ",
                 day["maxtempC"].as_str().unwrap(),
                 day["mintempC"].as_str().unwrap(),
             );
         };
 
         tooltip += &format!(
-            "🌅 {} 🌇 {}\n",
+            "<span font=\"Symbols Nerd Font Mono\"></span> {} <span font=\"Symbols Nerd Font Mono\"></span> {}\n",
             format_ampm_time(day, "sunrise", args.ampm),
             format_ampm_time(day, "sunset", args.ampm),
         );
@@ -207,7 +207,7 @@ fn main() {
             }
 
             let mut tooltip_line = format!(
-                "{} {} {} {}",
+                "{} {}{} {}",
                 format_time(hour["time"].as_str().unwrap(), args.ampm),
                 WEATHER_CODES
                     .iter()