mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-29 03:21:31 +00:00
16 lines
209 B
Bash
Executable file
16 lines
209 B
Bash
Executable file
#!/bin/dash
|
|
|
|
file=$(cat /tmp/redshift-toggl)
|
|
text="off"
|
|
|
|
if [ "$file" = "$text" ]
|
|
then
|
|
killall redshift
|
|
redshift -O 3000
|
|
echo "on" > /tmp/redshift-toggl
|
|
else
|
|
redshift -x
|
|
echo "off" > /tmp/redshift-toggl
|
|
fi
|
|
|