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