voidrice/.scripts/lmc

21 lines
535 B
Text
Raw Normal View History

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
"up") pamixer --allow-boost -i "$2" ; $newvol ;;
"down") pamixer --allow-boost -d "$2" ; $newvol ;;
"mute") pamixer --allow-boost -t ; $newvol ;;
"truemute") pamixer --allow-boost -m ; $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% ;;
2018-05-07 16:07:47 +00:00
esac