diff options
author | awy <awy@tutamail.com> | 2024-08-27 03:44:14 +0300 |
---|---|---|
committer | awy <awy@tutamail.com> | 2024-08-27 03:44:14 +0300 |
commit | 8c24921832b2b6dc95bbb41dbfe2de7ff4fcf877 (patch) | |
tree | b8bfc2d150de60d0f989843cb67bc0c6fd380366 /.local/bin/statusbar/sb-doppler | |
parent | 01b0a486d1190b88ee40458b4e16bcd6fa0c93bc (diff) |
update
Diffstat (limited to '.local/bin/statusbar/sb-doppler')
-rwxr-xr-x | .local/bin/statusbar/sb-doppler | 19 |
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 + |