From: Mike Frysinger Date: Fri, 7 Feb 2014 07:12:19 +0000 (-0500) Subject: fix up redshift checker X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=e5affb5220d89e603dcc033a89f31197aa1d9232;p=home.git fix up redshift checker --- diff --git a/.bin/redshift-check b/.bin/redshift-check index f8f2ca8..eeaf8a7 100755 --- a/.bin/redshift-check +++ b/.bin/redshift-check @@ -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