From: Mike Frysinger Date: Mon, 12 Jan 2015 23:10:32 +0000 (-0500) Subject: redshift-check: silence "using method" message X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7d9d78aa0b4e694dc896ced0a910c271effc1dac;p=home.git redshift-check: silence "using method" message --- diff --git a/.bin/redshift-check b/.bin/redshift-check index 4cf84a3..c41e436 100755 --- a/.bin/redshift-check +++ b/.bin/redshift-check @@ -16,13 +16,17 @@ usage() { fi } +rs() { + exec redshift -m randr "$@" +} + main() { cd export DISPLAY=:0 while [[ $# -gt 0 ]] ; do case $1 in - --reset) exec redshift -x ;; + --reset) rs -x ;; -h|--help) usage ;; *) usage "Unknown option: $1" ;; esac @@ -50,9 +54,9 @@ main() { t=${temps[${h}]} if [[ -z ${t} ]]; then - exec redshift -x + rs -x else - exec redshift -O ${t}k + rs -O ${t}k fi } main "$@"