]> git.wh0rd.org - home.git/blob - .bin/redshift-check
fix hemisphere
[home.git] / .bin / redshift-check
1 #!/bin/sh
2 h=$(date +%H)
3 if [ ${h#0} -lt 10 -o ${h#0} -ge 21 ]; then
4 (pgrep -f /usr/bin/redshift >/dev/null 2>&1 || DISPLAY=:0 exec /usr/bin/redshift -l 42:-71) &
5 else
6 killall -q redshift
7 fi
8 :