diff options
| author | Luke Smith <luke@lukesmith.xyz> | 2018-07-29 20:52:57 -0400 |
|---|---|---|
| committer | Luke Smith <luke@lukesmith.xyz> | 2018-07-29 20:52:57 -0400 |
| commit | 7805bedbce0cb018404d581a8b91961a26d67815 (patch) | |
| tree | 83d7c1dad657fd3bbfddc421f2679c96b18faf8e /.scripts | |
| parent | 4757ea4345ae040d5fae7fb1bb668c1c9f85fa98 (diff) | |
| download | eibhear-7805bedbce0cb018404d581a8b91961a26d67815.tar.gz eibhear-7805bedbce0cb018404d581a8b91961a26d67815.tar.zst eibhear-7805bedbce0cb018404d581a8b91961a26d67815.zip | |
lmc can pause mpv; mod+P is true pause
Diffstat (limited to '.scripts')
| -rwxr-xr-x | .scripts/lmc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/.scripts/lmc b/.scripts/lmc index 83a08db..37bd958 100755 --- a/.scripts/lmc +++ b/.scripts/lmc @@ -1,7 +1,10 @@ #!/bin/bash +# A general audio interface for LARBS. + newvol="pkill -RTMIN+10 i3blocks" -newmpd="pkill -RTMIN+11 i3blocks" +# Uncomment if i3mpdupdate isn't running: +#newmpd="pkill -RTMIN+11 i3blocks" case "$1" in "up") pamixer --allow-boost -i "$2" ; $newvol ;; @@ -9,11 +12,10 @@ case "$1" in "mute") pamixer --allow-boost -t ; $newvol ;; "truemute") pamixer --allow-boost -m ; $newvol ;; "toggle") mpc toggle ; $newmpd ;; - "pause") mpc pause ; $newmpd ;; + "pause") mpc pause ; $newmpd ; pauseallmpv ;; "forward") mpc seek +"$2" ; $newmpd ;; "back") mpc seek -"$2" ; $newmpd ;; "next") mpc next ; $newmpd ;; "prev") mpc prev ; $newmpd ;; "replay") mpc seek 0% ; $newmpd ;; esac -exit |
