This commit is contained in:
josh
2018-08-26 12:57:57 +03:00
parent 283a41e39a
commit 5c1d7a61c0
70 changed files with 322 additions and 1335 deletions

View File

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