This commit is contained in:
yosh 2023-01-20 14:20:47 -05:00
parent 02eb57b446
commit c7def9af27
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ done
errecho "Current brightness: $cb"
[ -z "$nb" ] && errecho "Brightness not changed" && exit 0
[ "$nb" -gt "$mb" ] && nb=255
[ "$nb" -gt "$mb" ] && nb=$mb
[ "$nb" -lt 0 ] && nb=0
printf '%s' "$nb" > "$BACKLIGHT_PATH/brightness" && errecho "New brightness: $nb" || errecho "Error setting brightness!"