aboutsummaryrefslogtreecommitdiff
path: root/xmobar/extras/weather/src
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2024-08-15 12:08:17 -0600
committerJosh Rahm <rahm@google.com>2024-08-15 12:08:17 -0600
commitfe786068cab9340c796c5274e00a8b2dbe077c54 (patch)
treef37d3a471e25ddeb45c87a7292a1cbfe56e42b8e /xmobar/extras/weather/src
parent1e388bd875ecaccde8047dceab1b97ef54175334 (diff)
downloadrde-fe786068cab9340c796c5274e00a8b2dbe077c54.tar.gz
rde-fe786068cab9340c796c5274e00a8b2dbe077c54.tar.bz2
rde-fe786068cab9340c796c5274e00a8b2dbe077c54.zip
Update the icons for XMobar to th enew NERD font icons.
I don't know why they changed them, but here we are ...
Diffstat (limited to 'xmobar/extras/weather/src')
-rw-r--r--xmobar/extras/weather/src/Main.hs80
1 files changed, 40 insertions, 40 deletions
diff --git a/xmobar/extras/weather/src/Main.hs b/xmobar/extras/weather/src/Main.hs
index aff669a..1c0c590 100644
--- a/xmobar/extras/weather/src/Main.hs
+++ b/xmobar/extras/weather/src/Main.hs
@@ -121,35 +121,35 @@ instance FromJSON Weather where
conditionsIconDay :: [(String -> Bool, String)]
conditionsIconDay =
- [ ((== "overcast"), fc "#808080" "\63070"),
+ [ ((== "overcast"), fc "#808080" "\xe312"),
((== "fair"), fc "a0a0a0" "🌑"),
- ((== "clear"), fc "#ddcf04" "\58125"),
- ((== "sunny"), fc "#ddcf04" "\58125"),
- ((== "mostly clear"), fc "#00a3c4" "\57894"),
- ((== "mostly sunny"), fc "#ddcf04" "\58124"),
- ((== "partly sunny"), fc "#ddcf04" "\58124"),
- ((== "fair"), fc "#a0a0a0" "\127761"),
- ((== "cloudy"), fc "#a0a0a0" "\64143"),
- ((== "overcast"), fc "#808080" "\63070"),
- ((== "partly cloudy"), fc "#a0a0a0" "\64148"),
- ((== "mostly cloudy"), fc "#808080" "\63070"),
- ((== "considerable cloudiness"), fc "#a0a0a0" "\64381"),
- (("snow" `isInfixOf`), fc "#a0a0f0" "\58138")
+ ((== "clear"), fc "#ddcf04" "\xe30d"),
+ ((== "sunny"), fc "#ddcf04" "\xf05a8"),
+ ((== "mostly clear"), fc "#00a3c4" "\xe30c"),
+ ((== "mostly sunny"), fc "#ddcf04" "\xe30c"),
+ ((== "partly sunny"), fc "#ddcf04" "\xe30c"),
+ ((== "fair"), fc "#a0a0a0" "\xe30c"),
+ ((== "cloudy"), fc "#a0a0a0" "\xf0590"),
+ ((== "overcast"), fc "#808080" "\xf0590"),
+ ((== "partly cloudy"), fc "#a0a0a0" "\xe302"),
+ ((== "mostly cloudy"), fc "#808080" "\xe302"),
+ ((== "considerable cloudiness"), fc "#a0a0a0" "\xe32e"),
+ (("snow" `isInfixOf`), fc "#a0a0f0" "j")
]
conditionsIconNight :: [(String -> Bool, String)]
conditionsIconNight =
- [ ((== "clear"), fc "#00a3c4" "\61830"),
- ((== "sunny"), fc "#00a3c4" "\61830"),
- ((== "mostly clear"), fc "#00a3c4" "\57894"),
- ((== "mostly sunny"), fc "#00a3c4" "\57894"),
- ((== "partly sunny"), fc "#00a3c4" "\57894"),
- ((== "fair"), fc "#808080" "\127761"),
- ((== "cloudy"), fc "#808080" "\64143"),
- ((== "overcast"), fc "#404040" "\63070"),
- ((== "partly cloudy"), fc "#a0a0a0" "\57894"),
- ((== "mostly cloudy"), fc "#808080" "\63070"),
- ((== "considerable cloudiness"), fc "#a0a0a0" "\64381")
+ [ ((== "clear"), fc "#00a3c4" "\xe32b"),
+ ((== "sunny"), fc "#00a3c4" "\xe32b"),
+ ((== "mostly clear"), fc "#00a3c4" "\xe37b"),
+ ((== "mostly sunny"), fc "#00a3c4" "\xe37b"),
+ ((== "partly sunny"), fc "#00a3c4" "\xe37b"),
+ ((== "fair"), fc "#808080" "\xe379"),
+ ((== "cloudy"), fc "#808080" "\xf0590"),
+ ((== "overcast"), fc "#404040" "\xf0590"),
+ ((== "partly cloudy"), fc "#a0a0a0" "\xf0f31"),
+ ((== "mostly cloudy"), fc "#808080" "\xf0f31"),
+ ((== "considerable cloudiness"), fc "\xf0590" "y")
]
handleWeather :: Weather -> String
@@ -160,22 +160,22 @@ handleWeather w = execWriter $ do
lightGrey $
fn 3 $
case winddir (currentCondition w) of
- "NE" -> "\62785"
- "NNE" -> "\62785"
- "ENE" -> "\62785"
- "SE" -> "\62810"
- "SSE" -> "\62810"
- "ESE" -> "\62810"
- "NW" -> "\62786"
- "NNW" -> "\62786"
- "WNW" -> "\62786"
- "SW" -> "\62811"
- "SSW" -> "\62811"
- "WSW" -> "\62811"
- "N" -> "\62788"
- "S" -> "\62812"
- "W" -> "\62803"
- "E" -> "\62796"
+ "NE" -> "\xf46c"
+ "NNE" -> "\xeaa1"
+ "ENE" -> "\xea9c"
+ "SE" -> "\xf43e"
+ "SSE" -> "\xea9a"
+ "ESE" -> "\xea9c"
+ "NW" -> "\xf45c"
+ "NNW" -> "\xeaa1"
+ "WNW" -> "\xea9b"
+ "SW" -> "\xf424"
+ "SSW" -> "\xea9a"
+ "WSW" -> "\xea9b"
+ "N" -> "\xeaa1"
+ "S" -> "\xea9a"
+ "W" -> "\xea9b"
+ "E" -> "\xea9c"
_ -> "?"
tell " "