mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-01 06:27:18 +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
|
|
|