diff options
Diffstat (limited to 'overlays/wttrbar/icons.patch')
-rw-r--r-- | overlays/wttrbar/icons.patch | 154 |
1 files changed, 0 insertions, 154 deletions
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 @@ | |||
1 | diff --git a/src/constants.rs b/src/constants.rs | ||
2 | index 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}"; | ||
118 | diff --git a/src/main.rs b/src/main.rs | ||
119 | index 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() | ||