aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/statusbar/sb-doppler
blob: f9bb8fef9008ea93b6af085bc4603c93434a6719 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/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 module" "\- Left click for local Doppler RADAR.
- Middle click to update RADAR location."
}
if [ ! -n "$1" ]; then
  echo 🌅
else
  if [ "$1" -eq 1 ]; then
    showdoppler
  elif [ "$1" -eq 3 ]; then
    sendnotif
  fi
fi