aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-doppler
diff options
context:
space:
mode:
authorawy <awy@tutamail.com>2024-08-27 18:33:41 +0300
committerawy <awy@tutamail.com>2024-08-27 18:33:41 +0300
commit4a4bc5ad4e868ab8235aae32ee35823d34ec7799 (patch)
tree12a3777396a03bb9601e823e3e36db9af0c04684 /.local/bin/statusbar/sb-doppler
parent2c0341950bdee4f1aa8bdb6e71f64c73f84cdc80 (diff)
more convenient / original way
Diffstat (limited to '.local/bin/statusbar/sb-doppler')
-rwxr-xr-x.local/bin/statusbar/sb-doppler18
1 files changed, 8 insertions, 10 deletions
diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler
index aad82c4..a643407 100755
--- a/.local/bin/statusbar/sb-doppler
+++ b/.local/bin/statusbar/sb-doppler
@@ -4,14 +4,12 @@ showdoppler() {
hyprctl dispatch exec "[float; size 800 800;]" 'curl -s https://meteoinfo.ru/hmc-output/rmap/phenomena.gif | imv - -H 1200 -W 1200'
}
-if [ ! -n "$1" ]; then
- echo πŸŒ…
-else
- if [ "$1" -eq 1 ]; then
- showdoppler
- elif [ "$1" -eq 3 ]; then
- notify-send "πŸ—ΊοΈ Doppler RADAR module" "\- Left click for local Doppler RADAR.
-- You need to manually edit the url in the script to change location."
- fi
-fi
+case $1 in
+ 1) showdoppler ;;
+ 3) notify-send "πŸ—ΊοΈ Doppler RADAR module" "\- Left click for local Doppler RADAR.
+- Middle click to update RADAR location.
+After $secs seconds, new clicks will also automatically update the doppler RADAR." ;;
+ 6) kitty -e "$EDITOR" "$0" ;;
+esac
+echo πŸŒ