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