mirror of
https://github.com/Horhik/dotfiles.git
synced 2024-11-01 06:27:18 +00:00
16 lines
209 B
Plaintext
16 lines
209 B
Plaintext
|
#!/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
|
||
|
|