feat: huge update

This commit is contained in:
ange 2024-10-01 13:47:31 +07:00
parent 9c621760cf
commit 757b759b4a
Signed by: ange
GPG key ID: 9E0C4157BB7BEB1D
47 changed files with 221 additions and 286 deletions

View file

@ -17,8 +17,6 @@ function set_light() {
DIRS=(/sys/class/backlight/*)
CUR="$(get_current "${DIRS[0]}")"
echo "$CUR"
echo "\$(($CUR + $1 - $CUR % $1 + $CUR % $1 / $1 * $1))"
case "${1:0:1}" in
'') echo "$CUR"; exit ;;
'+'|'-') CUR="$(($CUR + $1 - $CUR % $1 + $CUR % $1 * 10 / $1 / 5 * $1))" ;;
@ -32,6 +30,3 @@ echo "$CUR"
for d in "${DIRS[@]}"; do
set_light "$d"
done
notify-send -t 1000 -u low -i display-brightness-symbolic \
-h string:synchronous:light -h int:value:"$CUR" "$CUR%"