3 from qutebrowser
.config
.configfiles
import ConfigAPI
4 from qutebrowser
.config
.config
import ConfigContainer
6 c
: ConfigContainer
= c
# noqa: F821 pylint: disable=E0602,C0103
7 config
: ConfigAPI
= config
# noqa: F821 pylint: disable=E0602,C0103
10 def in_terminal(cmd
: list):
11 """Wraps cmd to be run in the default TERMINAL, as set by environment.
13 :cmd: cmd to execute in TERMINAL
14 :returns: A shell command as a list
17 t
= getenv('TERMINAL', 'xterm')
18 return [t
, '-e'] + cmd
21 ## This is here so configs done via the GUI are still loaded.
22 ## Remove it to not load settings done via the GUI.
23 config
.load_autoconfig(True)
25 ## Aliases for commands. The keys of the given dictionary are the
26 ## aliases, while the values are the commands they map to.
28 c
.aliases
= {'w': 'session-save',
34 'mpv': 'spawn --userscript ~/src/qutebrowser/misc/userscripts/view_in_mpv'
37 ## Time interval (in milliseconds) between auto-saves of
38 ## config/cookies/etc.
40 # c.auto_save.interval = 15000
42 ## Always restore open sites when qutebrowser is reopened. Without this
43 ## option set, `:wq` (`:quit --save`) needs to be used to save open tabs
44 ## (and restore them), while quitting qutebrowser in any other way will
45 ## not save/restore the session. By default, this will save to the
46 ## session which was last loaded. This behavior can be customized via the
47 ## `session.default_name` setting.
49 c
.auto_save
.session
= True
51 ## Backend to use to display websites. qutebrowser supports two different
52 ## web rendering engines / backends, QtWebEngine and QtWebKit (not
53 ## recommended). QtWebEngine is Qt's official successor to QtWebKit, and
54 ## both the default/recommended backend. It's based on a stripped-down
55 ## Chromium and regularly updated with security fixes and new features by
56 ## the Qt project: https://wiki.qt.io/QtWebEngine QtWebKit was
57 ## qutebrowser's original backend when the project was started. However,
58 ## support for QtWebKit was discontinued by the Qt project with Qt 5.6 in
59 ## 2016. The development of QtWebKit was picked up in an official fork:
60 ## https://github.com/qtwebkit/qtwebkit - however, the project seems to
61 ## have stalled again. The latest release (5.212.0 Alpha 4) from March
62 ## 2020 is based on a WebKit version from 2016, with many known security
63 ## vulnerabilities. Additionally, there is no process isolation and
64 ## sandboxing. Due to all those issues, while support for QtWebKit is
65 ## still available in qutebrowser for now, using it is strongly
69 ## - webengine: Use QtWebEngine (based on Chromium - recommended).
70 ## - webkit: Use QtWebKit (based on WebKit, similar to Safari - many known security issues!).
71 # c.backend = 'webengine'
73 ## Map keys to other keys, so that they are equivalent in all modes. When
74 ## the key used as dictionary-key is pressed, the binding for the key
75 ## used as dictionary-value is invoked instead. This is useful for global
76 ## remappings of keys, for example to map <Ctrl-[> to <Escape>. NOTE:
77 ## This should only be used if two keys should always be equivalent, i.e.
78 ## for things like <Enter> (keypad) and <Return> (non-keypad). For normal
79 ## command bindings, qutebrowser works differently to vim: You always
80 ## bind keys to commands, usually via `:bind` or `config.bind()`. Instead
81 ## of using this setting, consider finding the command a key is bound to
82 ## (e.g. via `:bind gg`) and then binding the same command to the desired
83 ## key. Note that when a key is bound (via `bindings.default` or
84 ## `bindings.commands`), the mapping is ignored.
86 c
.bindings
.key_mappings
= {'<Ctrl-6>': '<Ctrl-^>', '<Ctrl-M>': '<Return>', '<Ctrl-J>': '<Return>', '<Ctrl-I>': '<Tab>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>'}
88 ## When to show a changelog after qutebrowser was upgraded.
91 ## - major: Show changelog for major upgrades (e.g. v2.0.0 -> v3.0.0).
92 ## - minor: Show changelog for major and minor upgrades (e.g. v2.0.0 -> v2.1.0).
93 ## - patch: Show changelog for major, minor and patch upgrades (e.g. v2.0.0 -> v2.0.1).
94 ## - never: Never show changelog after upgrades.
95 c
.changelog_after_upgrade
= 'patch'
97 ## Which algorithm to use for modifying how colors are rendered with
98 ## darkmode. The `lightness-cielab` value was added with QtWebEngine 5.14
99 ## and is treated like `lightness-hsl` with older QtWebEngine versions.
102 ## - lightness-cielab: Modify colors by converting them to CIELAB color space and inverting the L value. Not available with Qt < 5.14.
103 ## - lightness-hsl: Modify colors by converting them to the HSL color space and inverting the lightness (i.e. the "L" in HSL).
104 ## - brightness-rgb: Modify colors by subtracting each of r, g, and b from their maximum value.
105 # c.colors.webpage.darkmode.algorithm = 'lightness-cielab'
107 ## Contrast for dark mode. This only has an effect when
108 ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
111 # c.colors.webpage.darkmode.contrast = 0.0
113 ## Render all web contents using a dark theme. Example configurations
114 ## from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based
115 ## inversion": Set `colors.webpage.darkmode.algorithm` accordingly. -
116 ## "With selective image inversion": Set
117 ## `colors.webpage.darkmode.policy.images` to `smart`. - "With selective
118 ## inversion of non-image elements": Set
119 ## `colors.webpage.darkmode.threshold.text` to 150 and
120 ## `colors.webpage.darkmode.threshold.background` to 205. - "With
121 ## selective inversion of everything": Combines the two variants above.
123 # c.colors.webpage.darkmode.enabled = False
125 ## Render all colors as grayscale. This only has an effect when
126 ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
129 # c.colors.webpage.darkmode.grayscale.all = False
131 ## Desaturation factor for images in dark mode. If set to 0, images are
132 ## left as-is. If set to 1, images are completely grayscale. Values
133 ## between 0 and 1 desaturate the colors accordingly.
135 # c.colors.webpage.darkmode.grayscale.images = 0.0
137 ## Which images to apply dark mode to. With QtWebEngine 5.15.0, this
138 ## setting can cause frequent renderer process crashes due to a
139 ## https://codereview.qt-project.org/c/qt/qtwebengine-
140 ## chromium/+/304211[bug in Qt].
143 ## - always: Apply dark mode filter to all images.
144 ## - never: Never apply dark mode filter to any images.
145 ## - smart: Apply dark mode based on image content. Not available with Qt 5.15.0.
146 # c.colors.webpage.darkmode.policy.images = 'smart'
148 ## Which pages to apply dark mode to. The underlying Chromium setting has
149 ## been removed in QtWebEngine 5.15.3, thus this setting is ignored
150 ## there. Instead, every element is now classified individually.
153 ## - always: Apply dark mode filter to all frames, regardless of content.
154 ## - smart: Apply dark mode filter to frames based on background color.
155 # c.colors.webpage.darkmode.policy.page = 'smart'
157 ## Threshold for inverting background elements with dark mode. Background
158 ## elements with brightness above this threshold will be inverted, and
159 ## below it will be left as in the original, non-dark-mode page. Set to
160 ## 256 to never invert the color or to 0 to always invert it. Note: This
161 ## behavior is the opposite of `colors.webpage.darkmode.threshold.text`!
163 # c.colors.webpage.darkmode.threshold.background = 0
165 ## Threshold for inverting text with dark mode. Text colors with
166 ## brightness below this threshold will be inverted, and above it will be
167 ## left as in the original, non-dark-mode page. Set to 256 to always
168 ## invert text color or to 0 to never invert text color.
170 # c.colors.webpage.darkmode.threshold.text = 256
172 ## Value to use for `prefers-color-scheme:` for websites. The "light"
173 ## value is only available with QtWebEngine 5.15.2+. On older versions,
174 ## it is the same as "auto". The "auto" value is broken on QtWebEngine
175 ## 5.15.2 due to a Qt bug. There, it will fall back to "light"
179 ## - auto: Use the system-wide color scheme setting.
180 ## - light: Force a light theme.
181 ## - dark: Force a dark theme.
182 # c.colors.webpage.preferred_color_scheme = 'auto'
184 ## Number of commands to save in the command history. 0: no history / -1:
187 # c.completion.cmd_history_max_items = 100
189 ## Delay (in milliseconds) before updating completions after typing a
192 # c.completion.delay = 0
194 ## Default filesystem autocomplete suggestions for :open. The elements of
195 ## this list show up in the completion window under the Filesystem
196 ## category when the command line contains `:open` but no argument.
197 ## Type: List of String
199 # c.completion.favorite_paths = []
201 ## Height (in pixels or as percentage of the window) of the completion.
203 c
.completion
.height
= 150
205 ## Minimum amount of characters needed to update completions.
207 # c.completion.min_chars = 1
209 ## Which categories to show (in which order) in the :open completion.
217 # c.completion.open_categories = ['searchengines', 'quickmarks', 'bookmarks', 'history', 'filesystem']
219 ## Move on to the next part when there's only one possible completion
222 c
.completion
.quick
= False
224 ## Padding (in pixels) of the scrollbar handle in the completion window.
226 # c.completion.scrollbar.padding = 2
228 ## Width (in pixels) of the scrollbar in the completion window.
230 # c.completion.scrollbar.width = 12
232 ## When to show the autocompletion window.
235 ## - always: Whenever a completion is available.
236 ## - auto: Whenever a completion is requested.
238 # c.completion.show = 'always'
240 ## Shrink the completion to be smaller than the configured size if there
241 ## are no scrollbars.
243 c
.completion
.shrink
= True
245 ## Format of timestamps (e.g. for the history completion). See
246 ## https://sqlite.org/lang_datefunc.html and
247 ## https://docs.python.org/3/library/datetime.html#strftime-strptime-
248 ## behavior for allowed substitutions, qutebrowser uses both sqlite and
249 ## Python to format its timestamps.
251 # c.completion.timestamp_format = '%Y-%m-%d %H:%M'
253 ## Execute the best-matching command on a partial match.
255 # c.completion.use_best_match = False
257 ## A list of patterns which should not be shown in the history. This only
258 ## affects the completion. Matching URLs are still saved in the history
259 ## (and visible on the `:history` page), but hidden in the completion.
260 ## Changing this setting will cause the completion history to be
261 ## regenerated on the next start, which will take a short while.
262 ## Type: List of UrlPattern
263 # c.completion.web_history.exclude = []
265 ## Number of URLs to show in the web history. 0: no history / -1:
268 # c.completion.web_history.max_items = -1
270 ## Require a confirmation before quitting the application.
273 ## - always: Always show a confirmation.
274 ## - multiple-tabs: Show a confirmation if multiple tabs are opened.
275 ## - downloads: Show a confirmation if downloads are running
276 ## - never: Never show a confirmation.
277 c
.confirm_quit
= ['downloads']
279 ## Automatically start playing `<video>` elements.
281 # c.content.autoplay = True
283 ## List of URLs to ABP-style adblocking rulesets. Only used when Brave's
284 ## ABP-style adblocker is used (see `content.blocking.method`). You can
285 ## find an overview of available lists here:
286 ## https://adblockplus.org/en/subscriptions - note that the special
287 ## `subscribe.adblockplus.org` links aren't handled by qutebrowser, you
288 ## will instead need to find the link to the raw `.txt` file (e.g. by
289 ## extracting it from the `location` parameter of the subscribe URL and
292 # c.content.blocking.adblock.lists = ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt']
294 ## Enable the ad/host blocker
296 # c.content.blocking.enabled = True
298 ## Block subdomains of blocked hosts. Note: If only a single subdomain is
299 ## blocked but should be allowed, consider using
300 ## `content.blocking.whitelist` instead.
302 # c.content.blocking.hosts.block_subdomains = True
304 ## List of URLs to host blocklists for the host blocker. Only used when
305 ## the simple host-blocker is used (see `content.blocking.method`). The
306 ## file can be in one of the following formats: - An `/etc/hosts`-like
307 ## file - One host per line - A zip-file of any of the above, with either
308 ## only one file, or a file named `hosts` (with any extension). It's
309 ## also possible to add a local file or directory via a `file://` URL. In
310 ## case of a directory, all files in the directory are read as adblock
311 ## lists. The file `~/.config/qutebrowser/blocked-hosts` is always read
314 # c.content.blocking.hosts.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts']
316 ## Which method of blocking ads should be used. Support for Adblock Plus
317 ## (ABP) syntax blocklists using Brave's Rust library requires the
318 ## `adblock` Python package to be installed, which is an optional
319 ## dependency of qutebrowser. It is required when either `adblock` or
320 ## `both` are selected.
323 ## - auto: Use Brave's ABP-style adblocker if available, host blocking otherwise
324 ## - adblock: Use Brave's ABP-style adblocker
325 ## - hosts: Use hosts blocking
326 ## - both: Use both hosts blocking and Brave's ABP-style adblocker
327 # c.content.blocking.method = 'auto'
329 ## A list of patterns that should always be loaded, despite being blocked
330 ## by the ad-/host-blocker. Local domains are always exempt from
331 ## adblocking. Note this whitelists otherwise blocked requests, not
332 ## first-party URLs. As an example, if `example.org` loads an ad from
333 ## `ads.example.org`, the whitelist entry could be
334 ## `https://ads.example.org/*`. If you want to disable the adblocker on a
335 ## given page, use the `content.blocking.enabled` setting with a URL
337 ## Type: List of UrlPattern
338 # c.content.blocking.whitelist = []
340 ## Enable support for the HTML 5 web application cache feature. An
341 ## application cache acts like an HTTP cache in some sense. For documents
342 ## that use the application cache via JavaScript, the loader engine will
343 ## first ask the application cache for the contents, before hitting the
346 # c.content.cache.appcache = True
348 ## Maximum number of pages to hold in the global memory page cache. The
349 ## page cache allows for a nicer user experience when navigating forth or
350 ## back to pages in the forward/back history, by pausing and resuming up
351 ## to _n_ pages. For more information about the feature, please refer to:
352 ## https://webkit.org/blog/427/webkit-page-cache-i-the-basics/
354 # c.content.cache.maximum_pages = 0
356 ## Size (in bytes) of the HTTP network cache. Null to use the default
357 ## value. With QtWebEngine, the maximum supported value is 2147483647 (~2
360 # c.content.cache.size = None
362 ## Allow websites to read canvas elements. Note this is needed for some
363 ## websites to work properly.
365 # c.content.canvas_reading = True
367 ## Which cookies to accept. With QtWebEngine, this setting also controls
368 ## other features with tracking capabilities similar to those of cookies;
369 ## including IndexedDB, DOM storage, filesystem API, service workers, and
370 ## AppCache. Note that with QtWebKit, only `all` and `never` are
371 ## supported as per-domain values. Setting `no-3rdparty` or `no-
372 ## unknown-3rdparty` per-domain on QtWebKit will have the same effect as
373 ## `all`. If this setting is used with URL patterns, the pattern gets
374 ## applied to the origin/first party URL of the page making the request,
375 ## not the request URL. With QtWebEngine 5.15.0+, paths will be stripped
376 ## from URLs, so URL patterns using paths will not match. With
377 ## QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so
378 ## you will typically need to set this setting for `example.com` when the
379 ## cookie is set on `somesubdomain.example.com` for it to work properly.
380 ## To debug issues with this setting, start qutebrowser with `--debug
381 ## --logfilter network --debug-flag log-cookies` which will show all
382 ## cookies being set.
385 ## - all: Accept all cookies.
386 ## - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
387 ## - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain. On QtWebEngine, this is the same as no-3rdparty.
388 ## - never: Don't accept cookies at all.
389 c
.content
.cookies
.accept
= 'no-3rdparty'
393 # c.content.cookies.store = True
395 ## Default encoding to use for websites. The encoding must be a string
396 ## describing an encoding such as _utf-8_, _iso-8859-1_, etc.
398 # c.content.default_encoding = 'iso-8859-1'
400 ## Allow websites to share screen content.
406 # c.content.desktop_capture = 'ask'
408 ## Try to pre-fetch DNS entries to speed up browsing.
410 # c.content.dns_prefetch = True
412 ## Expand each subframe to its contents. This will flatten all the frames
413 ## to become one scrollable page.
415 # c.content.frame_flattening = False
417 ## Set fullscreen notification overlay timeout in milliseconds. If set to
418 ## 0, no overlay will be displayed.
420 # c.content.fullscreen.overlay_timeout = 3000
422 ## Limit fullscreen to the browser window (does not expand to fill the
425 # c.content.fullscreen.window = False
427 ## Allow websites to request geolocations.
433 c
.content
.geolocation
= False
435 ## Value to send in the `Accept-Language` header. Note that the value
436 ## read from JavaScript is always the global value.
438 c
.content
.headers
.accept_language
= 'en-UK;q=1.0, en;q=0.9, de;q=0.7, fr;q=0.7, *;q=0.5'
440 ## Custom headers for qutebrowser HTTP requests.
442 # c.content.headers.custom = {}
444 ## Value to send in the `DNT` header. When this is set to true,
445 ## qutebrowser asks websites to not track your identity. If set to null,
446 ## the DNT header is not sent at all.
448 # c.content.headers.do_not_track = True
450 ## When to send the Referer header. The Referer header tells websites
451 ## from which website you were coming from when visiting them. Note that
452 ## with QtWebEngine, websites can override this preference by setting the
453 ## `Referrer-Policy:` header, so that any websites visited from them get
454 ## the full referer. No restart is needed with QtWebKit.
457 ## - always: Always send the Referer.
458 ## - never: Never send the Referer. This is not recommended, as some sites may break.
459 ## - same-domain: Only send the Referer for the same domain. This will still protect your privacy, but shouldn't break any sites. With QtWebEngine, the referer will still be sent for other domains, but with stripped path information.
460 # c.content.headers.referer = 'same-domain'
462 ## User agent to send. The following placeholders are defined: *
463 ## `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
464 ## The underlying WebKit version (set to a fixed value with
465 ## QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
466 ## QtWebEngine. * `{qt_version}`: The underlying Qt version. *
467 ## `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
468 ## QtWebEngine. * `{upstream_browser_version}`: The corresponding
469 ## Safari/Chrome version. * `{qutebrowser_version}`: The currently
470 ## running qutebrowser version. The default value is equal to the
471 ## unchanged user agent of QtWebKit/QtWebEngine. Note that the value
472 ## read from JavaScript is always the global value. With QtWebEngine
473 ## between 5.12 and 5.14 (inclusive), changing the value exposed to
474 ## JavaScript requires a restart.
475 ## Type: FormatString
476 # c.content.headers.user_agent = 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {qt_key}/{qt_version} {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}'
478 ## Enable hyperlink auditing (`<a ping>`).
480 # c.content.hyperlink_auditing = False
482 ## Load images automatically in web pages.
484 # c.content.images = True
486 ## Show javascript alerts.
488 # c.content.javascript.alert = True
490 ## Allow JavaScript to close tabs.
492 # c.content.javascript.can_close_tabs = False
494 ## Allow JavaScript to open new tabs without user interaction.
496 # c.content.javascript.can_open_tabs_automatically = False
498 ## Allow JavaScript to read from or write to the clipboard. With
499 ## QtWebEngine, writing the clipboard as response to a user interaction
500 ## is always allowed.
503 ## - none: Disable access to clipboard.
504 ## - access: Allow reading from and writing to the clipboard.
505 ## - access-paste: Allow accessing the clipboard and pasting clipboard content.
506 c
.content
.javascript
.clipboard
= 'none'
507 config
.set('content.javascript.clipboard', 'access', '*://*.gitlab.com/*')
508 config
.set('content.javascript.clipboard', 'access', '*://*.github.com/*')
510 ## Enable JavaScript.
512 # c.content.javascript.enabled = True
514 ## Log levels to use for JavaScript console logging messages. When a
515 ## JavaScript message with the level given in the dictionary key is
516 ## logged, the corresponding dictionary value selects the qutebrowser
517 ## logger to use. On QtWebKit, the "unknown" setting is always used. The
518 ## following levels are valid: `none`, `debug`, `info`, `warning`,
521 # c.content.javascript.log = {'unknown': 'debug', 'info': 'debug', 'warning': 'debug', 'error': 'debug'}
523 ## Javascript messages to *not* show in the UI, despite a corresponding
524 ## `content.javascript.log_message.levels` setting. Both keys and values
525 ## are glob patterns, with the key matching the location of the error,
526 ## and the value matching the error message. By default, the
527 ## https://web.dev/csp/[Content security policy] violations triggered by
528 ## qutebrowser's stylesheet handling are excluded, as those errors are to
529 ## be expected and can't be easily handled by the underlying code.
531 # c.content.javascript.log_message.excludes = {'userscript:_qute_stylesheet': ['*Refused to apply inline style because it violates the following Content Security Policy directive: *']}
533 ## Javascript message sources/levels to show in the qutebrowser UI. When
534 ## a JavaScript message is logged from a location matching the glob
535 ## pattern given in the key, and is from one of the levels listed as
536 ## value, it's surfaced as a message in the qutebrowser UI. By default,
537 ## errors happening in qutebrowser internally are shown to the user.
539 # c.content.javascript.log_message.levels = {'qute:*': ['error'], 'userscript:GM-*': [], 'userscript:*': ['error']}
541 ## Use the standard JavaScript modal dialog for `alert()` and
544 # c.content.javascript.modal_dialog = False
546 ## Show javascript prompts.
548 # c.content.javascript.prompt = True
550 ## Allow locally loaded documents to access other local URLs.
552 # c.content.local_content_can_access_file_urls = True
554 ## Allow locally loaded documents to access remote URLs.
556 # c.content.local_content_can_access_remote_urls = False
558 ## Enable support for HTML 5 local storage and Web SQL.
560 # c.content.local_storage = True
562 ## Allow websites to record audio.
568 # c.content.media.audio_capture = 'ask'
570 ## Allow websites to record audio and video.
576 # c.content.media.audio_video_capture = 'ask'
578 ## Allow websites to record video.
584 # c.content.media.video_capture = 'ask'
586 ## Allow websites to lock your mouse pointer.
592 # c.content.mouse_lock = 'ask'
594 ## Automatically mute tabs. Note that if the `:tab-mute` command is used,
595 ## the mute status for the affected tab is now controlled manually, and
596 ## this setting doesn't have any effect.
598 # c.content.mute = False
600 ## Netrc-file for HTTP authentication. If unset, `~/.netrc` is used.
602 # c.content.netrc_file = None
604 ## Allow websites to show notifications.
610 c
.content
.notifications
.enabled
= 'ask'
611 config
.set('content.notifications.enabled', True, '*://*.gitlab.com/*')
612 config
.set('content.notifications.enabled', True, '*://*.google.com/*')
614 ## What notification presenter to use for web notifications. Note that
615 ## not all implementations support all features of notifications: - With
616 ## PyQt 5.14, any setting other than `qt` does not support the `click`
617 ## and `close` events, as well as the `tag` option to replace existing
618 ## notifications. - The `qt` and `systray` options only support showing
619 ## one notification at the time and ignore the `tag` option to replace
620 ## existing notifications. - The `herbe` option only supports showing one
621 ## notification at the time and doesn't show icons. - The `messages`
622 ## option doesn't show icons and doesn't support the `click` and
626 ## - auto: Tries `libnotify`, `systray` and `messages`, uses the first one available without showing error messages.
627 ## - qt: Use Qt's native notification presenter, based on a system tray icon. Switching from or to this value requires a restart of qutebrowser. Recommended over `systray` on PyQt 5.14.
628 ## - libnotify: Shows messages via DBus in a libnotify-compatible way. If DBus isn't available, falls back to `systray` or `messages`, but shows an error message.
629 ## - systray: Use a notification presenter based on a systray icon. Falls back to `libnotify` or `messages` if not systray is available. This is a reimplementation of the `qt` setting value, but with the possibility to switch to it at runtime.
630 ## - messages: Show notifications as qutebrowser messages. Most notification features aren't available.
631 ## - herbe: (experimental!) Show notifications using herbe (github.com/dudik/herbe). Most notification features aren't available.
632 # c.content.notifications.presenter = 'auto'
634 ## Whether to show the origin URL for notifications. Note that URL
635 ## patterns with this setting only get matched against the origin part of
636 ## the URL, so e.g. paths in patterns will never match. Note that with
637 ## the `qt` presenter, origins are never shown.
639 # c.content.notifications.show_origin = True
641 ## Display PDF files via PDF.js in the browser without showing a download
642 ## prompt. Note that the files can still be downloaded by clicking the
643 ## download button in the pdf.js viewer. With this set to `false`, the
644 ## `:prompt-open-download --pdfjs` command (bound to `<Ctrl-p>` by
645 ## default) can be used in the download prompt.
647 c
.content
.pdfjs
= True
649 ## Allow websites to request persistent storage quota via
650 ## `navigator.webkitPersistentStorage.requestQuota`.
656 # c.content.persistent_storage = 'ask'
658 ## Enable plugins in Web pages.
660 # c.content.plugins = False
662 ## Request websites to minimize non-essentials animations and motion.
663 ## This results in the `prefers-reduced-motion` CSS media query to
664 ## evaluate to `reduce` (rather than `no-preference`). On Windows, if
665 ## this setting is set to False, the system-wide animation setting is
668 c
.content
.prefers_reduced_motion
= True
670 ## Draw the background color and images also when the page is printed.
672 # c.content.print_element_backgrounds = True
674 ## Open new windows in private browsing mode which does not record
677 # c.content.private_browsing = False
679 ## Proxy to use. In addition to the listed values, you can use a
680 ## `socks://...` or `http://...` URL. Note that with QtWebEngine, it will
681 ## take a couple of seconds until the change is applied, if this value is
682 ## changed at runtime. Authentication for SOCKS proxies isn't supported
683 ## due to Chromium limitations.
686 ## - system: Use the system wide proxy.
687 ## - none: Don't use any proxy
688 # c.content.proxy = 'system'
690 ## Send DNS requests over the configured proxy.
692 # c.content.proxy_dns_requests = True
694 ## Allow websites to register protocol handlers via
695 ## `navigator.registerProtocolHandler`.
701 # c.content.register_protocol_handler = 'ask'
702 with config
.pattern('*://mail.google.com/*') as p
:
703 p
.content
.register_protocol_handler
= False
704 with config
.pattern('*://calendar.google.com/*') as p
:
705 p
.content
.register_protocol_handler
= False
707 ## Enable quirks (such as faked user agent headers) needed to get
708 ## specific sites to work properly.
710 # c.content.site_specific_quirks.enabled = True
712 ## Disable a list of named quirks. The js-string-replaceall quirk is
713 ## needed for Nextcloud Calendar < 2.2.0 with QtWebEngine < 5.15.3.
714 ## However, the workaround is not fully compliant to the ECMAScript spec
715 ## and might cause issues on other websites, so it's disabled by default.
724 ## - js-string-replaceall
726 ## - js-object-fromentries
729 ## - misc-mathml-darkmode
730 # c.content.site_specific_quirks.skip = ['js-string-replaceall']
732 ## How to proceed on TLS certificate errors.
735 ## - ask: Ask how to proceed for every certificate error (unless non-overridable due to HSTS).
736 ## - ask-block-thirdparty: Ask how to proceed for normal page loads, but silently block resource loads.
737 ## - block: Automatically block loading on certificate errors.
738 ## - load-insecurely: Force loading pages despite certificate errors. This is *insecure* and should be avoided. Instead of using this, consider fixing the underlying issue or importing a self-signed certificate via `certutil` (or Chromium) instead.
739 # c.content.tls.certificate_errors = 'ask'
741 ## How navigation requests to URLs with unknown schemes are handled.
744 ## - disallow: Disallows all navigation requests to URLs with unknown schemes.
745 ## - allow-from-user-interaction: Allows navigation requests to URLs with unknown schemes that are issued from user-interaction (like a mouse-click), whereas other navigation requests (for example from JavaScript) are suppressed.
746 ## - allow-all: Allows all navigation requests to URLs with unknown schemes.
747 # c.content.unknown_url_scheme_policy = 'allow-from-user-interaction'
749 ## List of user stylesheet filenames to use.
750 ## Type: List of File, or File
751 # c.content.user_stylesheets = []
755 c
.content
.webgl
= False
756 config
.set('content.webgl', True, '*://meet.google.com/*')
758 ## Which interfaces to expose via WebRTC.
761 ## - all-interfaces: WebRTC has the right to enumerate all interfaces and bind them to discover public interfaces.
762 ## - default-public-and-private-interfaces: WebRTC should only use the default route used by http. This also exposes the associated default private address. Default route is the route chosen by the OS on a multi-homed endpoint.
763 ## - default-public-interface-only: WebRTC should only use the default route used by http. This doesn't expose any local addresses.
764 ## - disable-non-proxied-udp: WebRTC should only use TCP to contact peers or servers unless the proxy server supports UDP. This doesn't expose any local addresses either.
765 # c.content.webrtc_ip_handling_policy = 'all-interfaces'
767 ## Monitor load requests for cross-site scripting attempts. Suspicious
768 ## scripts will be blocked and reported in the devtools JavaScript
769 ## console. Note that bypasses for the XSS auditor are widely known and
770 ## it can be abused for cross-site info leaks in some scenarios, see:
771 ## https://www.chromium.org/developers/design-documents/xss-auditor
773 # c.content.xss_auditing = False
775 ## Directory to save downloads to. If unset, a sensible OS-specific
778 c
.downloads
.location
.directory
= "~/downloads"
780 ## Prompt the user for the download location. If set to false,
781 ## `downloads.location.directory` will be used.
783 # c.downloads.location.prompt = True
785 ## Remember the last used download directory.
787 # c.downloads.location.remember = True
789 ## What to display in the download filename input.
792 ## - path: Show only the download path.
793 ## - filename: Show only download filename.
794 ## - both: Show download path and filename.
795 # c.downloads.location.suggestion = 'path'
797 ## Default program used to open downloads. If null, the default internal
798 ## handler is used. Any `{}` in the string will be expanded to the
799 ## filename, else the filename will be appended.
801 c
.downloads
.open_dispatcher
= "rifle"
803 ## Where to show the downloaded files.
804 ## Type: VerticalPosition
808 # c.downloads.position = 'top'
810 ## Automatically abort insecure (HTTP) downloads originating from secure
811 ## (HTTPS) pages. For per-domain settings, the relevant URL is the URL
812 ## initiating the download, not the URL the download itself is coming
813 ## from. It's not recommended to set this setting to false globally.
815 # c.downloads.prevent_mixed_content = True
817 ## Duration (in milliseconds) to wait before removing finished downloads.
818 ## If set to -1, downloads are never removed.
820 # c.downloads.remove_finished = -1
822 ## Editor (and arguments) to use for the `edit-*` commands. The following
823 ## placeholders are defined: * `{file}`: Filename of the file to be
824 ## edited. * `{line}`: Line in which the caret is found in the text. *
825 ## `{column}`: Column in which the caret is found in the text. *
826 ## `{line0}`: Same as `{line}`, but starting from index 0. * `{column0}`:
827 ## Same as `{column}`, but starting from index 0.
828 ## Type: ShellCommand
829 c
.editor
.command
= in_terminal(['vim', '{file}', '-c', 'normal {line}G{column0}l'])
831 ## Encoding to use for the editor.
833 # c.editor.encoding = 'utf-8'
835 ## Delete the temporary file upon closing the editor.
837 # c.editor.remove_file = True
839 ## Command (and arguments) to use for selecting a single folder in forms.
840 ## The command should write the selected folder path to the specified
841 ## file or stdout. The following placeholders are defined: * `{}`:
842 ## Filename of the file to be written to. If not contained in any
843 ## argument, the standard output of the command is read instead.
844 ## Type: ShellCommand
845 c
.fileselect
.folder
.command
= in_terminal(['ranger', '--choosedir={}'])
847 ## Handler for selecting file(s) in forms. If `external`, then the
848 ## commands specified by `fileselect.single_file.command`,
849 ## `fileselect.multiple_files.command` and `fileselect.folder.command`
850 ## are used to select one file, multiple files, and folders,
854 ## - default: Use the default file selector.
855 ## - external: Use an external command.
856 c
.fileselect
.handler
= 'external'
858 ## Command (and arguments) to use for selecting multiple files in forms.
859 ## The command should write the selected file paths to the specified file
860 ## or to stdout, separated by newlines. The following placeholders are
861 ## defined: * `{}`: Filename of the file to be written to. If not
862 ## contained in any argument, the standard output of the command is
864 ## Type: ShellCommand
865 c
.fileselect
.multiple_files
.command
= in_terminal(['ranger', '--choosefiles={}'])
867 ## Command (and arguments) to use for selecting a single file in forms.
868 ## The command should write the selected file path to the specified file
869 ## or stdout. The following placeholders are defined: * `{}`: Filename of
870 ## the file to be written to. If not contained in any argument, the
871 ## standard output of the command is read instead.
872 ## Type: ShellCommand
873 c
.fileselect
.single_file
.command
= in_terminal(['ranger', '--choosefile={}'])
875 ## Font used in the completion categories.
877 # c.fonts.completion.category = 'bold default_size default_family'
879 ## Font used in the completion widget.
881 # c.fonts.completion.entry = 'default_size default_family'
883 ## Font used for the context menu. If set to null, the Qt default is
886 # c.fonts.contextmenu = None
888 ## Font used for the debugging console.
890 # c.fonts.debug_console = 'default_size default_family'
892 ## Default font families to use. Whenever "default_family" is used in a
893 ## font setting, it's replaced with the fonts listed here. If set to an
894 ## empty value, a system-specific monospace default is used.
895 ## Type: List of Font, or Font
896 c
.fonts
.default_family
= ["Fira Code"]
898 ## Default font size to use. Whenever "default_size" is used in a font
899 ## setting, it's replaced with the size listed here. Valid values are
900 ## either a float value with a "pt" suffix, or an integer value with a
903 # c.fonts.default_size = '10pt'
905 ## Font used for the downloadbar.
907 # c.fonts.downloads = 'default_size default_family'
909 ## Font used for the hints.
911 # c.fonts.hints = 'bold default_size default_family'
913 ## Font used in the keyhint widget.
915 # c.fonts.keyhint = 'default_size default_family'
917 ## Font used for error messages.
919 # c.fonts.messages.error = 'default_size default_family'
921 ## Font used for info messages.
923 # c.fonts.messages.info = 'default_size default_family'
925 ## Font used for warning messages.
927 # c.fonts.messages.warning = 'default_size default_family'
929 ## Font used for prompts.
931 # c.fonts.prompts = 'default_size sans-serif'
933 ## Font used in the statusbar.
935 # c.fonts.statusbar = 'default_size default_family'
937 ## Font used for selected tabs.
939 # c.fonts.tabs.selected = 'default_size default_family'
941 ## Font used for unselected tabs.
943 # c.fonts.tabs.unselected = 'default_size default_family'
945 ## Font family for cursive fonts.
947 # c.fonts.web.family.cursive = ''
949 ## Font family for fantasy fonts.
951 # c.fonts.web.family.fantasy = ''
953 ## Font family for fixed fonts.
955 # c.fonts.web.family.fixed = ''
957 ## Font family for sans-serif fonts.
959 # c.fonts.web.family.sans_serif = ''
961 ## Font family for serif fonts.
963 # c.fonts.web.family.serif = ''
965 ## Font family for standard fonts.
967 # c.fonts.web.family.standard = ''
969 ## Default font size (in pixels) for regular text.
971 # c.fonts.web.size.default = 16
973 ## Default font size (in pixels) for fixed-pitch text.
975 # c.fonts.web.size.default_fixed = 13
977 ## Hard minimum font size (in pixels).
979 # c.fonts.web.size.minimum = 0
981 ## Minimum logical font size (in pixels) that is applied when zooming
984 # c.fonts.web.size.minimum_logical = 6
986 ## When a hint can be automatically followed without pressing Enter.
989 ## - always: Auto-follow whenever there is only a single hint on a page.
990 ## - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
991 ## - full-match: Follow the hint when the user typed the whole hint (letter, word or number mode) or the element's text (only in number mode).
992 ## - never: The user will always need to press Enter to follow a hint.
993 # c.hints.auto_follow = 'unique-match'
995 ## Duration (in milliseconds) to ignore normal-mode key bindings after a
996 ## successful auto-follow.
998 # c.hints.auto_follow_timeout = 0
1000 ## CSS border value for hints.
1002 # c.hints.border = '1px solid #E3BE23'
1004 ## Characters used for hint strings.
1005 ## Type: UniqueCharString
1006 c
.hints
.chars
= 'aoeuidhtns'
1008 ## Dictionary file to be used by the word hints.
1010 # c.hints.dictionary = '/usr/share/dict/words'
1012 ## Which implementation to use to find elements to hint.
1015 ## - javascript: Better but slower
1016 ## - python: Slightly worse but faster
1017 # c.hints.find_implementation = 'python'
1019 ## Hide unmatched hints in rapid mode.
1021 # c.hints.hide_unmatched_rapid_hints = True
1023 ## Leave hint mode when starting a new page load.
1025 # c.hints.leave_on_load = False
1027 ## Minimum number of characters used for hint strings.
1029 c
.hints
.min_chars
= 2
1031 ## Mode to use for hints.
1034 ## - number: Use numeric hints. (In this mode you can also type letters from the hinted element to filter and reduce the number of elements that are hinted.)
1035 ## - letter: Use the characters in the `hints.chars` setting.
1036 ## - word: Use hints words based on the html elements and the extra words.
1037 # c.hints.mode = 'letter'
1039 ## Comma-separated list of regular expressions to use for 'next' links.
1040 ## Type: List of Regex
1041 # c.hints.next_regexes = ['\\bnext\\b', '\\bmore\\b', '\\bnewer\\b', '\\b[>→≫]\\b', '\\b(>>|»)\\b', '\\bcontinue\\b']
1043 ## Padding (in pixels) for hints.
1045 # c.hints.padding = {'top': 0, 'bottom': 0, 'left': 3, 'right': 3}
1047 ## Comma-separated list of regular expressions to use for 'prev' links.
1048 ## Type: List of Regex
1049 # c.hints.prev_regexes = ['\\bprev(ious)?\\b', '\\bback\\b', '\\bolder\\b', '\\b[<←≪]\\b', '\\b(<<|«)\\b']
1051 ## Rounding radius (in pixels) for the edges of hints.
1053 # c.hints.radius = 3
1055 ## Scatter hint key chains (like Vimium) or not (like dwb). Ignored for
1058 c
.hints
.scatter
= False
1060 ## CSS selectors used to determine which elements on a page should have
1063 # TODO: reduce hints on some websites like reddit
1064 c
.hints
.selectors
= {'all': ['a', 'area', 'textarea', 'select',
1065 'input:not([type="hidden"])', 'button', 'frame',
1066 'iframe', 'img', 'link', 'summary',
1067 '[contenteditable]:not([contenteditable="false"])',
1068 '[onclick]', '[onmousedown]', '[role="link"]',
1069 '[role="option"]', '[role="button"]',
1070 '[role="tab"]', '[role="checkbox"]',
1071 '[role="menuitem"]', '[role="menuitemcheckbox"]',
1072 '[role="menuitemradio"]', '[role="treeitem"]',
1073 '[ng-click]', '[ngClick]', '[data-ng-click]',
1074 '[x-ng-click]', '[tabindex]:not([tabindex="-1"])'],
1075 'links': ['a[href]', 'area[href]', 'link[href]', '[role="link"][href]'],
1077 'media': ['audio', 'img', 'video'],
1078 'url': ['[src]', '[href]'],
1079 'inputs': ['input[type="text"]', 'input[type="date"]',
1080 'input[type="datetime-local"]',
1081 'input[type="email"]', 'input[type="month"]',
1082 'input[type="number"]', 'input[type="password"]',
1083 'input[type="search"]', 'input[type="tel"]',
1084 'input[type="time"]', 'input[type="url"]',
1085 'input[type="week"]', 'input:not([type])',
1086 '[contenteditable]:not([contenteditable="false"])',
1090 ## Make characters in hint strings uppercase.
1092 # c.hints.uppercase = False
1094 ## Maximum time (in minutes) between two history items for them to be
1095 ## considered being from the same browsing session. Items with less time
1096 ## between them are grouped when being displayed in `:history`. Use -1 to
1097 ## disable separation.
1099 # c.history_gap_interval = 30
1101 ## Allow Escape to quit the crash reporter.
1103 # c.input.escape_quits_reporter = True
1105 ## Which unbound keys to forward to the webview in normal mode.
1108 ## - all: Forward all unbound keys.
1109 ## - auto: Forward unbound non-alphanumeric keys.
1110 ## - none: Don't forward any keys.
1111 # c.input.forward_unbound_keys = 'auto'
1113 ## Enter insert mode if an editable element is clicked.
1115 # c.input.insert_mode.auto_enter = True
1117 ## Leave insert mode if a non-editable element is clicked.
1119 # c.input.insert_mode.auto_leave = True
1121 ## Automatically enter insert mode if an editable element is focused
1122 ## after loading the page.
1124 # c.input.insert_mode.auto_load = False
1126 ## Leave insert mode when starting a new page load. Patterns may be
1127 ## unreliable on this setting, and they may match the url you are
1128 ## navigating to, or the URL you are navigating from.
1130 c
.input.insert_mode
.leave_on_load
= True
1132 ## Switch to insert mode when clicking flash and other plugins.
1134 # c.input.insert_mode.plugins = False
1136 ## Include hyperlinks in the keyboard focus chain when tabbing.
1138 # c.input.links_included_in_focus_chain = True
1140 ## Interpret number prefixes as counts for bindings. This enables for vi-
1141 ## like bindings that can be prefixed with a number to indicate a count.
1142 ## Disabling it allows for emacs-like bindings where number keys are
1143 ## passed through (according to `input.forward_unbound_keys`) instead.
1145 # c.input.match_counts = True
1147 ## Whether the underlying Chromium should handle media keys. On Linux,
1148 ## disabling this also disables Chromium's MPRIS integration.
1150 # c.input.media_keys = True
1152 ## Mode to change to when focusing on a tab/URL changes.
1158 # c.input.mode_override = None
1160 ## Enable back and forward buttons on the mouse.
1162 # c.input.mouse.back_forward_buttons = True
1164 ## Enable Opera-like mouse rocker gestures. This disables the context
1167 # c.input.mouse.rocker_gestures = False
1169 ## Timeout (in milliseconds) for partially typed key bindings. If the
1170 ## current input forms only partial matches, the keystring will be
1171 ## cleared after this time. If set to 0, partially typed bindings are
1174 # c.input.partial_timeout = 0
1176 ## Enable spatial navigation. Spatial navigation consists in the ability
1177 ## to navigate between focusable elements, such as hyperlinks and form
1178 ## controls, on a web page by using the Left, Right, Up and Down arrow
1179 ## keys. For example, if a user presses the Right key, heuristics
1180 ## determine whether there is an element they might be trying to reach
1181 ## towards the right and which element they probably want.
1183 # c.input.spatial_navigation = False
1185 ## Keychains that shouldn't be shown in the keyhint dialog. Globs are
1186 ## supported, so `;*` will blacklist all keychains starting with `;`. Use
1187 ## `*` to disable keyhints.
1188 ## Type: List of String
1189 # c.keyhint.blacklist = []
1191 ## Time (in milliseconds) from pressing a key to seeing the keyhint
1194 # c.keyhint.delay = 500
1196 ## Rounding radius (in pixels) for the edges of the keyhint dialog.
1198 # c.keyhint.radius = 6
1200 ## Level for console (stdout/stderr) logs. Ignored if the `--loglevel` or
1201 ## `--debug` CLI flags are used.
1210 # c.logging.level.console = 'info'
1212 ## Level for in-memory logs.
1221 # c.logging.level.ram = 'debug'
1223 ## Duration (in milliseconds) to show messages in the statusbar for. Set
1224 ## to 0 to never clear messages.
1226 # c.messages.timeout = 3000
1228 ## How to open links in an existing instance if a new one is launched.
1229 ## This happens when e.g. opening a link from a terminal. See
1230 ## `new_instance_open_target_window` to customize in which window the
1231 ## link is opened in.
1234 ## - tab: Open a new tab in the existing window and activate the window.
1235 ## - tab-bg: Open a new background tab in the existing window and activate the window.
1236 ## - tab-silent: Open a new tab in the existing window without activating the window.
1237 ## - tab-bg-silent: Open a new background tab in the existing window without activating the window.
1238 ## - window: Open in a new window.
1239 ## - private-window: Open in a new private window.
1240 # c.new_instance_open_target = 'tab'
1242 ## Which window to choose when opening links as new tabs. When
1243 ## `new_instance_open_target` is set to `window`, this is ignored.
1246 ## - first-opened: Open new tabs in the first (oldest) opened window.
1247 ## - last-opened: Open new tabs in the last (newest) opened window.
1248 ## - last-focused: Open new tabs in the most recently focused window.
1249 ## - last-visible: Open new tabs in the most recently visible window.
1250 c
.new_instance_open_target_window
= 'last-visible'
1252 ## Show a filebrowser in download prompts.
1254 # c.prompt.filebrowser = True
1256 ## Rounding radius (in pixels) for the edges of prompts.
1258 # c.prompt.radius = 8
1260 ## Additional arguments to pass to Qt, without leading `--`. With
1261 ## QtWebEngine, some Chromium arguments (see
1262 ## https://peter.sh/experiments/chromium-command-line-switches/ for a
1264 ## Type: List of String
1265 c
.qt
.args
= ['proxy-pac-url=file://' + str(config
.configdir
/ 'proxy.pac')]
1267 ## When to use Chromium's low-end device mode. This improves the RAM
1268 ## usage of renderer processes, at the expense of performance.
1271 ## - always: Always use low-end device mode.
1272 ## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM).
1273 ## - never: Never use low-end device mode.
1274 # TODO: maybe never?
1275 # c.qt.chromium.low_end_device_mode = 'auto'
1277 ## Which Chromium process model to use. Alternative process models use
1278 ## less resources, but decrease security and robustness. See the
1279 ## following pages for more details: -
1280 ## https://www.chromium.org/developers/design-documents/process-models
1281 ## - https://doc.qt.io/qt-5/qtwebengine-features.html#process-models
1284 ## - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated.
1285 ## - process-per-site: Pages from separate sites are put into separate processes. Unlike Process per Site Instance, all visits to the same site will share an OS process. The benefit of this model is reduced memory consumption, because more web pages will share processes. The drawbacks include reduced security, robustness, and responsiveness.
1286 ## - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`.
1287 # c.qt.chromium.process_model = 'process-per-site-instance'
1289 ## What sandboxing mechanisms in Chromium to use. Chromium has various
1290 ## sandboxing layers, which should be enabled for normal browser usage.
1291 ## Mainly for testing and development, it's possible to disable
1292 ## individual sandboxing layers via this setting. Open `chrome://sandbox`
1293 ## to see the current sandbox status. Changing this setting is only
1294 ## recommended if you know what you're doing, as it **disables one of
1295 ## Chromium's security layers**. To avoid sandboxing being accidentally
1296 ## disabled persistently, this setting can only be set via `config.py`,
1297 ## not via `:set`. See the Chromium documentation for more details: - htt
1298 ## ps://chromium.googlesource.com/chromium/src/\+/HEAD/docs/linux/sandbox
1299 ## ing.md[Linux] - https://chromium.googlesource.com/chromium/src/\+/HEAD
1300 ## /docs/design/sandbox.md[Windows] - https://chromium.googlesource.com/c
1301 ## hromium/src/\+/HEAD/docs/design/sandbox_faq.md[FAQ (Windows-centric)]
1304 ## - enable-all: Enable all available sandboxing mechanisms.
1305 ## - disable-seccomp-bpf: Disable the Seccomp BPF filter sandbox (Linux only).
1306 ## - disable-all: Disable all sandboxing (**not recommended!**).
1307 # c.qt.chromium.sandboxing = 'enable-all'
1309 ## Additional environment variables to set. Setting an environment
1310 ## variable to null/None will unset it.
1314 ## Force a Qt platform to use. This sets the `QT_QPA_PLATFORM`
1315 ## environment variable and is useful to force using the XCB plugin when
1316 ## running QtWebEngine on Wayland.
1318 # c.qt.force_platform = None
1320 ## Force a Qt platformtheme to use. This sets the `QT_QPA_PLATFORMTHEME`
1321 ## environment variable which controls dialogs like the filepicker. By
1322 ## default, Qt determines the platform theme based on the desktop
1325 # c.qt.force_platformtheme = None
1327 ## Force software rendering for QtWebEngine. This is needed for
1328 ## QtWebEngine to work with Nouveau drivers and can be useful in other
1329 ## scenarios related to graphic issues.
1332 ## - software-opengl: Tell LibGL to use a software implementation of GL (`LIBGL_ALWAYS_SOFTWARE` / `QT_XCB_FORCE_SOFTWARE_OPENGL`)
1333 ## - qt-quick: Tell Qt Quick to use a software renderer instead of OpenGL. (`QT_QUICK_BACKEND=software`)
1334 ## - chromium: Tell Chromium to disable GPU support and use Skia software rendering instead. (`--disable-gpu`)
1335 ## - none: Don't force software rendering.
1336 # c.qt.force_software_rendering = 'none'
1338 ## Turn on Qt HighDPI scaling. This is equivalent to setting
1339 ## QT_AUTO_SCREEN_SCALE_FACTOR=1 or QT_ENABLE_HIGHDPI_SCALING=1 (Qt >=
1340 ## 5.14) in the environment. It's off by default as it can cause issues
1341 ## with some bitmap fonts. As an alternative to this, it's possible to
1342 ## set font sizes and the `zoom.default` setting.
1344 # c.qt.highdpi = False
1346 ## Work around locale parsing issues in QtWebEngine 5.15.3. With some
1347 ## locales, QtWebEngine 5.15.3 is unusable without this workaround. In
1348 ## affected scenarios, QtWebEngine will log "Network service crashed,
1349 ## restarting service." and only display a blank page. However, It is
1350 ## expected that distributions shipping QtWebEngine 5.15.3 follow up with
1351 ## a proper fix soon, so it is disabled by default.
1353 # c.qt.workarounds.locale = False
1355 ## Delete the QtWebEngine Service Worker directory on every start. This
1356 ## workaround can help with certain crashes caused by an unknown
1357 ## QtWebEngine bug related to Service Workers. Those crashes happen
1358 ## seemingly immediately on Windows; after one hour of operation on other
1359 ## systems. Note however that enabling this option *can lead to data
1360 ## loss* on some pages (as Service Worker data isn't persisted) and will
1361 ## negatively impact start-up time.
1363 # c.qt.workarounds.remove_service_workers = False
1365 ## When/how to show the scrollbar.
1368 ## - always: Always show the scrollbar.
1369 ## - never: Never show the scrollbar.
1370 ## - when-searching: Show the scrollbar when searching for text in the webpage. With the QtWebKit backend, this is equal to `never`.
1371 ## - overlay: Show an overlay scrollbar. On macOS, this is unavailable and equal to `when-searching`; with the QtWebKit backend, this is equal to `never`. Enabling/disabling overlay scrollbars requires a restart.
1372 # c.scrolling.bar = 'overlay'
1374 ## Enable smooth scrolling for web pages. Note smooth scrolling does not
1375 ## work with the `:scroll-px` command.
1377 # c.scrolling.smooth = False
1379 ## When to find text on a page case-insensitively.
1382 ## - always: Search case-insensitively.
1383 ## - never: Search case-sensitively.
1384 ## - smart: Search case-sensitively if there are capital characters.
1385 # c.search.ignore_case = 'smart'
1387 ## Find text on a page incrementally, renewing the search for each typed
1390 # c.search.incremental = True
1392 ## Wrap around at the top and bottom of the page when advancing through
1393 ## text matches using `:search-next` and `:search-prev`.
1395 # c.search.wrap = True
1397 ## Display messages when advancing through text matches at the top and
1398 ## bottom of the page, e.g. `Search hit TOP`.
1400 # c.search.wrap_messages = True
1402 ## Name of the session to save by default. If this is set to null, the
1403 ## session which was last loaded is saved.
1404 ## Type: SessionName
1405 # c.session.default_name = None
1407 ## Load a restored tab as soon as it takes focus.
1409 # c.session.lazy_restore = False
1411 ## Whether to automatically save a session when it is closed.
1413 # c.session.save_when_close = True
1415 ## Which sessions to load on startup. None will load the last saved
1416 ## sessions from the sate file, if you want to not load any sessions,
1417 ## pass an empty list.
1418 ## Type: List of String
1419 # c.session.startup_sessions = None
1421 ## Languages to use for spell checking. You can check for available
1422 ## languages and install dictionaries using scripts/dictcli.py. Run the
1423 ## script with -h/--help for instructions.
1424 ## Type: List of String
1426 ## - af-ZA: Afrikaans (South Africa)
1427 ## - bg-BG: Bulgarian (Bulgaria)
1428 ## - ca-ES: Catalan (Spain)
1429 ## - cs-CZ: Czech (Czech Republic)
1430 ## - da-DK: Danish (Denmark)
1431 ## - de-DE: German (Germany)
1432 ## - el-GR: Greek (Greece)
1433 ## - en-AU: English (Australia)
1434 ## - en-CA: English (Canada)
1435 ## - en-GB: English (United Kingdom)
1436 ## - en-US: English (United States)
1437 ## - es-ES: Spanish (Spain)
1438 ## - et-EE: Estonian (Estonia)
1439 ## - fa-IR: Farsi (Iran)
1440 ## - fo-FO: Faroese (Faroe Islands)
1441 ## - fr-FR: French (France)
1442 ## - he-IL: Hebrew (Israel)
1443 ## - hi-IN: Hindi (India)
1444 ## - hr-HR: Croatian (Croatia)
1445 ## - hu-HU: Hungarian (Hungary)
1446 ## - id-ID: Indonesian (Indonesia)
1447 ## - it-IT: Italian (Italy)
1449 ## - lt-LT: Lithuanian (Lithuania)
1450 ## - lv-LV: Latvian (Latvia)
1451 ## - nb-NO: Norwegian (Norway)
1452 ## - nl-NL: Dutch (Netherlands)
1453 ## - pl-PL: Polish (Poland)
1454 ## - pt-BR: Portuguese (Brazil)
1455 ## - pt-PT: Portuguese (Portugal)
1456 ## - ro-RO: Romanian (Romania)
1457 ## - ru-RU: Russian (Russia)
1458 ## - sh: Serbo-Croatian
1459 ## - sk-SK: Slovak (Slovakia)
1460 ## - sl-SI: Slovenian (Slovenia)
1463 ## - sv-SE: Swedish (Sweden)
1464 ## - ta-IN: Tamil (India)
1465 ## - tg-TG: Tajik (Tajikistan)
1466 ## - tr-TR: Turkish (Turkey)
1467 ## - uk-UA: Ukrainian (Ukraine)
1468 ## - vi-VN: Vietnamese (Viet Nam)
1469 c
.spellcheck
.languages
= ['en-GB']
1471 ## Padding (in pixels) for the statusbar.
1473 # c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 0}
1475 ## Position of the status bar.
1476 ## Type: VerticalPosition
1480 # c.statusbar.position = 'bottom'
1482 ## When to show the statusbar.
1485 ## - always: Always show the statusbar.
1486 ## - never: Always hide the statusbar.
1487 ## - in-mode: Show the statusbar when in modes other than normal mode.
1488 # c.statusbar.show = 'always'
1490 ## List of widgets displayed in the statusbar.
1491 ## Type: List of StatusbarWidget
1493 ## - url: Current page URL.
1494 ## - scroll: Percentage of the current page position like `10%`.
1495 ## - scroll_raw: Raw percentage of the current page position like `10`.
1496 ## - history: Display an arrow when possible to go back/forward in history.
1497 ## - search_match: A match count when searching, e.g. `Match [2/10]`.
1498 ## - tabs: Current active tab, e.g. `2`.
1499 ## - keypress: Display pressed keys when composing a vi command.
1500 ## - progress: Progress bar for the current page loading.
1501 ## - text:foo: Display the static text after the colon, `foo` in the example.
1502 ## - clock: Display current time. The format can be changed by adding a format string via `clock:...`. For supported format strings, see https://docs.python.org/3/library/datetime.html#strftime-and-strptime-format-codes[the Python datetime documentation].
1503 # c.statusbar.widgets = ['keypress', 'search_match', 'url', 'scroll', 'history', 'tabs', 'progress']
1505 ## Open new tabs (middleclick/ctrl+click) in the background.
1507 # c.tabs.background = True
1509 ## Mouse button with which to close tabs.
1512 ## - right: Close tabs on right-click.
1513 ## - middle: Close tabs on middle-click.
1514 ## - none: Don't close tabs using the mouse.
1515 # c.tabs.close_mouse_button = 'middle'
1517 ## How to behave when the close mouse button is pressed on the tab bar.
1520 ## - new-tab: Open a new tab.
1521 ## - close-current: Close the current tab.
1522 ## - close-last: Close the last tab.
1523 ## - ignore: Don't do anything.
1524 # c.tabs.close_mouse_button_on_bar = 'new-tab'
1526 ## Scaling factor for favicons in the tab bar. The tab size is unchanged,
1527 ## so big favicons also require extra `tabs.padding`.
1529 # c.tabs.favicons.scale = 1.0
1531 ## When to show favicons in the tab bar. When switching this from never
1532 ## to always/pinned, note that favicons might not be loaded yet, thus
1533 ## tabs might require a reload to display them.
1536 ## - always: Always show favicons.
1537 ## - never: Always hide favicons.
1538 ## - pinned: Show favicons only on pinned tabs.
1539 # c.tabs.favicons.show = 'always'
1541 ## Maximum stack size to remember for tab switches (-1 for no maximum).
1543 # c.tabs.focus_stack_size = 10
1545 ## Padding (in pixels) for tab indicators.
1547 # c.tabs.indicator.padding = {'top': 2, 'bottom': 2, 'left': 0, 'right': 4}
1549 ## Width (in pixels) of the progress indicator (0 to disable).
1551 # c.tabs.indicator.width = 3
1553 ## How to behave when the last tab is closed. If the
1554 ## `tabs.tabs_are_windows` setting is set, this is ignored and the
1555 ## behavior is always identical to the `close` value.
1558 ## - ignore: Don't do anything.
1559 ## - blank: Load a blank page.
1560 ## - startpage: Load the start page.
1561 ## - default-page: Load the default page.
1562 ## - close: Close the window.
1563 # c.tabs.last_close = 'ignore'
1565 ## Maximum width (in pixels) of tabs (-1 for no maximum). This setting
1566 ## only applies when tabs are horizontal. This setting does not apply to
1567 ## pinned tabs, unless `tabs.pinned.shrink` is False. This setting may
1568 ## not apply properly if max_width is smaller than the minimum size of
1569 ## tab contents, or smaller than tabs.min_width.
1571 # c.tabs.max_width = -1
1573 ## Minimum width (in pixels) of tabs (-1 for the default minimum size
1574 ## behavior). This setting only applies when tabs are horizontal. This
1575 ## setting does not apply to pinned tabs, unless `tabs.pinned.shrink` is
1578 # c.tabs.min_width = -1
1580 ## When switching tabs, what input mode is applied.
1583 ## - persist: Retain the current mode.
1584 ## - restore: Restore previously saved mode.
1585 ## - normal: Always revert to normal mode.
1586 # c.tabs.mode_on_change = 'normal'
1588 ## Switch between tabs using the mouse wheel.
1590 # c.tabs.mousewheel_switching = True
1592 ## Position of new tabs opened from another tab. See
1593 ## `tabs.new_position.stacking` for controlling stacking behavior.
1594 ## Type: NewTabPosition
1596 ## - prev: Before the current tab.
1597 ## - next: After the current tab.
1598 ## - first: At the beginning.
1599 ## - last: At the end.
1600 # c.tabs.new_position.related = 'next'
1602 ## Stack related tabs on top of each other when opened consecutively.
1603 ## Only applies for `next` and `prev` values of
1604 ## `tabs.new_position.related` and `tabs.new_position.unrelated`.
1606 # c.tabs.new_position.stacking = True
1608 ## Position of new tabs which are not opened from another tab. See
1609 ## `tabs.new_position.stacking` for controlling stacking behavior.
1610 ## Type: NewTabPosition
1612 ## - prev: Before the current tab.
1613 ## - next: After the current tab.
1614 ## - first: At the beginning.
1615 ## - last: At the end.
1616 c
.tabs
.new_position
.unrelated
= 'next'
1618 ## Padding (in pixels) around text for tabs.
1620 # c.tabs.padding = {'top': 0, 'bottom': 0, 'left': 5, 'right': 5}
1622 ## Force pinned tabs to stay at fixed URL.
1624 # c.tabs.pinned.frozen = True
1626 ## Shrink pinned tabs down to their contents.
1628 # c.tabs.pinned.shrink = True
1630 ## Position of the tab bar.
1637 # c.tabs.position = 'top'
1639 ## Which tab to select when the focused tab is removed.
1640 ## Type: SelectOnRemove
1642 ## - prev: Select the tab which came before the closed one (left in horizontal, above in vertical).
1643 ## - next: Select the tab which came after the closed one (right in horizontal, below in vertical).
1644 ## - last-used: Select the previously selected tab.
1645 c
.tabs
.select_on_remove
= 'prev'
1647 ## When to show the tab bar.
1650 ## - always: Always show the tab bar.
1651 ## - never: Always hide the tab bar.
1652 ## - multiple: Hide the tab bar if only one tab is open.
1653 ## - switching: Show the tab bar when switching tabs.
1654 # c.tabs.show = 'always'
1656 ## Duration (in milliseconds) to show the tab bar before hiding it when
1657 ## tabs.show is set to 'switching'.
1659 # c.tabs.show_switching_delay = 800
1661 ## Open a new window for every tab.
1663 # c.tabs.tabs_are_windows = False
1665 ## Alignment of the text inside of tabs.
1666 ## Type: TextAlignment
1671 # c.tabs.title.alignment = 'left'
1673 ## Position of ellipsis in truncated title of tabs.
1674 ## Type: ElidePosition
1680 # c.tabs.title.elide = 'right'
1682 ## Format to use for the tab title. The following placeholders are
1684 ## * `{perc}`: Percentage as a string like `[10%]`.
1685 ## * `{perc_raw}`: Raw percentage, e.g. `10`.
1686 ## * `{current_title}`: Title of the current web page.
1687 ## * `{title_sep}`: The string `" - "` if a title is set, empty otherwise.
1688 ## * `{index}`: Index of this tab.
1689 ## * `{aligned_index}`: Index of this tab padded with spaces to have the same width.
1690 ## * `{relative_index}`: Index of this tab relative to the current tab.
1691 ## * `{id}`: Internal tab ID of this tab.
1692 ## * `{scroll_pos}`: Page scroll position.
1693 ## * `{host}`: Host of the current web page.
1694 ## * `{backend}`: Either `webkit` or `webengine`
1695 ## * `{private}`: Indicates when private mode is enabled.
1696 ## * `{current_url}`: URL of the current web page.
1697 ## * `{protocol}`: Protocol (http/https/...) of the current web page.
1698 ## * `{audio}`: Indicator for audio/mute status.
1699 ## Type: FormatString
1700 # c.tabs.title.format = '{audio}{index}: {current_title}'
1702 ## Format to use for the tab title for pinned tabs. The same placeholders
1703 ## like for `tabs.title.format` are defined.
1704 ## Type: FormatString
1705 # c.tabs.title.format_pinned = '{index}'
1707 ## Show tooltips on tabs. Note this setting only affects windows opened
1708 ## after it has been set.
1710 # c.tabs.tooltips = True
1712 ## Number of closed tabs (per window) and closed windows to remember for
1713 ## :undo (-1 for no maximum).
1715 # c.tabs.undo_stack_size = 100
1717 ## Width (in pixels or as percentage of the window) of the tab bar if
1720 # c.tabs.width = '15%'
1722 ## Wrap when changing tabs.
1724 # c.tabs.wrap = True
1726 ## What search to start when something else than a URL is entered.
1729 ## - naive: Use simple/naive check.
1730 ## - dns: Use DNS requests (might be slow!).
1731 ## - never: Never search automatically.
1732 ## - schemeless: Always search automatically unless URL explicitly contains a scheme.
1733 # c.url.auto_search = 'naive'
1735 ## Page to open if :open -t/-b/-w is used without URL. Use `about:blank`
1736 ## for a blank page.
1738 # c.url.default_page = 'https://start.duckduckgo.com/'
1740 ## URL segments where `:navigate increment/decrement` will search for a
1749 # c.url.incdec_segments = ['path', 'query']
1751 ## Open base URL of the searchengine if a searchengine shortcut is
1752 ## invoked without parameters.
1754 # c.url.open_base_url = False
1756 ## Search engines which can be used via the address bar. Maps a search
1757 ## engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`
1758 ## placeholder. The placeholder will be replaced by the search term, use
1759 ## `{{` and `}}` for literal `{`/`}` braces. The following further
1760 ## placeholds are defined to configure how special characters in the
1761 ## search terms are replaced by safe characters (called 'quoting'):
1762 ## * `{}` and `{semiquoted}` quote everything except slashes; this is the
1763 ## most sensible choice for almost all search engines (for the search
1764 ## term `slash/and&` this placeholder expands to `slash/and%26amp`).
1765 ## * `{quoted}` quotes all characters (for `slash/and&` this
1766 ## placeholder expands to `slash%2Fand%26amp`).
1767 ## * `{unquoted}` quotes nothing (for `slash/and&` this placeholder
1768 ## expands to `slash/and&`).
1769 ## * `{0}` means the same as `{}`, but can be used multiple times. The search
1770 ## engine named `DEFAULT` is used when
1771 ## `url.auto_search` is turned on and something else than a URL was
1772 ## entered to be opened. Other search engines can be used by prepending
1773 ## the search engine name to the search term, e.g. `:open google
1776 c
.url
.searchengines
= {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}
',
1777 'ddg
': 'https
://duckduckgo
.com
/?t
=chakra
&q
={}',
1778 'cdda
': 'https
://nornagon
.github
.io
/cdda
-guide
/?v
=0.F
-2#/search/{}',
1779 'std': 'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
1780 'hoogle': 'https://hoogle.haskell.org/?hoogle={}',
1781 'h': 'https://hoogle.haskell.org/?hoogle={}',
1782 'fpp/slack': 'https://focalpointpositioning.slack.com/messages/{}',
1783 'fpp/confluence': 'https://fppnt.atlassian.net/wiki/search?text={}',
1784 'evk': 'https://gitlab.com/search?&scope=issues&group_id=13301433&search={}',
1785 'dev': 'https://devdocs.io/#q={}',
1786 'phind': 'https://www.phind.com/search?q={}',
1789 ## Page(s) to open at the start.
1790 ## Type: List of FuzzyUrl, or FuzzyUrl
1791 # c.url.start_pages = ['https://start.duckduckgo.com']
1793 ## URL parameters to strip with `:yank url`.
1794 ## Type: List of String
1795 # c.url.yank_ignored_parameters = ['ref', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
1797 ## Hide the window decoration. This setting requires a restart on
1800 # c.window.hide_decoration = False
1802 ## Format to use for the window title. The same placeholders like for
1803 ## `tabs.title.format` are defined.
1804 ## Type: FormatString
1805 # c.window.title_format = '{perc}{current_title}{title_sep}qutebrowser'
1807 ## Set the main window background to transparent. This allows having a
1808 ## transparent tab- or statusbar (might require a compositor such as
1809 ## picom). However, it breaks some functionality such as dmenu embedding
1810 ## via its `-w` option. On some systems, it was additionally reported
1811 ## that main window transparency negatively affects performance. Note
1812 ## this setting only affects windows opened after setting it.
1814 # c.window.transparent = False
1816 ## Default zoom level.
1818 # c.zoom.default = '100%'
1820 ## Available zoom levels.
1821 ## Type: List of Perc
1822 # c.zoom.levels = ['25%', '33%', '50%', '67%', '75%', '90%', '100%', '110%', '125%', '150%', '175%', '200%', '250%', '300%', '400%', '500%']
1824 ## Number of zoom increments to divide the mouse wheel movements to.
1826 # c.zoom.mouse_divider = 512
1828 ## Apply the zoom factor on a frame only to the text or to all content.
1830 # c.zoom.text_only = False
1832 ## Bindings for normal mode
1833 # config.bind("'", 'mode-enter jump_mark')
1834 # config.bind('+', 'zoom-in')
1835 # config.bind('-', 'zoom-out')
1836 # config.bind('.', 'repeat-command')
1837 # config.bind('/', 'set-cmd-text /')
1838 # config.bind(':', 'set-cmd-text :')
1839 # config.bind(';I', 'hint images tab')
1840 # config.bind(';O', 'hint links fill :open -t -r {hint-url}')
1841 # config.bind(';R', 'hint --rapid links window')
1842 # config.bind(';Y', 'hint links yank-primary')
1843 # config.bind(';b', 'hint all tab-bg')
1844 # config.bind(';d', 'hint links download')
1845 # config.bind(';f', 'hint all tab-fg')
1846 # config.bind(';h', 'hint all hover')
1847 # config.bind(';i', 'hint images')
1848 # config.bind(';o', 'hint links fill :open {hint-url}')
1849 # config.bind(';r', 'hint --rapid links tab-bg')
1850 # config.bind(';t', 'hint inputs')
1851 # config.bind(';y', 'hint links yank')
1852 # config.bind('<Alt-1>', 'tab-focus 1')
1853 # config.bind('<Alt-2>', 'tab-focus 2')
1854 # config.bind('<Alt-3>', 'tab-focus 3')
1855 # config.bind('<Alt-4>', 'tab-focus 4')
1856 # config.bind('<Alt-5>', 'tab-focus 5')
1857 # config.bind('<Alt-6>', 'tab-focus 6')
1858 # config.bind('<Alt-7>', 'tab-focus 7')
1859 # config.bind('<Alt-8>', 'tab-focus 8')
1860 # config.bind('<Alt-9>', 'tab-focus -1')
1861 # config.bind('<Alt-m>', 'tab-mute')
1862 # config.bind('<Ctrl-A>', 'navigate increment')
1863 # config.bind('<Ctrl-Alt-p>', 'print')
1864 # config.bind('<Ctrl-B>', 'scroll-page 0 -1')
1865 # config.bind('<Ctrl-D>', 'scroll-page 0 0.5')
1866 # config.bind('<Ctrl-F5>', 'reload -f')
1867 # config.bind('<Ctrl-F>', 'scroll-page 0 1')
1868 # config.bind('<Ctrl-N>', 'open -w')
1869 # config.bind('<Ctrl-PgDown>', 'tab-next')
1870 # config.bind('<Ctrl-PgUp>', 'tab-prev')
1871 # config.bind('<Ctrl-Q>', 'quit')
1872 # config.bind('<Ctrl-Return>', 'selection-follow -t')
1873 # config.bind('<Ctrl-Shift-N>', 'open -p')
1874 # config.bind('<Ctrl-Shift-T>', 'undo')
1875 # config.bind('<Ctrl-Shift-Tab>', 'nop')
1876 # config.bind('<Ctrl-Shift-W>', 'close')
1877 # config.bind('<Ctrl-T>', 'open -t')
1878 # config.bind('<Ctrl-Tab>', 'tab-focus last')
1879 # config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')
1880 # config.bind('<Ctrl-V>', 'mode-enter passthrough')
1881 # config.bind('<Ctrl-W>', 'tab-close')
1882 # config.bind('<Ctrl-X>', 'navigate decrement')
1883 # config.bind('<Ctrl-^>', 'tab-focus last')
1884 # config.bind('<Ctrl-h>', 'home')
1885 # config.bind('<Ctrl-p>', 'tab-pin')
1886 # config.bind('<Ctrl-s>', 'stop')
1887 config
.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave ;; fake-key <Escape>')
1888 # config.bind('<F11>', 'fullscreen')
1889 # config.bind('<F5>', 'reload')
1890 # config.bind('<Return>', 'selection-follow')
1891 # config.bind('<back>', 'back')
1892 # config.bind('<forward>', 'forward')
1893 # config.bind('=', 'zoom')
1894 # config.bind('?', 'set-cmd-text ?')
1895 # config.bind('@', 'macro-run')
1896 # config.bind('B', 'set-cmd-text -s :quickmark-load -t')
1897 # config.bind('D', 'tab-close -o')
1898 # config.bind('F', 'hint all tab')
1899 # config.bind('G', 'scroll-to-perc')
1900 # config.bind('H', 'back')
1901 config
.bind('K', 'tab-next')
1902 config
.bind('J', 'tab-prev')
1903 # config.bind('L', 'forward')
1904 # config.bind('M', 'bookmark-add')
1905 # config.bind('N', 'search-prev')
1906 # config.bind('O', 'set-cmd-text -s :open -t')
1907 # config.bind('PP', 'open -t -- {primary}')
1908 # config.bind('Pp', 'open -t -- {clipboard}')
1909 # config.bind('R', 'reload -f')
1910 # config.bind('Sb', 'bookmark-list --jump')
1911 # config.bind('Sh', 'history')
1912 # config.bind('Sq', 'bookmark-list')
1913 # config.bind('Ss', 'set')
1914 # config.bind('T', 'set-cmd-text -sr :tab-focus')
1915 # config.bind('U', 'undo -w')
1916 # config.bind('V', 'mode-enter caret ;; selection-toggle --line')
1917 # config.bind('ZQ', 'quit')
1918 # config.bind('ZZ', 'quit --save')
1919 # config.bind('[[', 'navigate prev')
1920 # config.bind(']]', 'navigate next')
1921 # config.bind('`', 'mode-enter set_mark')
1922 # config.bind('ad', 'download-cancel')
1923 # config.bind('b', 'set-cmd-text -s :quickmark-load')
1924 # config.bind('cd', 'download-clear')
1926 config
.bind('co', 'download-open')
1927 # config.bind('d', 'tab-close')
1928 # config.bind('f', 'hint')
1929 # config.bind('g$', 'tab-focus -1')
1930 # config.bind('g0', 'tab-focus 1')
1931 # config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
1932 # config.bind('gC', 'tab-clone')
1933 # config.bind('gD', 'tab-give')
1934 # config.bind('gJ', 'tab-move +')
1935 # config.bind('gK', 'tab-move -')
1936 # config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
1937 # config.bind('gU', 'navigate up -t')
1938 # config.bind('g^', 'tab-focus 1')
1939 # config.bind('ga', 'open -t')
1940 # config.bind('gb', 'set-cmd-text -s :bookmark-load')
1941 # config.bind('gd', 'download')
1942 # config.bind('gf', 'view-source')
1943 # config.bind('gg', 'scroll-to-perc 0')
1944 # config.bind('gi', 'hint inputs --first')
1945 config
.bind('gl', 'tab-move -')
1946 # config.bind('gm', 'tab-move')
1947 # config.bind('go', 'set-cmd-text :open {url:pretty}')
1948 config
.bind('gr', 'tab-move +')
1949 # config.bind('gt', 'set-cmd-text -s :tab-select')
1950 # config.bind('gu', 'navigate up')
1951 # config.bind('h', 'scroll left')
1952 # config.bind('i', 'mode-enter insert')
1953 # config.bind('j', 'scroll down')
1954 # config.bind('k', 'scroll up')
1955 # config.bind('l', 'scroll right')
1956 config
.bind('m', 'spawn mpv {url}')
1957 # TODO: add hints.selector for ytdl compatible links
1958 config
.bind('M', 'hint links spawn mpv {hint-url}')
1959 # config.bind('n', 'search-next')
1960 # config.bind('o', 'set-cmd-text -s :open')
1961 # config.bind('pP', 'open -- {primary}')
1962 # config.bind('pp', 'open -- {clipboard}')
1963 # config.bind('q', 'macro-record')
1964 # config.bind('r', 'reload')
1965 # config.bind('sf', 'save')
1966 # config.bind('sk', 'set-cmd-text -s :bind')
1967 # config.bind('sl', 'set-cmd-text -s :set -t')
1968 # config.bind('ss', 'set-cmd-text -s :set')
1969 config
.bind('sq', 'quickmark-save')
1970 config
.bind('tCh', 'spawn --userscript config-cycle-tld -p content.cookies.accept no-3rdparty never all;; reload')
1971 config
.bind('tch', 'spawn --userscript config-cycle-tld -p -t content.cookies.accept no-3rdparty never all;; reload')
1972 config
.bind('tGh', 'spawn --userscript config-cycle-tld -p content.geolocation ;; reload')
1973 config
.bind('tgh', 'spawn --userscript config-cycle-tld -p -t content.geolocation ;; reload')
1974 # config.bind('tIH', 'config-cycle -p -u *://*.{url:host}/* content.images ;; reload')
1975 # config.bind('tIh', 'config-cycle -p -u *://{url:host}/* content.images ;; reload')
1976 # config.bind('tIu', 'config-cycle -p -u {url} content.images ;; reload')
1977 # config.bind('tPH', 'config-cycle -p -u *://*.{url:host}/* content.plugins ;; reload')
1978 # config.bind('tPh', 'config-cycle -p -u *://{url:host}/* content.plugins ;; reload')
1979 # config.bind('tPu', 'config-cycle -p -u {url} content.plugins ;; reload')
1980 # config.bind('tSH', 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload')
1981 # config.bind('tSh', 'config-cycle -p -u *://{url:host}/* content.javascript.enabled ;; reload')
1982 # config.bind('tSu', 'config-cycle -p -u {url} content.javascript.enabled ;; reload')
1983 # config.bind('th', 'back -t')
1984 # config.bind('tiH', 'config-cycle -p -t -u *://*.{url:host}/* content.images ;; reload')
1985 # config.bind('tih', 'config-cycle -p -t -u *://{url:host}/* content.images ;; reload')
1986 # config.bind('tiu', 'config-cycle -p -t -u {url} content.images ;; reload')
1987 # config.bind('tl', 'forward -t')
1988 # config.bind('tpH', 'config-cycle -p -t -u *://*.{url:host}/* content.plugins ;; reload')
1989 # config.bind('tph', 'config-cycle -p -t -u *://{url:host}/* content.plugins ;; reload')
1990 # config.bind('tpu', 'config-cycle -p -t -u {url} content.plugins ;; reload')
1991 # config.bind('tsH', 'config-cycle -p -t -u *://*.{url:host}/* content.javascript.enabled ;; reload')
1992 # config.bind('tsh', 'config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload')
1993 # config.bind('tsu', 'config-cycle -p -t -u {url} content.javascript.enabled ;; reload')
1994 # config.bind('u', 'undo')
1995 # config.bind('v', 'mode-enter caret')
1996 # config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
1997 # config.bind('wIf', 'devtools-focus')
1998 # config.bind('wIh', 'devtools left')
1999 # config.bind('wIj', 'devtools bottom')
2000 # config.bind('wIk', 'devtools top')
2001 # config.bind('wIl', 'devtools right')
2002 # config.bind('wIw', 'devtools window')
2003 # config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
2004 # config.bind('wP', 'open -w -- {primary}')
2005 # config.bind('wb', 'set-cmd-text -s :quickmark-load -w')
2006 # config.bind('wf', 'hint all window')
2007 # config.bind('wh', 'back -w')
2008 # config.bind('wi', 'devtools')
2009 # config.bind('wl', 'forward -w')
2010 # config.bind('wo', 'set-cmd-text -s :open -w')
2011 # config.bind('wp', 'open -w -- {clipboard}')
2012 # config.bind('xO', 'set-cmd-text :open -b -r {url:pretty}')
2013 # config.bind('xo', 'set-cmd-text -s :open -b')
2014 # config.bind('yD', 'yank domain -s')
2015 # config.bind('yM', 'yank inline [{title}]({url}) -s')
2016 # config.bind('yP', 'yank pretty-url -s')
2017 # config.bind('yT', 'yank title -s')
2018 # config.bind('yY', 'yank -s')
2019 # config.bind('yd', 'yank domain')
2020 # config.bind('ym', 'yank inline [{title}]({url})')
2021 # config.bind('yp', 'yank pretty-url')
2022 # config.bind('yt', 'yank title')
2023 # config.bind('yy', 'yank')
2024 config
.bind('zl', 'spawn --userscript qute-pass')
2025 config
.bind('zul', 'spawn --userscript qute-pass --username-only')
2026 config
.bind('zpl', 'spawn --userscript qute-pass --password-only')
2027 config
.bind('zol', 'spawn --userscript qute-pass --otp-only')
2028 config
.bind('zal', 'spawn --userscript qute-pass --unfiltered')
2029 config
.bind('zaul', 'spawn --userscript qute-pass --unfiltered --username-only')
2030 config
.bind('zapl', 'spawn --userscript qute-pass --unfiltered --password-only')
2031 config
.bind('zaol', 'spawn --userscript qute-pass --unfiltered --otp-only')
2032 # config.bind('{{', 'navigate prev -t')
2033 # config.bind('}}', 'navigate next -t')
2035 ## Bindings for caret mode
2036 # config.bind('$', 'move-to-end-of-line', mode='caret')
2037 # config.bind('0', 'move-to-start-of-line', mode='caret')
2038 # config.bind('<Ctrl-Space>', 'selection-drop', mode='caret')
2039 # config.bind('<Escape>', 'mode-leave', mode='caret')
2040 # config.bind('<Return>', 'yank selection', mode='caret')
2041 # config.bind('<Space>', 'selection-toggle', mode='caret')
2042 # config.bind('G', 'move-to-end-of-document', mode='caret')
2043 # config.bind('H', 'scroll left', mode='caret')
2044 # config.bind('J', 'scroll down', mode='caret')
2045 # config.bind('K', 'scroll up', mode='caret')
2046 # config.bind('L', 'scroll right', mode='caret')
2047 # config.bind('V', 'selection-toggle --line', mode='caret')
2048 # config.bind('Y', 'yank selection -s', mode='caret')
2049 # config.bind('[', 'move-to-start-of-prev-block', mode='caret')
2050 # config.bind(']', 'move-to-start-of-next-block', mode='caret')
2051 # config.bind('b', 'move-to-prev-word', mode='caret')
2052 # config.bind('c', 'mode-enter normal', mode='caret')
2053 # config.bind('e', 'move-to-end-of-word', mode='caret')
2054 # config.bind('gg', 'move-to-start-of-document', mode='caret')
2055 # config.bind('h', 'move-to-prev-char', mode='caret')
2056 # config.bind('j', 'move-to-next-line', mode='caret')
2057 # config.bind('k', 'move-to-prev-line', mode='caret')
2058 # config.bind('l', 'move-to-next-char', mode='caret')
2059 # config.bind('o', 'selection-reverse', mode='caret')
2060 # config.bind('v', 'selection-toggle', mode='caret')
2061 # config.bind('w', 'move-to-next-word', mode='caret')
2062 # config.bind('y', 'yank selection', mode='caret')
2063 # config.bind('{', 'move-to-end-of-prev-block', mode='caret')
2064 # config.bind('}', 'move-to-end-of-next-block', mode='caret')
2066 ## Bindings for command mode
2067 # config.bind('<Alt-B>', 'rl-backward-word', mode='command')
2068 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
2069 # config.bind('<Alt-D>', 'rl-kill-word', mode='command')
2070 # config.bind('<Alt-F>', 'rl-forward-word', mode='command')
2071 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
2072 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
2073 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
2074 # config.bind('<Ctrl-C>', 'completion-item-yank', mode='command')
2075 # config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
2076 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
2077 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
2078 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
2079 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')
2080 # config.bind('<Ctrl-N>', 'command-history-next', mode='command')
2081 # config.bind('<Ctrl-P>', 'command-history-prev', mode='command')
2082 # config.bind('<Ctrl-Return>', 'command-accept --rapid', mode='command')
2083 # config.bind('<Ctrl-Shift-C>', 'completion-item-yank --sel', mode='command')
2084 # config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
2085 # config.bind('<Ctrl-Shift-W>', 'rl-filename-rubout', mode='command')
2086 # config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
2087 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
2088 # config.bind('<Ctrl-W>', 'rl-rubout " "', mode='command')
2089 # config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
2090 # config.bind('<Down>', 'completion-item-focus --history next', mode='command')
2091 # config.bind('<Escape>', 'mode-leave', mode='command')
2092 # config.bind('<PgDown>', 'completion-item-focus next-page', mode='command')
2093 # config.bind('<PgUp>', 'completion-item-focus prev-page', mode='command')
2094 # config.bind('<Return>', 'command-accept', mode='command')
2095 # config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
2096 # config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
2097 # config.bind('<Tab>', 'completion-item-focus next', mode='command')
2098 # config.bind('<Up>', 'completion-item-focus --history prev', mode='command')
2100 ## Bindings for hint mode
2101 # config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')
2102 # config.bind('<Ctrl-F>', 'hint links', mode='hint')
2103 # config.bind('<Ctrl-R>', 'hint --rapid links tab-bg', mode='hint')
2104 # config.bind('<Escape>', 'mode-leave', mode='hint')
2105 # config.bind('<Return>', 'hint-follow', mode='hint')
2107 ## Bindings for insert mode
2108 # config.bind('<Ctrl-E>', 'edit-text', mode='insert')
2109 # config.bind('<Escape>', 'mode-leave', mode='insert')
2110 # config.bind('<Shift-Escape>', 'fake-key <Escape>', mode='insert')
2111 # config.bind('<Shift-Ins>', 'insert-text -- {primary}', mode='insert')
2113 ## Bindings for passthrough mode
2114 # config.bind('<Shift-Escape>', 'mode-leave', mode='passthrough')
2116 ## Bindings for prompt mode
2117 # config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')
2118 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='prompt')
2119 # config.bind('<Alt-D>', 'rl-kill-word', mode='prompt')
2120 # config.bind('<Alt-E>', 'prompt-fileselect-external', mode='prompt')
2121 # config.bind('<Alt-F>', 'rl-forward-word', mode='prompt')
2122 # config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='prompt')
2123 # config.bind('<Alt-Y>', 'prompt-yank', mode='prompt')
2124 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='prompt')
2125 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='prompt')
2126 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='prompt')
2127 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='prompt')
2128 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='prompt')
2129 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='prompt')
2130 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='prompt')
2131 # config.bind('<Ctrl-P>', 'prompt-open-download --pdfjs', mode='prompt')
2132 # config.bind('<Ctrl-Shift-W>', 'rl-filename-rubout', mode='prompt')
2133 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='prompt')
2134 # config.bind('<Ctrl-W>', 'rl-rubout " "', mode='prompt')
2135 # config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
2136 # config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
2137 # config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
2138 # config.bind('<Escape>', 'mode-leave', mode='prompt')
2139 # config.bind('<Return>', 'prompt-accept', mode='prompt')
2140 # config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
2141 # config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
2142 # config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
2144 ## Bindings for register mode
2145 # config.bind('<Escape>', 'mode-leave', mode='register')
2147 ## Bindings for yesno mode
2148 # config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='yesno')
2149 # config.bind('<Alt-Y>', 'prompt-yank', mode='yesno')
2150 # config.bind('<Escape>', 'mode-leave', mode='yesno')
2151 # config.bind('<Return>', 'prompt-accept', mode='yesno')
2152 # config.bind('N', 'prompt-accept --save no', mode='yesno')
2153 # config.bind('Y', 'prompt-accept --save yes', mode='yesno')
2154 # config.bind('n', 'prompt-accept no', mode='yesno')
2155 # config.bind('y', 'prompt-accept yes', mode='yesno')
2157 config
.source('themes/nord-qutebrowser.py')