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