This commit is contained in:
2022-02-14 19:40:33 +01:00
parent 34cc61a4c2
commit 04d4970308
8 changed files with 667 additions and 666 deletions

View File

@@ -1,17 +1,17 @@
#!/bin/bash
function send_notification() {
brightness=$(printf "%.0f\n" $(brillo -G))
dunstify -a "changebrightness" -u low -r 9991 -h int:value:"$brightness" -i "brightness-$1" "Brightness: $brightness%" -t 2000
}
brightness=$(printf "%.0f\n" $(brillo -G))
dunstify -a "changebrightness" -u low -r 9991 -h int:value:"$brightness" -i "brightness-$1" "Brightness: $brightness%" -t 2000
}
case $1 in
up)
brillo -A 5 -q
send_notification $1
;;
down)
send_notification $1
;;
down)
brillo -U 5 -q
send_notification $1
;;
esac
send_notification $1
;;
esac