summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorP. 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)
commit6cd92aecc801bc96d87b70d82bbacbb43bbed4cf (patch)
tree482c41b35d81fc9d98c9980a95d8f1cae953f562 /bin
parente5feddbe71554ef4f59543fc5be1c76cc931ecd3 (diff)
downloadfluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.zip
fluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.tar.gz
fluxbox-6cd92aecc801bc96d87b70d82bbacbb43bbed4cf.tar.bz2
bin/bright: Also adjust color preset
Diffstat (limited to 'bin')
-rwxr-xr-xbin/bright14
1 files changed, 12 insertions, 2 deletions
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