voidrice/.scripts/lmc
2018-10-06 22:42:21 -04:00

20 lines
534 B
Bash
Executable file

#!/bin/bash
# A general audio interface for LARBS.
newvol="pkill -RTMIN+10 i3blocks"
# Uncomment if i3mpdupdate isn't running:
case "$1" in
"up") pulsemixer --change-volume +"$2" ; $newvol ;;
"down") pulsemixer --change-volume -"$2" ; $newvol ;;
"mute") pulsemixer --toggle-mute ; $newvol ;;
"truemute") pulsemixer --mute ; $newvol ;;
"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% ;;
esac