From 6cd92aecc801bc96d87b70d82bbacbb43bbed4cf Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Mon, 18 Jun 2018 01:56:55 -0400 Subject: bin/bright: Also adjust color preset --- diff --git a/bin/bright b/bin/bright index bda2643..ef63989 100755 --- a/bin/bright +++ b/bin/bright @@ -23,6 +23,16 @@ set_b() return 0 } +set_c() +{ + local c=${1} + shift 1 + + ddcutil setvcp 14 ${c} + + return 0 +} + inc_b() { local d=${1} @@ -46,9 +56,9 @@ tog_b() b=$(get_b) case ${b} in [0-9] | [1-4][0-9]) - set_b 100;; + set_b 100; set_c 05;; [5-9][0-9] | 100) - set_b 0;; + set_b 0; set_c 06;; esac return 0 -- cgit v0.9.1