mpv-cam-view/cams/launcher.sh

8 lines
203 B
Bash
Raw Normal View History

2020-10-20 22:30:54 +00:00
#!/bin/sh
if [ -n "$2" ] ; then
_max_quality="$2"
else
_max_quality="480"
fi
bspc rule --add mpv --one-shot state=tiled && mpv --ytdl-raw-options=format='best[height<='"$_max_quality"']' "$1" & disown