aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-weather
diff options
context:
space:
mode:
authorawy <awy@awy.one>2025-07-30 23:35:30 +0300
committerawy <awy@awy.one>2025-07-30 23:35:30 +0300
commit40bd9e3f5693963a31289360fe1622f308d51a0d (patch)
treeb28802709f1553b1d28b441a9fd648fbb8a36501 /.local/bin/statusbar/sb-weather
parent343099a8ef574a6c45cc817ea5ed233ba07ba3bc (diff)
downloadhyprdots-40bd9e3f5693963a31289360fe1622f308d51a0d.tar.gz
waybar
Diffstat (limited to '.local/bin/statusbar/sb-weather')
-rwxr-xr-x.local/bin/statusbar/sb-weather9
1 files changed, 3 insertions, 6 deletions
diff --git a/.local/bin/statusbar/sb-weather b/.local/bin/statusbar/sb-weather
index d5fa97b..50b789a 100755
--- a/.local/bin/statusbar/sb-weather
+++ b/.local/bin/statusbar/sb-weather
@@ -44,12 +44,9 @@ showweather(){
;;
rain)
case 1 in
- $((rainchance >= 90)) ) class="ninety" ;;
- $((rainchance >= 70)) ) class="seventy" ;;
- $((rainchance >= 50)) ) class="fifty" ;;
- $((rainchance >= 30)) ) class="thirty" ;;
- $((rainchance >= 10)) ) class="ten" ;;
- $((rainchance > 0)) ) class="zero" ;;
+ $((rainchance >= 70)) ) class="high" ;;
+ $((rainchance >= 45)) ) class="mid" ;;
+ $((rainchance > 0)) ) class="low" ;;
$((rainchance <= 0)) ) printf '' && exit ;;
* ) echo unavailable && exit ;;
esac