diff options
Diffstat (limited to 'bin/brightness.sh')
-rwxr-xr-x | bin/brightness.sh | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/bin/brightness.sh b/bin/brightness.sh index 5a1939e..7a2107d 100755 --- a/bin/brightness.sh +++ b/bin/brightness.sh @@ -1,6 +1,5 @@ #!/bin/bash readonly XBACKLIGHT=xbacklight -readonly levels=(0 1 2 3 4 6 10 15 20 25 30 40 50 60 70 80 90 100) current_level=$($XBACKLIGHT) current_level=$((${current_level%.*})) @@ -9,10 +8,8 @@ if (( "$current_level" < 8 )); then diff=1 elif (( "$current_level" < 24 )); then diff=6 -elif (( "$current_level" < 50 )); then - diff=12 else - diff=24 + diff=10 fi if [[ $1 == "+" ]]; then |