summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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