aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmobar/extras/battery/battery.c24
-rw-r--r--xmobar/extras/weather/src/Main.hs80
2 files changed, 52 insertions, 52 deletions
diff --git a/xmobar/extras/battery/battery.c b/xmobar/extras/battery/battery.c
index 55deb17..9ca08a5 100644
--- a/xmobar/extras/battery/battery.c
+++ b/xmobar/extras/battery/battery.c
@@ -9,18 +9,18 @@
#define N_ICONS 5
char* icons[] = {
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
- "",
+ "󰁺",
+ "󰁼",
+ "󰁾",
+ "󰂀",
+ "󰂂",
+ "󰂆",
+ "󰂈",
+ "󰢝",
+ "󰂉",
+ "󰂊",
+ "󰁹",
+ "󰂄",
};
typedef long long llong_t;
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 " "