From 7d9d78aa0b4e694dc896ced0a910c271effc1dac Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Mon, 12 Jan 2015 18:10:32 -0500 Subject: [PATCH] redshift-check: silence "using method" message --- .bin/redshift-check | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) 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 "$@" -- 2.39.5