2019-10-20 03:33:26 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2019-10-20 04:37:02 +00:00
|
|
|
# for some reason this still kills all xwinwrap processes
|
|
|
|
proc=`pgrep xwinwrap | head -1`
|
|
|
|
kill -9 $proc
|
2019-10-20 03:33:26 +00:00
|
|
|
|
|
|
|
# pick out the music video we want to play in the background
|
|
|
|
base="$HOME/Videos/Music/"
|
|
|
|
pape=`ls "${HOME}/Videos/Music/" | shuf | head -n 1`
|
|
|
|
|
|
|
|
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 \
|
|
|
|
--x11-name=mpvbg"
|
|
|
|
|
2019-10-20 04:11:25 +00:00
|
|
|
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape" & > /dev/null 2>&1 &
|