aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2021-10-20 06:03:14 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2021-10-20 06:03:14 +0100
commitc78fa94260462a887be0d9a64fdbe7ba4e781dbb (patch)
tree4654001cbb3c67713b6b4c8d5e5dba2fce150182 /Scripts/.local
parenta4967156250c0bd45399fcec2fa56100a408ae32 (diff)
downloaddotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.tar.gz
dotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.tar.bz2
dotfiles-c78fa94260462a887be0d9a64fdbe7ba4e781dbb.zip
(Scripts)+script to make using mpv a bit less painful
Currently queries via YouTube-dl (ytdl) for quality options then asks user for preferred quality, setting that in mpv.
Diffstat (limited to 'Scripts/.local')
-rwxr-xr-xScripts/.local/scripts/mpv_plus5
1 files changed, 5 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/mpv_plus b/Scripts/.local/scripts/mpv_plus
new file mode 100755
index 0000000..febc53b
--- /dev/null
+++ b/Scripts/.local/scripts/mpv_plus
@@ -0,0 +1,5 @@
+#!/bin/env sh
+
+url=$1
+option=$(youtube-dl -F $url | sed -n '/^format$/,$p' | awk '{print $1 " " $2 " " $3 " " $4}' | dmenu -p "Choose quality: ")
+mpv $1 --ytdl-format=$(echo $option | awk '{print $1}')