diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-06 23:37:26 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-01-06 23:37:26 +0900 |
| commit | 63d0f3244b429e360297e8cb683689d16dacd77e (patch) | |
| tree | cd151601bbebd9e7b3e43847074e66668982962e /ar/.local/bin/statusbar | |
| parent | 64338af8180def3f09c0880b91cf59998486b397 (diff) | |
modified statusbar/sb-internet, modified bin/ylog
Diffstat (limited to 'ar/.local/bin/statusbar')
| -rwxr-xr-x | ar/.local/bin/statusbar/sb-internet | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ar/.local/bin/statusbar/sb-internet b/ar/.local/bin/statusbar/sb-internet index df43676..a03b9d6 100755 --- a/ar/.local/bin/statusbar/sb-internet +++ b/ar/.local/bin/statusbar/sb-internet @@ -9,6 +9,16 @@ case $BLOCK_BUTTON in "$TERMINAL" -e nmtui pkill -RTMIN+7 dwmblocks ;; +2) + if [ "$(nmcli radio wifi)" = "enabled" ]; then + nmcli radio wifi off + notify-send "Wi-Fi" "Wi-Fi Turned off" + else + nmcli radio wifi on + notify-send "Wi-Fi" "Wi-Fi Turned on" + fi + pkill -RTMIN+7 dwmblocks + ;; 3) notify-send "🌐 Internet module" "\- Left click to connect ❌: wifi disabled 📡: no wifi connection |
