soundcloud support for ytdl;newbga actually does second monitor check properly; new music video background script

This commit is contained in:
shockrah
2019-10-19 20:33:26 -07:00
parent 0326d64c96
commit 0776285cc5
3 changed files with 28 additions and 6 deletions

17
musicbg Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/sh
pkill -9 xwinwrap
cacheFile="${HOME}/.cache/mpvbg.pid"
# 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"
xwinwrap -g 1920x1080 -ni -fdt -sh rectangle -un -b -nf -ov -- $mpv "$base/$pape" & #> /dev/null 2>&1 &
echo $! > ${HOME}/.cache/mpvmusic.pid