aboutsummaryrefslogtreecommitdiff
path: root/home/.config/i3/lightup
diff options
context:
space:
mode:
authorHolden Rohrer <hr@hrhr.dev>2020-06-04 22:56:07 -0400
committerHolden Rohrer <hr@hrhr.dev>2020-06-04 22:56:07 -0400
commit94bd9f1c63e24f93088e3f8faef0f86f0c8e2f88 (patch)
treea7f78bf3bfa8d499553c1d3622dbb83da674f8ba /home/.config/i3/lightup
parent30c8790abd6e2c250053754985f9a0d668223bea (diff)
i3/lightup handles zero brightness
Diffstat (limited to 'home/.config/i3/lightup')
-rwxr-xr-xhome/.config/i3/lightup6
1 files changed, 6 insertions, 0 deletions
diff --git a/home/.config/i3/lightup b/home/.config/i3/lightup
new file mode 100755
index 0000000..7104923
--- /dev/null
+++ b/home/.config/i3/lightup
@@ -0,0 +1,6 @@
+#!/bin/sh
+if [ $(light) = 0.00 ]; then
+ light -S 0.07;
+else
+ light -S $(echo 1.122\*$(light) | bc);
+fi;