aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/AirplaneMode.sh
blob: 823dce726653cbd689a2d9bb49ca548687ecb643 (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 &
    notify-send -t 1000 'airplane mode: active'
else
    rfkill unblock all &
    notify-send -t 1000 'airplane mode: inactive'
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage