From 8c24921832b2b6dc95bbb41dbfe2de7ff4fcf877 Mon Sep 17 00:00:00 2001 From: awy Date: Tue, 27 Aug 2024 03:44:14 +0300 Subject: update --- .local/bin/statusbar/sb-doppler | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 .local/bin/statusbar/sb-doppler (limited to '.local/bin/statusbar/sb-doppler') 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 + -- cgit v1.2.3