diff options
author | awy <awy@awy.one> | 2025-01-27 17:25:54 +0300 |
---|---|---|
committer | awy <awy@awy.one> | 2025-01-27 17:25:54 +0300 |
commit | ec91620004d6b24024fec856192683184d3e5b3a (patch) | |
tree | 48c7ed6279718510a06899984a472cc54a38bd2c /.local/bin/statusbar/sb-doppler | |
parent | 06142cca59919fbdd5ceb70afc32497cfe4a13b0 (diff) |
update
Diffstat (limited to '.local/bin/statusbar/sb-doppler')
-rwxr-xr-x | .local/bin/statusbar/sb-doppler | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/.local/bin/statusbar/sb-doppler b/.local/bin/statusbar/sb-doppler index e6062a3..8ace4c2 100755 --- a/.local/bin/statusbar/sb-doppler +++ b/.local/bin/statusbar/sb-doppler @@ -7,16 +7,16 @@ doppler="${XDG_CACHE_HOME:-$HOME/.cache}/doppler.gif" getdoppler() { curl -sL https://meteoinfo.ru/hmc-output/rmap/phenomena.gif > "$doppler" ;} -showdoppler() { hyprctl dispatch exec "[float; size 800 800;]" "imv \"$doppler\" -H 1200 -W 1200" ;} +showdoppler() { setsid -f mpv --no-osc --loop=inf --no-terminal "$doppler" ;} case $1 in 1) [ $(($(date '+%s') - $(stat -c %Y "$doppler"))) -gt "$secs" ] && getdoppler - showdoppler ;; - 2) getdoppler && showdoppler ;; + showdoppler ;; + 2) getdoppler && 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) hyprctl dispatch exec "$TERMINAL -e \"$EDITOR\" \"$0\"" ;; + 6) setsid -f "$TERMINAL" -e "$EDITOR" "$0" ;; esac -echo π
+echo σ° |