From 66ef63e6da21ccf2a0ad1ff0d421bf80afb6ab39 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 27 Jul 2021 09:01:34 +0200 Subject: [PATCH 1/2] [QB] Fix mpv for some peertube --- .config/qutebrowser/config.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 7f068cc..4f56d19 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -18,11 +18,11 @@ config.bind('w', 'set-cmd-text -s :open -t', mode='normal') config.bind('W', 'set-cmd-text -s :open -t {url:pretty}', mode='normal') config.bind('Fy', 'hint links yank-primary', mode='normal') config.bind('yy', 'yank -s', mode='normal') -config.bind('Ev', 'spawn --detach mpv --ytdl-format=worstvideo[height>=480]+bestaudio {url}', mode='normal') -config.bind('EV', 'spawn --detach mpv --ytdl-format=bestvideo[height<=1080]+bestaudio {url}', mode='normal') +config.bind('Ev', 'spawn --detach mpv --ytdl-format=worstvideo[height>=480]+bestaudio/480p/worst {url}', mode='normal') +config.bind('EV', 'spawn --detach mpv --ytdl-format=bestvideo[height<=1080]+bestaudio/1080p/best {url}', mode='normal') config.bind('Ea', 'spawn --detach mpv --no-video --force-window=yes {url}', mode='normal') -config.bind('Fv', 'hint links spawn --detach mpv --ytdl-format=worstvideo[height>=480]+bestaudio {hint-url}', mode='normal') -config.bind('FV', 'hint links spawn --detach mpv --ytdl-format=bestvideo[height<=1080]+bestaudio {hint-url}', mode='normal') +config.bind('Fv', 'hint links spawn --detach mpv --ytdl-format=worstvideo[height>=480]+bestaudio/480p/worst {hint-url}', mode='normal') +config.bind('FV', 'hint links spawn --detach mpv --ytdl-format=bestvideo[height<=1080]+bestaudio/1080p/best {hint-url}', mode='normal') config.bind('Fa', 'hint links spawn --detach mpv --no-video --force-window=yes {hint-url}', mode='normal') config.unbind('F') config.bind('', 'back', mode='normal') From c71ea91aa58fdfa92031cb2ab4fca94a3e1081ba Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Tue, 27 Jul 2021 09:02:11 +0200 Subject: [PATCH 2/2] [BASH] Fix mpv for some peertube + add mpv 1080p --- .bash_aliases | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.bash_aliases b/.bash_aliases index 722dab5..90e2899 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -19,4 +19,5 @@ alias myconfigfiles='git --git-dir=$HOME/.myconfigfiles.git --work-tree=$HOME' alias revealjs='pandoc -s -t revealjs -V revealjs-url=../../lib/reveal.js --slide-level 2 --css ../../lib/css/style.css -o' alias md2pdf='pandoc -V geometry:left=3cm,right=2.5cm,top=2.5cm,bottom=2.5cm -o' -alias mpvlow='mpv --ytdl-format=bestvideo[height\<=480]+bestaudio' +alias mpvlow='mpv --ytdl-format=worstvideo[height\>=480]+bestaudio/480p/worst' +alias mpvhigh='mpv --ytdl-format=bestvideo[height\<=1080]+bestaudio/1080p/best'