]> git.wh0rd.org - home.git/blob - .bin/redshift-check
add redshift-check helper
[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 redshift >/dev/null 2>&1 || DISPLAY=:0 redshift) &
5 else
6 killall -q redshift
7 fi
8 :