note about proc sigkills which is going to be anoying later on
This commit is contained in:
parent
f3d0763fc2
commit
765d7c777d
7
musicbg
7
musicbg
@ -1,7 +1,8 @@
|
||||
#!/bin/sh
|
||||
pkill -9 xwinwrap
|
||||
|
||||
cacheFile="${HOME}/.cache/mpvbg.pid"
|
||||
# for some reason this still kills all xwinwrap processes
|
||||
proc=`pgrep xwinwrap | head -1`
|
||||
kill -9 $proc
|
||||
|
||||
# pick out the music video we want to play in the background
|
||||
base="$HOME/Videos/Music/"
|
||||
@ -13,5 +14,3 @@ mpv="mpv --wid WID --no-config --keepaspect=no --loop \
|
||||
--x11-name=mpvbg"
|
||||
|
||||
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape" & > /dev/null 2>&1 &
|
||||
echo $! > ${HOME}/.cache/mpvmusic.pid
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user