summaryrefslogtreecommitdiff
path: root/bin/.bin/light
diff options
context:
space:
mode:
authorShubham Saini <pryr@pryr.xyz>2020-12-06 11:52:10 +0000
committerShubham Saini <pryr@pryr.xyz>2020-12-06 11:52:10 +0000
commitca82b3dea5d4bf35dae6c560370510289e3ce079 (patch)
treedb26aefd26c2696b1c35f6f5bd051c00a4377b81 /bin/.bin/light
parenta7f43b0d5fe907bdbceca7c219c918757f8359ce (diff)
fix light
Diffstat (limited to 'bin/.bin/light')
-rwxr-xr-xbin/.bin/light4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/.bin/light b/bin/.bin/light
index bba7e82..d44b241 100755
--- a/bin/.bin/light
+++ b/bin/.bin/light
@@ -4,12 +4,12 @@
4case "$1" in 4case "$1" in
5 u*) 5 u*)
6 for f in /sys/class/backlight/*; do 6 for f in /sys/class/backlight/*; do
7 echo $(($(<$f/brightness)+5*$(<$f/max_brightness)/100)) > $f/brightness; 7 echo $(($(<$f/brightness)+2*$(<$f/max_brightness)/100)) > $f/brightness;
8 done 8 done
9 ;; 9 ;;
10 d*) 10 d*)
11 for f in /sys/class/backlight/*; do 11 for f in /sys/class/backlight/*; do
12 echo $(($(<$f/brightness)-5*$(<$f/max_brightness)/100)) > $f/brightness; 12 echo $(($(<$f/brightness)-2*$(<$f/max_brightness)/100)) > $f/brightness;
13 done 13 done
14 ;; 14 ;;
15 *) 15 *)