summaryrefslogtreecommitdiff
path: root/ar/.local/bin/statusbar/sb-forecast
diff options
context:
space:
mode:
Diffstat (limited to 'ar/.local/bin/statusbar/sb-forecast')
-rwxr-xr-xar/.local/bin/statusbar/sb-forecast11
1 files changed, 6 insertions, 5 deletions
diff --git a/ar/.local/bin/statusbar/sb-forecast b/ar/.local/bin/statusbar/sb-forecast
index d9dded0..65bcd1a 100755
--- a/ar/.local/bin/statusbar/sb-forecast
+++ b/ar/.local/bin/statusbar/sb-forecast
@@ -11,7 +11,8 @@ weatherreportjson="${XDG_CACHE_HOME:-${HOME}/.cache}/weatherreport.json"
error() {
rm -f "$weatherreport" "$weatherreportjson"
- notify-send -u critical "β›” Failed to update 'weather$1'"
+ notify-send "β›” Failed to update 'weather$1'"
+ echo "❓"
exit 1
}
@@ -59,7 +60,7 @@ gethightemp() { jq -r '.weather[0].hourly[].tempC' "$weatherreportjson" | sort -
gethumidity() {
humidity=$(get_nearest_hourly | jq -r '.humidity')
case "$humidity" in
- [0-9] | [1-2][0-9]) echo "🏜️: $humidity%" ;;
+ [0-9] | [1-2][0-9]) echo "🏜: $humidity%" ;;
[3-4][0-9]) echo "🌲: $humidity%" ;;
[5-6][0-9]) echo "πŸ’§: $humidity%" ;;
[7-8][0-9]) echo "πŸ’¦: $humidity%" ;;
@@ -351,7 +352,7 @@ case $BLOCK_BUTTON in
πŸ₯Ά: Daily lowest temperature
πŸ₯΅: Daily highest temperature"
notify-send "$(todayweather)"
- notify-send "πŸ—ΊοΈ Doppler RADAR module" "\- Middle click for local Doppler RADAR
+ notify-send "πŸ—Ί Doppler RADAR module" "\- Middle click for local Doppler RADAR
- Shift + middle click to update RADAR location
After $secs seconds, new clicks will also automatically update the doppler RADAR"
;;
@@ -360,6 +361,6 @@ After $secs seconds, new clicks will also automatically update the doppler RADAR
8) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;;
esac
-checkforecast "$weatherreport" "3600" || { getweatherreport && pkill -RTMIN+15 "${STATUSBAR:-dwmblocks}" && sleep 3; }
-checkforecast "$weatherreportjson" "86400" || { getweatherreportjson && pkill -RTMIN+15 "${STATUSBAR:-dwmblocks}" && sleep 3; }
+checkforecast "$weatherreport" "3600" || { getweatherreport && pkill -RTMIN+13 "${STATUSBAR:-dwmblocks}" && sleep 3; }
+checkforecast "$weatherreportjson" "86400" || { getweatherreportjson && pkill -RTMIN+13 "${STATUSBAR:-dwmblocks}" && sleep 3; }
showweather