]> git.wh0rd.org Git - home.git/commitdiff
redshift-check: silence "using method" message
authorMike Frysinger <vapier@gentoo.org>
Mon, 12 Jan 2015 23:10:32 +0000 (18:10 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 12 Jan 2015 23:10:32 +0000 (18:10 -0500)
.bin/redshift-check

index 4cf84a39a874c5233e12481f13c698f6ef76d0da..c41e4360ad9e7e2ddec8376f2e7794e6768375c4 100755 (executable)
@@ -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 "$@"