aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/AirplaneMode.sh
diff options
context:
space:
mode:
Diffstat (limited to 'config/hypr/scripts/AirplaneMode.sh')
-rwxr-xr-xconfig/hypr/scripts/AirplaneMode.sh7
1 files changed, 5 insertions, 2 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh
index 35fe5db5..dc9a5956 100755
--- a/config/hypr/scripts/AirplaneMode.sh
+++ b/config/hypr/scripts/AirplaneMode.sh
@@ -1,9 +1,12 @@
#!/bin/bash
+
+dunstify -u low -i "$dunst_notif"
+
wifi="$(nmcli r wifi | awk 'FNR = 2 {print $1}')"
if [ "$wifi" == "enabled" ]; then
rfkill block all &
- dunstify -t 1000 'airplane mode: active'
+ dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: active'
else
rfkill unblock all &
- dunstify -t 1000 'airplane mode: inactive'
+ dunstify -u normal -i "$dunst_notif" -t 1000 'airplane mode: inactive'
fi
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage