+ Adding ipc socket control to musicbg again
This commit is contained in:
parent
30ee715264
commit
3cd1e39ecb
2
musicbg
2
musicbg
@ -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 \
|
mpv="mpv -wid WID --no-config --keepaspect=no --loop \
|
||||||
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
|
--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"
|
--x11-name=mpvbg"
|
||||||
|
|
||||||
|
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
# mega autismo
|
# mega autismo
|
||||||
# controlling background mpv with sockest yo
|
# 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
|
case $opt in
|
||||||
Pause) echo 'cycle pause' | socat - /tmp/mpv-bg-socket;;
|
Pause) echo 'cycle pause' | socat - /tmp/mpv-bg-socket;;
|
||||||
|
Loading…
Reference in New Issue
Block a user