From bab665082cb60899c088acd6a201b38f9b7b605c Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 14 Oct 2021 19:55:44 +0200 Subject: [PATCH 1/3] [QB] Use yt-dlp for mpv --- .config/qutebrowser/config.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 4f56d19..246f9cc 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -18,12 +18,12 @@ 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/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/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.bind('Ev', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {url}', mode='normal') +config.bind('EV', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {url}', mode='normal') +config.bind('Ea', 'spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {url}', mode='normal') +config.bind('Fv', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480 {hint-url}', mode='normal') +config.bind('FV', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080 {hint-url}', mode='normal') +config.bind('Fa', 'hint links spawn --detach mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --no-video --force-window=yes {hint-url}', mode='normal') config.unbind('F') config.bind('', 'back', mode='normal') config.bind('', 'forward', mode='normal') From 52fd0adf78e204774ec18d7afd39e0c8b300c927 Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 14 Oct 2021 19:56:04 +0200 Subject: [PATCH 2/3] [BASH] Use yt-dlp for mpv --- .bash_aliases | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.bash_aliases b/.bash_aliases index 90e2899..c1238c0 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -19,5 +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=worstvideo[height\>=480]+bestaudio/480p/worst' -alias mpvhigh='mpv --ytdl-format=bestvideo[height\<=1080]+bestaudio/1080p/best' +alias mpvlow='mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:480' +alias mpvhigh='mpv --script-opts=ytdl_hook-ytdl_path=yt-dlp --ytdl-raw-options=format-sort=height:1080' From 88d576a1817473e163b6236a12d228840cc9a28f Mon Sep 17 00:00:00 2001 From: Gregory Trolliet Date: Thu, 14 Oct 2021 19:56:35 +0200 Subject: [PATCH 3/3] [QB] Add quickmarks --- .config/qutebrowser/quickmarks | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.config/qutebrowser/quickmarks b/.config/qutebrowser/quickmarks index acc991b..46c3ee6 100644 --- a/.config/qutebrowser/quickmarks +++ b/.config/qutebrowser/quickmarks @@ -106,3 +106,6 @@ shrink pdf resize http://www.alfredklomp.com/programming/shrinkpdf/ antivol cadena vélo sécurité https://www.fub.fr/antivols running track https://runalyze.com/dashboard transport pollution co2 impact comparatif https://monimpacttransport.fr/ +ltva loi fédérale taxe valeur ajoutée https://www.fedlex.admin.ch/eli/cc/2009/615/fr +code civil suisse https://www.fedlex.admin.ch/fr/cc/internal-law/21 +code obligations suisse https://www.fedlex.admin.ch/fr/cc/internal-law/22