]> git.wh0rd.org Git - home.git/commitdiff
fix up redshift checker
authorMike Frysinger <vapier@gentoo.org>
Fri, 7 Feb 2014 07:12:19 +0000 (02:12 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 7 Feb 2014 07:12:19 +0000 (02:12 -0500)
.bin/redshift-check

index f8f2ca8796530b0ffa566aca839ad90b0def988c..eeaf8a7530b128006137067470e28ede8ec954b8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 h=$(date +%H)
 if [ ${h#0} -lt 10 -o ${h#0} -ge 21 ]; then
-       (pgrep redshift >/dev/null 2>&1 || DISPLAY=:0 redshift) &
+       (pgrep -f /usr/bin/redshift >/dev/null 2>&1 || DISPLAY=:0 exec /usr/bin/redshift -l 42:71) &
 else
        killall -q redshift
 fi