diff options
Diffstat (limited to 'config/hypr/scripts/AirplaneMode.sh')
| -rwxr-xr-x | config/hypr/scripts/AirplaneMode.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh new file mode 100755 index 00000000..823dce72 --- /dev/null +++ b/config/hypr/scripts/AirplaneMode.sh @@ -0,0 +1,9 @@ +#!/bin/bash +wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')" +if [ "$wifi" == "enabled" ]; then + rfkill block all & + notify-send -t 1000 'airplane mode: active' +else + rfkill unblock all & + notify-send -t 1000 'airplane mode: inactive' +fi |
