+ Adding ipc socket control to musicbg again

This commit is contained in:
shockrah 2022-04-14 21:00:18 -07:00
parent 30ee715264
commit 3cd1e39ecb
2 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ pape_name=`ls "${HOME}/Videos/Papes/" | dmenu -i -l 10 -p 'Pick a papes :^)'`
mpv="mpv -wid WID --no-config --keepaspect=no --loop \
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
--gapless-audio=yes --vo=x11 --hwdec=auto \
--gapless-audio=yes --vo=x11 --hwdec=auto --input-ipc-server=/tmp/mpv-bg-socket \
--x11-name=mpvbg"

View File

@ -3,7 +3,7 @@
# mega autismo
# controlling background mpv with sockest yo
opt=`echo "Pause\nKill" | dmenu -i -l 10 -p 'Background control'`
opt=`echo "(Un)Pause\nKill" | dmenu -i -l 10 -p 'Background control'`
case $opt in
Pause) echo 'cycle pause' | socat - /tmp/mpv-bg-socket;;