feat: remove st

This commit is contained in:
ange 2025-06-29 09:30:03 +00:00
parent 40b8304dce
commit 17b03778ac
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
31 changed files with 54 additions and 7057 deletions

View file

@ -6,10 +6,10 @@ DIR="$(find /sys/class/backlight/* -print -quit)"
CUR="$(cat "$DIR/brightness")"
MAX=$(cat "$DIR/max_brightness")
case "${1:0:1}" in
'') echo "$CUR"; exit ;;
'+'|'-') CUR=$(((CUR / STEPS + $1) * STEPS)) ;;
*) CUR="$1" ;;
case "$1" in
+*|-*) CUR=$(((++CUR / STEPS + $1) * STEPS)) ;;
'') echo "$CUR"; exit ;;
*) CUR="$1" ;;
esac
if [ "$CUR" -lt 0 ]; then