Add dunst config

This commit is contained in:
olari
2018-08-01 02:01:42 +03:00
parent 0be345294c
commit a3d0f85ee5
4 changed files with 56 additions and 9 deletions

View File

@@ -1,19 +1,27 @@
#!/bin/bash
current_volume=$(pamixer --get-volume)
case $1 in
"raise")
pactl set-sink-volume 0 +5%
notify-send $(pamixer --get-volume)
(( current_volume += 5 ))
[[ current_volume -gt 100 ]] && current_volume=100
pamixer --set-volume $current_volume
notify-send -t 250 "VOL: $current_volume"
pkill -RTMIN+1 i3blocks
;;
"lower")
pactl set-sink-volume 0 -5%
notify-send $(pamixer --get-volume)
(( current_volume -= 5 ))
[[ current_volume -lt 0 ]] && current_volume=0
pamixer --set-volume $current_volume
notify-send -t 250 "VOL: $current_volume"
pkill -RTMIN+1 i3blocks
;;
"toggle_mute")
pactl set-sink-mute 0 toggle
notify-send $(pamixer --get-mute)
pamixer --toggle-mute
notify-send -t 300 "MUTE: $(pamixer --get-mute)"
;;
esac