voidrice/.scripts/lmc

22 lines
640 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:
#newmpd="pkill -RTMIN+11 i3blocks"
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 ; $newmpd ;;
2018-07-30 00:52:57 +00:00
"pause") mpc pause ; $newmpd ; pauseallmpv ;;
2018-05-07 16:07:47 +00:00
"forward") mpc seek +"$2" ; $newmpd ;;
"back") mpc seek -"$2" ; $newmpd ;;
"next") mpc next ; $newmpd ;;
"prev") mpc prev ; $newmpd ;;
"replay") mpc seek 0% ; $newmpd ;;
esac