1 2 3 4 5 6 7 8 9 10 11 12 13
#!/bin/sh case "$1" in on) redshift -PO 2500K ;; off) redshift -x ;; *) echo "Argument must either be 'on' or 'off'" >&2 exit 1 esac