bash-scripts/wifitoggle.sh
2024-01-03 14:22:09 -07:00

11 lines
248 B
Bash

#!/bin/sh
if [ $(nmcli radio wifi | awk '/led/ {print}') = 'enabled' ] ; then
nmcli radio wifi off
echo 'wifi off'
else
nmcli radio wifi on
# notify-send -i network-wireless-none "Wireless" "Wireless enabled"
echo 'wifi on'
fi