1
0
Fork 0
dotfiles/files/.config/polybar/wifi_toggle.bash

9 lines
118 B
Bash
Raw Normal View History

2018-03-10 04:04:29 +00:00
#!/bin/bash
if rfkill list wifi | grep "yes" >/dev/null; then
rfkill unblock wifi
else
rfkill block wifi
fi