1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-25 17:41:32 +00:00
Dotfiles/home/scripts/.local/scripts/wifiToggle
2021-03-08 11:41:46 +03:00

15 lines
190 B
Bash
Executable file

#!/bin/dash
path=/tmp/redshift-toggl
file=$(cat $path)
text="off"
if [ "$file" = "$text" ]
then
connmanctl enable wifi
echo "on" > $path
else
connmanctl disable wifi
echo "off" > $path
fi