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