diff options
-rwxr-xr-x | bin/bright | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -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 |