21 lines
566 B
Bash
21 lines
566 B
Bash
#!/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" &
|