aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/AirplaneMode.sh
blob: 35fe5db5c4952390f72cdff4b3851ef0bca7e611 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/bash
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
    rfkill block all &
    dunstify -t 1000 'airplane mode: active'
else
    rfkill unblock all &
    dunstify -t 1000 'airplane mode: inactive'
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage