1
0
Fork 0
mirror of https://github.com/Horhik/dotfiles.git synced 2024-11-01 06:27:18 +00:00
Dotfiles/home/scripts/.local/scripts/redshiftToggle
2021-02-05 16:57:21 +03:00

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