The same thing we do every night, Pinky - try to take over the world!

This commit is contained in:
coolnsx
2022-11-25 13:29:54 +05:30
parent 72e959ddbe
commit 251f5340dd
16 changed files with 94 additions and 124 deletions

View File

@@ -1,9 +1,7 @@
#!/bin/bash
if rfkill list wifi | grep -q 'yes$' ; then
doas rfkill unblock wifi
notify-send "wifi on" -r 1
if nmcli radio wifi | grep -q 'enabled' ; then
nmcli radio wifi off
else
doas rfkill block wifi
notify-send "wifi off" -r 1
nmcli radio wifi on
fi
notify-send "wifi $(nmcli radio wifi)" -r 1