config files

This commit is contained in:
2024-08-27 22:07:40 +07:00
commit e39997c54b
30 changed files with 2829 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/bash
function send_notification() {
volume=$(pamixier --get-volume)
dunstify -a "changevolume" -u low -r 9980 -h int:value:"$volume" -i "volume-$1" "Volume: ${volume}%" -t 2000
}
case $1 in
up)
#Set the volume on (if it was muted)
pamixer -u
pamixer -i 5 --allow-boost
send_notification $1
;;
down)
pamixer -u
pamixer -d 5 --allow-boost
send_notification $1
;;
mute)
pamixer -t
if $(pamixer --get-mute); then
dunstify -i volume-mute -a "changevolume" -t 2000 -r 9980 -u low "Muted"
else
send_notification up
fi
;;
esac