Merge pull request #124 from avonmoll/audio-tweaks
Changed pamixer to pulsemixer
This commit is contained in:
commit
91622af84c
2 changed files with 9 additions and 9 deletions
|
@ -2,11 +2,11 @@
|
||||||
|
|
||||||
case $BLOCK_BUTTON in
|
case $BLOCK_BUTTON in
|
||||||
1) $TERMINAL -e pulsemixer & disown ;;
|
1) $TERMINAL -e pulsemixer & disown ;;
|
||||||
3) pamixer -t ;;
|
3) pulsemixer --toggle-mute ;;
|
||||||
4) pamixer -i 5 ;;
|
4) pulsemixer --change-volume +5 ;;
|
||||||
5) pamixer -d 5 ;;
|
5) pulsemixer --change-volume -5 ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
printpastatus() { [[ $(pamixer --get-mute) = "true" ]] && echo -n 🔇 && exit
|
printpastatus() { [[ $(pulsemixer --get-mute) = 1 ]] && echo -n 🔇 " " && exit
|
||||||
echo 🔊 $(pamixer --get-volume)% ;}
|
echo 🔊 $(pulsemixer --get-volume | sed -e "s/\s[0-9][0-9]*//g")% ;}
|
||||||
printpastatus
|
printpastatus
|
||||||
|
|
|
@ -6,10 +6,10 @@ newvol="pkill -RTMIN+10 i3blocks"
|
||||||
# Uncomment if i3mpdupdate isn't running:
|
# Uncomment if i3mpdupdate isn't running:
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
"up") pamixer --allow-boost -i "$2" ; $newvol ;;
|
"up") pulsemixer --change-volume +"$2" ; $newvol ;;
|
||||||
"down") pamixer --allow-boost -d "$2" ; $newvol ;;
|
"down") pulsemixer --change-volume -"$2" ; $newvol ;;
|
||||||
"mute") pamixer --allow-boost -t ; $newvol ;;
|
"mute") pulsemixer --toggle-mute ; $newvol ;;
|
||||||
"truemute") pamixer --allow-boost -m ; $newvol ;;
|
"truemute") pulsemixer --mute ; $newvol ;;
|
||||||
"toggle") mpc toggle ;;
|
"toggle") mpc toggle ;;
|
||||||
"pause") mpc pause ; pauseallmpv ;;
|
"pause") mpc pause ; pauseallmpv ;;
|
||||||
"forward") mpc seek +"$2" ;;
|
"forward") mpc seek +"$2" ;;
|
||||||
|
|
Loading…
Reference in a new issue