mpv-cam-view/launch

14 lines
338 B
Plaintext
Raw Normal View History

2020-10-27 10:49:20 +00:00
#!/bin/sh
_cam_dir='/home/ray/mpv-cam-views/'
_qualities="360\n480\n720\n1080"
_file="$(ls cams | dmenu)"
_url="$(cat cams/$_file)"
_quality="$(echo -e $_qualities | dmenu)"
echo "Playing '$_file' at $_quality ($_url)"
bspc rule --add mpv --one-shot state=tiled && mpv --ytdl-raw-options=format='best[height<='"$_quality"']' "$_url"