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