+# noqa: D100
## Autogenerated config.py
##
## NOTE: config.py is intended for advanced users who are comfortable
## 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.
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
## 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.
## `:prompt-open-download --pdfjs` command (bound to `<Ctrl-p>` by
## default) can be used in the download prompt.
## Type: Bool
-# c.content.pdfjs = False
+c.content.pdfjs = True
## Allow websites to request persistent storage quota via
## `navigator.webkitPersistentStorage.requestQuota`.
## 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
## 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',
## - last-opened: Open new tabs in the last (newest) opened window.
## - last-focused: Open new tabs in the most recently focused window.
## - last-visible: Open new tabs in the most recently visible window.
-# c.new_instance_open_target_window = 'last-focused'
+c.new_instance_open_target_window = 'last-visible'
## Show a filebrowser in download prompts.
## Type: Bool
## - 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
## the search engine name to the search term, e.g. `:open google
## qutebrowser`.
## Type: Dict
-c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}',
- 'ddg': 'https://duckduckgo.com/?t=chakra&q={}',
- 'cdda': 'https://nornagon.github.io/cdda-guide/?v=0.F-2#/search/{}',
- 'slack': 'https://focalpointpositioning.slack.com/messages/{}',
- 'std': 'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
- 'hoogle': 'https://hoogle.haskell.org/?hoogle={}',
- 'h': 'https://hoogle.haskell.org/?hoogle={}',
+c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}',
+ 'ddg': 'https://duckduckgo.com/?t=chakra&q={}',
+ 'cdda': 'https://nornagon.github.io/cdda-guide/?v=0.F-2#/search/{}',
+ 'std': 'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
+ 'hoogle': 'https://hoogle.haskell.org/?hoogle={}',
+ 'h': 'https://hoogle.haskell.org/?hoogle={}',
+ '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.