X-Git-Url: https://git.rmz.io/dotfiles.git/blobdiff_plain/153a0ddeced0f115f993ea3038e2804622f7142e..6dd46afe2b076a72a51a4c20027f9490ab007927:/qutebrowser/config.py diff --git a/qutebrowser/config.py b/qutebrowser/config.py index 99338ef..f7e0acc 100644 --- a/qutebrowser/config.py +++ b/qutebrowser/config.py @@ -1,3 +1,4 @@ +# noqa: D100 ## Autogenerated config.py ## ## NOTE: config.py is intended for advanced users who are comfortable @@ -10,6 +11,12 @@ ## qute://help/configuring.html ## qute://help/settings.html +from qutebrowser.config.configfiles import ConfigAPI +from qutebrowser.config.config import ConfigContainer + +c: ConfigContainer = c # noqa: F821 pylint: disable=E0602,C0103 +config: ConfigAPI = config # noqa: F821 pylint: disable=E0602,C0103 + def in_terminal(cmd: list): """Wraps cmd to be run in the default TERMINAL, as set by environment. @@ -39,7 +46,10 @@ try: message.info("Redirecting to " + url.toString()) info.redirect(url) - interceptor.register(intercept) + #FIXME: trying this disabled for a bit to test if qb crashes less + #2022-08-16 enabling it again (and off again) + # yeah crashed immediately + # interceptor.register(intercept) except ImportError: pass @@ -220,6 +230,7 @@ c.changelog_after_upgrade = 'patch' ## this list show up in the completion window under the Filesystem ## category when the command line contains `:open` but no argument. ## Type: List of String +# TODO: # c.completion.favorite_paths = [] ## Height (in pixels or as percentage of the window) of the completion. @@ -776,7 +787,8 @@ with config.pattern('*://calendar.google.com/*') as p: ## Enable WebGL. ## Type: Bool -# c.content.webgl = True +c.content.webgl = False +config.set('content.webgl', True, '*://meet.google.com/*') ## Which interfaces to expose via WebRTC. ## Type: String @@ -1083,6 +1095,7 @@ c.hints.scatter = False ## CSS selectors used to determine which elements on a page should have ## hints. ## Type: Dict +# TODO: reduce hints on some websites like reddit c.hints.selectors = {'all': ['a', 'area', 'textarea', 'select', 'input:not([type="hidden"])', 'button', 'frame', 'iframe', 'img', 'link', 'summary', @@ -1293,6 +1306,7 @@ c.qt.args = ['proxy-pac-url=file://' + str(config.configdir / 'proxy.pac')] ## - always: Always use low-end device mode. ## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM). ## - never: Never use low-end device mode. +# TODO: maybe never? # c.qt.chromium.low_end_device_mode = 'auto' ## Which Chromium process model to use. Alternative process models use @@ -1803,6 +1817,8 @@ c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}' 'fpp/slack': 'https://focalpointpositioning.slack.com/messages/{}', 'fpp/confluence': 'https://fppnt.atlassian.net/wiki/search?text={}', 'evk': 'https://gitlab.com/search?&scope=issues&group_id=13301433&search={}', + 'dev': 'https://devdocs.io/#q={}', + 'phind': 'https://www.phind.com/search?q={}', } ## Page(s) to open at the start.