#!/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) & else killall -q redshift fi :