From 4a4bc5ad4e868ab8235aae32ee35823d34ec7799 Mon Sep 17 00:00:00 2001 From: awy Date: Tue, 27 Aug 2024 18:33:41 +0300 Subject: more convenient / original way --- .local/bin/statusbar/sb-doppler | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) (limited to '.local/bin/statusbar/sb-doppler') 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 πŸŒ… -- cgit v1.2.3