aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-doppler
diff options
context:
space:
mode:
Diffstat (limited to '.local/bin/statusbar/sb-doppler')
-rwxr-xr-x.local/bin/statusbar/sb-doppler19
1 files changed, 19 insertions, 0 deletions
diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler
new file mode 100755
index 0000000..4567e30
--- /dev/null
+++ b/.local/bin/statusbar/sb-doppler
@@ -0,0 +1,19 @@
+#!/bin/sh
+
+showdoppler() {
+ hyprctl dispatch exec "[float; size 800 800;]" 'curl -s https://meteoinfo.ru/hmc-output/rmap/phenomena.gif | imv - -H 1200 -W 1200'
+}
+
+sendnotif() {
+ notify-send "🌦️ Doppler RADAR" "Left click for full forecast."
+}
+if [ ! -n "$1" ]; then
+ echo 🌅
+else
+ if [ "$1" -eq 1 ]; then
+ showdoppler
+ elif [ "$1" -eq 3 ]; then
+ sendnotif
+ fi
+fi
+