dotfiles/dot_local/bin/executable_toggle-wifi

9 lines
144 B
Text
Raw Normal View History

2022-12-22 04:07:12 -05:00
#!/bin/sh
2023-06-16 00:44:03 -04:00
if [ $(connmanctl state | awk '/State/ {print $NF}') == 'online' ]; then
connmanctl disable wifi
2022-12-22 04:07:12 -05:00
else
2023-06-16 00:44:03 -04:00
connmanctl enable wifi
2022-12-22 04:07:12 -05:00
fi