diff options
author | P. J. McDermott <pj@pehjota.net> | 2018-06-18 01:56:55 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2018-06-18 01:56:55 (EDT) |
commit | 6cd92aecc801bc96d87b70d82bbacbb43bbed4cf (patch) | |
tree | 482c41b35d81fc9d98c9980a95d8f1cae953f562 | |
parent | e5feddbe71554ef4f59543fc5be1c76cc931ecd3 (diff) | |
download | fluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.zip fluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.tar.gz fluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.tar.bz2 |
bin/bright: Also adjust color preset
-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 |