dotfiles/bin/toggle-wifi
2021-12-17 23:02:45 -05:00

9 lines
173 B
Bash
Executable file

#!/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