New streamable backgrounds

This commit is contained in:
shockrah 2022-12-25 19:36:24 -08:00
parent 584e30ca71
commit 514705aac7

20
pape-opts/stream Normal file
View File

@ -0,0 +1,20 @@
#!/bin/sh
# Here we do the same thing as the newbga however this time we provide a
# link which mpv can stream from
link=`echo '' | dmenu -i -nb '#800080' -sb '#800080' -p 'URL: '`
if [ -z "$link" ]; then
echo No link given
exit 1
fi
pkill -9 xwinwrap
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"
# refer to newbga on what is going on here
xwinwrap -g 1920x1080+0 -ov -b -un -sh rectangle -fdt -ni -- \
$mpv "$link" &