liberal snowflake doesn't render well in dwm/st

This commit is contained in:
Luke Smith 2020-04-30 10:32:29 -04:00
parent 60a467de7c
commit 4e385c18b1
No known key found for this signature in database
GPG key ID: 4C50B54A911F6252

View file

@ -1,6 +1,6 @@
#!/bin/sh #!/bin/sh
# Displays todays precipication chance (☔) and daily low () and high (🌞). # Displays todays precipication chance (☔) and daily low (🥶) and high (🌞).
# Usually intended for the statusbar. # Usually intended for the statusbar.
# If we have internet, get a weather report from wttr.in and store it locally. # If we have internet, get a weather report from wttr.in and store it locally.
@ -14,7 +14,7 @@ curl -sf "wttr.in/$LOCATION" > "${XDG_DATA_HOME:-$HOME/.local/share}/weatherrepo
# display them with coresponding emojis. # display them with coresponding emojis.
showweather() { printf "%s" "$(sed '16q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | showweather() { printf "%s" "$(sed '16q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" |
grep -wo "[0-9]*%" | sort -rn | sed "s/^/☔ /g;1q" | tr -d '\n')" grep -wo "[0-9]*%" | sort -rn | sed "s/^/☔ /g;1q" | tr -d '\n')"
sed '13q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","🌞",$2 "°"}' ;} sed '13q;d' "${XDG_DATA_HOME:-$HOME/.local/share}/weatherreport" | grep -o "m\\([-+]\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " 🥶",$1 "°","🌞",$2 "°"}' ;}
# The BLOCK_BUTTON bloat for clicking in i3. # The BLOCK_BUTTON bloat for clicking in i3.
case $BLOCK_BUTTON in case $BLOCK_BUTTON in
@ -23,7 +23,7 @@ case $BLOCK_BUTTON in
3) notify-send "🌈 Weather module" "\- Left click for full forecast. 3) notify-send "🌈 Weather module" "\- Left click for full forecast.
- Middle click to update forecast. - Middle click to update forecast.
☔: Chance of rain/snow ☔: Chance of rain/snow
: Daily low 🥶: Daily low
🌞: Daily high" ;; 🌞: Daily high" ;;
esac esac