2018-05-07 16:07:47 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2018-07-30 00:52:57 +00:00
|
|
|
# A general audio interface for LARBS.
|
|
|
|
|
2018-05-07 16:07:47 +00:00
|
|
|
newvol="pkill -RTMIN+10 i3blocks"
|
2018-07-30 00:52:57 +00:00
|
|
|
# Uncomment if i3mpdupdate isn't running:
|
2018-05-07 16:07:47 +00:00
|
|
|
|
|
|
|
case "$1" in
|
2018-10-07 02:42:21 +00:00
|
|
|
"up") pulsemixer --change-volume +"$2" ; $newvol ;;
|
|
|
|
"down") pulsemixer --change-volume -"$2" ; $newvol ;;
|
|
|
|
"mute") pulsemixer --toggle-mute ; $newvol ;;
|
|
|
|
"truemute") pulsemixer --mute ; $newvol ;;
|
2018-08-03 20:54:05 +00:00
|
|
|
"toggle") mpc toggle ;;
|
|
|
|
"pause") mpc pause ; pauseallmpv ;;
|
|
|
|
"forward") mpc seek +"$2" ;;
|
|
|
|
"back") mpc seek -"$2" ;;
|
|
|
|
"next") mpc next ;;
|
|
|
|
"prev") mpc prev ;;
|
|
|
|
"replay") mpc seek 0% ;;
|
2018-05-07 16:07:47 +00:00
|
|
|
esac
|