blob: 6e2eecfff0a2022adab0b63c7446e6cf5be9ffd1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/bash
dunst_notif="$HOME/.config/dunst/images/bell.png"
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
rfkill block all &
notify-send -e -u normal -i "$dunst_notif" -t 1000 'airplane mode: active'
else
rfkill unblock all &
notify-send -e -u normal -i "$dunst_notif" -t 1000 'airplane mode: inactive'
fi
|