This commit is contained in:
ange 2025-01-30 13:55:36 +00:00
parent ddbc24a33f
commit ddd00d7844
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
16 changed files with 121 additions and 91 deletions

View file

@ -12,7 +12,10 @@ case "${1:0:1}" in
*) CUR="$1" ;;
esac
[ "$CUR" -lt 0 ] && CUR=0
[ "$CUR" -gt "$MAX" ] && CUR="$MAX"
if [ "$CUR" -lt 0 ]; then
CUR=0
elif [ "$CUR" -gt "$MAX" ]; then
CUR="$MAX"
fi
echo "$CUR" > "$DIR/brightness"