aboutsummaryrefslogtreecommitdiffstats
path: root/config/hypr/scripts/AirplaneMode.sh
diff options
context:
space:
mode:
authorJaKooLit <jimmielovejay@gmail.com>2023-12-27 13:23:34 +0900
committerJaKooLit <jimmielovejay@gmail.com>2023-12-27 13:23:34 +0900
commit1e2a3b25aa760885ee326433ef0ab176e39c73bc (patch)
treef9a14d7eb0dac4e0458083eff4708c9aaebfb4f3 /config/hypr/scripts/AirplaneMode.sh
parent3eb715f78172f2e854fc744841ee74203af28073 (diff)
updated for swaync
Diffstat (limited to 'config/hypr/scripts/AirplaneMode.sh')
-rwxr-xr-xconfig/hypr/scripts/AirplaneMode.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/hypr/scripts/AirplaneMode.sh b/config/hypr/scripts/AirplaneMode.sh
index 6e2eecff..e0337dc7 100755
--- a/config/hypr/scripts/AirplaneMode.sh
+++ b/config/hypr/scripts/AirplaneMode.sh
@@ -1,12 +1,12 @@
#!/bin/bash
-dunst_notif="$HOME/.config/dunst/images/bell.png"
+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 -e -u normal -i "$dunst_notif" -t 1000 'airplane mode: active'
+ notify-send -u low -i "$notif" 'airplane mode: active'
else
rfkill unblock all &
- notify-send -e -u normal -i "$dunst_notif" -t 1000 'airplane mode: inactive'
+ 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