mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-25 17:41:32 +00:00
15 lines
190 B
Bash
Executable file
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
|
|
|