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