Updated scripts

This commit is contained in:
z3rOR0ne 2022-07-07 13:05:06 -07:00
parent eef4fdf99c
commit d0aead5a9c
14 changed files with 386 additions and 99 deletions

17
scripts/changebrightness Normal file
View file

@ -0,0 +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
}
case $1 in
up)
brillo -A 5 -q
send_notification $1
;;
down)
brillo -U 5 -q
send_notification $1
;;
esac