summaryrefslogtreecommitdiffstats
path: root/.scripts/statusbar/weather
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-01-02 11:09:31 -0500
committerLuke Smith <luke@lukesmith.xyz>2019-01-02 11:09:31 -0500
commitef3ee7ebc8cdeadaa90f6660073068557aa8014e (patch)
tree894a3b40647b878aaa93bab006b470cac142988c /.scripts/statusbar/weather
parentbcbccce6c0a9762170d5598b085a7109ff5c1069 (diff)
downloadeibhear-ef3ee7ebc8cdeadaa90f6660073068557aa8014e.tar.gz
eibhear-ef3ee7ebc8cdeadaa90f6660073068557aa8014e.tar.zst
eibhear-ef3ee7ebc8cdeadaa90f6660073068557aa8014e.zip
weather report also moved to /tmp/
Diffstat (limited to '.scripts/statusbar/weather')
-rwxr-xr-x.scripts/statusbar/weather6
1 files changed, 3 insertions, 3 deletions
diff --git a/.scripts/statusbar/weather b/.scripts/statusbar/weather
index 00abda2..5024681 100755
--- a/.scripts/statusbar/weather
+++ b/.scripts/statusbar/weather
@@ -2,7 +2,7 @@
[ "$(stat -c %y .weatherreport | awk '{print $1}')" != "$(date '+%Y-%m-%d')" ] && getforecast
case $BLOCK_BUTTON in
- 1) $TERMINAL -e less -Srf ~/.weatherreport ;;
+ 1) $TERMINAL -e less -S /tmp/weatherreport ;;
3) pgrep -x dunst >/dev/null && notify-send "<b>🌈 Weather module:</b>
- Click for wttr.in forecast.
☔: Chance of rain/snow
@@ -10,6 +10,6 @@ case $BLOCK_BUTTON in
🌞: Daily high" ;;
esac
-printf "%s" "$(sed '16q;d' ~/.weatherreport | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')"
+printf "%s" "$(sed '16q;d' /tmp/weatherreport | grep -wo "[0-9]*%" | sort -n | sed -e '$!d' | sed -e "s/^/☔ /g" | tr -d '\n')"
-sed '13q;d' ~/.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' /tmp/weatherreport | grep -o "m\\(-\\)*[0-9]\\+" | sort -n -t 'm' -k 2n | sed -e 1b -e '$!d' | tr '\n|m' ' ' | awk '{print " ❄️",$1 "°","🌞",$2 "°"}'