diff options
| author | Ja.KooLit <jimmielovejay@gmail.com> | 2023-12-17 16:15:04 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-12-17 16:15:04 +0900 |
| commit | f6cac04f24927419aba506e7bb51dd085f8aa8c2 (patch) | |
| tree | 650e29a07cb52ff7973361f92968ece49ea19066 /config/hypr/scripts/AirplaneMode.sh | |
| parent | 948d1db075ec815983628ebf467d0d49bbe1b5e4 (diff) | |
| parent | 338f213dd13ba560a08440d66302c96eea59d6de (diff) | |
Merge pull request #78 from JaKooLit/Development
some small tweaks
Diffstat (limited to 'config/hypr/scripts/AirplaneMode.sh')
| -rwxr-xr-x | config/hypr/scripts/AirplaneMode.sh | 7 |
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 |
