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