aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-doppler
blob: 4567e30a3a33bd73da5024f56133436534e86df2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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