This commit is contained in:
sevi-kun
2020-05-26 08:31:18 +02:00
parent eb128e6767
commit 09a818598a
10 changed files with 80 additions and 0 deletions

11
toggle_wifi.sh Executable file
View File

@ -0,0 +1,11 @@
#!/bin/bash
wifi_block=$(rfkill list wifi | grep Soft | awk '{print $3}')
if [ "$wifi_block" == "yes" ]
then
rfkill unblock wifi
notify-send "Wifi is now enabled"
else
rfkill block wifi
notify-send "Wifi is now disabled"
fi
sleep 0.2