dotfiles/dot_local/bin/executable_toggle-wifi

10 lines
173 B
Text
Raw Permalink Normal View History

2022-12-22 04:07:12 -05:00
#!/bin/sh
## A simple script to turn wifi on/off
if [ $(nmcli radio wifi | awk '/led/ {print}') = 'enabled' ] ; then
nmcli radio wifi off
else
nmcli radio wifi on
fi