From 7c637ff008bb5af66832f2ee19b94c90400771ab Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Thu, 29 Jul 2021 11:39:12 +0200 Subject: Added mpv user script to change youtube video quality --- config/qutebrowser/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'config/qutebrowser/config.py') diff --git a/config/qutebrowser/config.py b/config/qutebrowser/config.py index 580fd40..7daca47 100644 --- a/config/qutebrowser/config.py +++ b/config/qutebrowser/config.py @@ -69,7 +69,7 @@ config.bind( hint links spawn /usr/bin/mpv --ytdl-raw-options=yes-playlist= - --ytdl-format="bestvideo[height<=480][fps<=30]+bestaudio/best[height<=480][fps<=30]" + --ytdl-format="bestvideo[height<=?480][fps<=?30]+bestaudio/best" {hint-url} ;; message-info "opening in video player" """.replace('\n', ' ') @@ -92,6 +92,8 @@ config.bind('k', 'scroll-page 0 -0.05', 'normal') config.unbind('d', 'normal') config.bind('dd', 'tab-close', 'normal') +# Can't create a shortcut to toggle darkmode since it requires a restart +# (qute://help/settings.html#colors.webpage.darkmode.enabled) c.colors.webpage.darkmode.enabled = True # Convert light themed sites to dark theme c.colors.webpage.preferred_color_scheme = 'dark' c.colors.webpage.darkmode.policy.images = 'smart' -- cgit