From 430b199476c0192652765621ac733a87fdacc14d Mon Sep 17 00:00:00 2001 From: Trysdyn Black Date: Sun, 4 Apr 2021 21:08:32 -0700 Subject: [PATCH] Configure qutebrowser for version 2.2 Mostly just renaming a few config directives. Also support launching mpv from the browser. --- .config/qutebrowser/config.py | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index 1721992..e467cf4 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -295,11 +295,16 @@ c.colors.tabs.selected.even.bg = base02 # %%base16_template_end%% +### END COLOR SCHEME + +# Don't autoplay video, especially since we'll export it to MPV +c.content.autoplay = False + # Sites that honor UA pref will serve dark themes -c.colors.webpage.prefers_color_scheme_dark = True +c.colors.webpage.preferred_color_scheme = 'dark' # Allow notifications -c.content.notifications = True +c.content.notifications.enabled = True # Enable spellcheck c.spellcheck.languages = ['en-US'] @@ -310,4 +315,8 @@ c.tabs.background = True # Homepage DDG c.url.default_page = 'https://start.duckduckgo.com' -config.load_autoconfig +# Custom bindings +config.bind(',m', 'spawn mpv {url}') +config.bind(',M', 'hint links spawn mpv {hint-url}') + +config.load_autoconfig()