New streamable backgrounds
This commit is contained in:
parent
584e30ca71
commit
514705aac7
20
pape-opts/stream
Normal file
20
pape-opts/stream
Normal 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" &
|
Loading…
Reference in New Issue
Block a user