aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/AirplaneMode.sh
blob: e0337dc729422dd845135b090e64eb2efc99a8d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

notif="$HOME/.config/swaync/images/bell.png"

wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
    rfkill block all &
    notify-send -u low -i "$notif" 'airplane mode: active'
else
    rfkill unblock all &
    notify-send -u low -i "$notif" 'airplane mode: inactive'
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage