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