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
|
2019-10-20 04:44:49 +00:00
|
|
|
kill -9 `pgrep xwinwrap | head -1`
|
2019-10-20 03:33:26 +00:00
|
|
|
|
|
|
|
# pick out the music video we want to play in the background
|
2022-04-04 05:22:29 +00:00
|
|
|
pape_name=`ls "${HOME}/Videos/Papes/" | dmenu -i -l 10 -p 'Pick a papes :^)'`
|
2019-10-20 03:33:26 +00:00
|
|
|
|
2022-04-04 05:22:29 +00:00
|
|
|
mpv="mpv -wid WID --no-config --keepaspect=no --loop \
|
2019-10-20 03:33:26 +00:00
|
|
|
--no-border --vd-lavc-fast --x11-bypass-compositor=no \
|
|
|
|
--gapless-audio=yes --vo=x11 --hwdec=auto \
|
|
|
|
--x11-name=mpvbg"
|
|
|
|
|
2022-04-04 05:22:29 +00:00
|
|
|
|
|
|
|
# The magic here happens with xwinwrap the flags given to mpv don't really matter
|
|
|
|
# unless you have an mpv config the flags below are pretty much the only flags you
|
|
|
|
# need to get this working
|
|
|
|
xwinwrap -g 1920x1080+0 -ov -b -un -sh rectangle -fdt -ni -- \
|
|
|
|
$mpv "$HOME/Videos/Papes/$pape_name" &
|
|
|
|
|
|
|
|
# welcome to the rice fields
|