#!/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