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

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