]> git.rmz.io Git - dotfiles.git/blob - qutebrowser/config.py
1fb0932fd024a43c0d75ea21b788e529d4bd3b3e
[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 'wq': 'quit --save',
17 'mpv': 'spawn --userscript ~/src/qutebrowser/misc/userscripts/view_in_mpv'
18 }
19
20 ## How often (in milliseconds) to auto-save config/cookies/etc.
21 ## Type: Int
22 # c.auto_save.interval = 15000
23
24 ## Always restore open sites when qutebrowser is reopened.
25 ## Type: Bool
26 c.auto_save.session = True
27
28 ## The backend to use to display websites. qutebrowser supports two
29 ## different web rendering engines / backends, QtWebKit and QtWebEngine.
30 ## QtWebKit was discontinued by the Qt project with Qt 5.6, but picked up
31 ## as a well maintained fork: https://github.com/annulen/webkit/wiki -
32 ## qutebrowser only supports the fork. QtWebEngine is Qt's official
33 ## successor to QtWebKit. It's slightly more resource hungry that
34 ## QtWebKit and has a couple of missing features in qutebrowser, but is
35 ## generally the preferred choice. This setting requires a restart.
36 ## Type: String
37 ## Valid values:
38 ## - webengine: Use QtWebEngine (based on Chromium)
39 ## - webkit: Use QtWebKit (based on WebKit, similar to Safari)
40 # c.backend = 'webengine'
41
42 ## This setting can be used to map keys to other keys. When the key used
43 ## as dictionary-key is pressed, the binding for the key used as
44 ## dictionary-value is invoked instead. This is useful for global
45 ## remappings of keys, for example to map Ctrl-[ to Escape. Note that
46 ## when a key is bound (via `bindings.default` or `bindings.commands`),
47 ## the mapping is ignored.
48 ## Type: Dict
49 # c.bindings.key_mappings = {'<Ctrl-6>': '<Ctrl-^>', '<Ctrl-[>': '<Escape>', '<Shift-Return>': '<Return>', '<Enter>': '<Return>', '<Shift-Enter>': '<Return>', '<Ctrl-J>': '<Return>', '<Ctrl-Enter>': '<Ctrl-Return>', '<Ctrl-M>': '<Return>'}
50
51 ## Background color of the completion widget category headers.
52 ## Type: QssColor
53 # c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050)'
54
55 ## Bottom border color of the completion widget category headers.
56 ## Type: QssColor
57 # c.colors.completion.category.border.bottom = 'black'
58
59 ## Top border color of the completion widget category headers.
60 ## Type: QssColor
61 # c.colors.completion.category.border.top = 'black'
62
63 ## Foreground color of completion widget category headers.
64 ## Type: QtColor
65 # c.colors.completion.category.fg = 'white'
66
67 ## Background color of the completion widget for even rows.
68 ## Type: QssColor
69 # c.colors.completion.even.bg = '#333333'
70
71 ## Text color of the completion widget.
72 ## Type: QtColor
73 # c.colors.completion.fg = 'white'
74
75 ## Background color of the selected completion item.
76 ## Type: QssColor
77 # c.colors.completion.item.selected.bg = '#e8c000'
78
79 ## Bottom border color of the selected completion item.
80 ## Type: QssColor
81 # c.colors.completion.item.selected.border.bottom = '#bbbb00'
82
83 ## Top border color of the completion widget category headers.
84 ## Type: QssColor
85 # c.colors.completion.item.selected.border.top = '#bbbb00'
86
87 ## Foreground color of the selected completion item.
88 ## Type: QtColor
89 # c.colors.completion.item.selected.fg = 'black'
90
91 ## Foreground color of the matched text in the completion.
92 ## Type: QssColor
93 # c.colors.completion.match.fg = '#ff4444'
94
95 ## Background color of the completion widget for odd rows.
96 ## Type: QssColor
97 # c.colors.completion.odd.bg = '#444444'
98
99 ## Color of the scrollbar in completion view
100 ## Type: QssColor
101 # c.colors.completion.scrollbar.bg = '#333333'
102
103 ## Color of the scrollbar handle in completion view.
104 ## Type: QssColor
105 # c.colors.completion.scrollbar.fg = 'white'
106
107 ## Background color for the download bar.
108 ## Type: QssColor
109 # c.colors.downloads.bar.bg = 'black'
110
111 ## Background color for downloads with errors.
112 ## Type: QtColor
113 # c.colors.downloads.error.bg = 'red'
114
115 ## Foreground color for downloads with errors.
116 ## Type: QtColor
117 # c.colors.downloads.error.fg = 'white'
118
119 ## Color gradient start for download backgrounds.
120 ## Type: QtColor
121 # c.colors.downloads.start.bg = '#0000aa'
122
123 ## Color gradient start for download text.
124 ## Type: QtColor
125 # c.colors.downloads.start.fg = 'white'
126
127 ## Color gradient stop for download backgrounds.
128 ## Type: QtColor
129 # c.colors.downloads.stop.bg = '#00aa00'
130
131 ## Color gradient end for download text.
132 ## Type: QtColor
133 # c.colors.downloads.stop.fg = 'white'
134
135 ## Color gradient interpolation system for download backgrounds.
136 ## Type: ColorSystem
137 ## Valid values:
138 ## - rgb: Interpolate in the RGB color system.
139 ## - hsv: Interpolate in the HSV color system.
140 ## - hsl: Interpolate in the HSL color system.
141 ## - none: Don't show a gradient.
142 # c.colors.downloads.system.bg = 'rgb'
143
144 ## Color gradient interpolation system for download text.
145 ## Type: ColorSystem
146 ## Valid values:
147 ## - rgb: Interpolate in the RGB color system.
148 ## - hsv: Interpolate in the HSV color system.
149 ## - hsl: Interpolate in the HSL color system.
150 ## - none: Don't show a gradient.
151 # c.colors.downloads.system.fg = 'rgb'
152
153 ## Background color for hints. Note that you can use a `rgba(...)` value
154 ## for transparency.
155 ## Type: QssColor
156 # 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))'
157
158 ## Font color for hints.
159 ## Type: QssColor
160 # c.colors.hints.fg = 'black'
161
162 ## Font color for the matched part of hints.
163 ## Type: QssColor
164 # c.colors.hints.match.fg = 'green'
165
166 ## Background color of the keyhint widget.
167 ## Type: QssColor
168 # c.colors.keyhint.bg = 'rgba(0, 0, 0, 80%)'
169
170 ## Text color for the keyhint widget.
171 ## Type: QssColor
172 # c.colors.keyhint.fg = '#FFFFFF'
173
174 ## Highlight color for keys to complete the current keychain.
175 ## Type: QssColor
176 # c.colors.keyhint.suffix.fg = '#FFFF00'
177
178 ## Background color of an error message.
179 ## Type: QssColor
180 # c.colors.messages.error.bg = 'red'
181
182 ## Border color of an error message.
183 ## Type: QssColor
184 # c.colors.messages.error.border = '#bb0000'
185
186 ## Foreground color of an error message.
187 ## Type: QssColor
188 # c.colors.messages.error.fg = 'white'
189
190 ## Background color of an info message.
191 ## Type: QssColor
192 # c.colors.messages.info.bg = 'black'
193
194 ## Border color of an info message.
195 ## Type: QssColor
196 # c.colors.messages.info.border = '#333333'
197
198 ## Foreground color an info message.
199 ## Type: QssColor
200 # c.colors.messages.info.fg = 'white'
201
202 ## Background color of a warning message.
203 ## Type: QssColor
204 # c.colors.messages.warning.bg = 'darkorange'
205
206 ## Border color of an error message.
207 ## Type: QssColor
208 # c.colors.messages.warning.border = '#d47300'
209
210 ## Foreground color a warning message.
211 ## Type: QssColor
212 # c.colors.messages.warning.fg = 'white'
213
214 ## Background color for prompts.
215 ## Type: QssColor
216 c.colors.prompts.bg = '#333333'
217
218 ## Border used around UI elements in prompts.
219 ## Type: String
220 # c.colors.prompts.border = '1px solid gray'
221
222 ## Foreground color for prompts.
223 ## Type: QssColor
224 # c.colors.prompts.fg = 'white'
225
226 ## Background color for the selected item in filename prompts.
227 ## Type: QssColor
228 # c.colors.prompts.selected.bg = 'grey'
229
230 ## Background color of the statusbar in caret mode.
231 ## Type: QssColor
232 # c.colors.statusbar.caret.bg = 'purple'
233
234 ## Foreground color of the statusbar in caret mode.
235 ## Type: QssColor
236 # c.colors.statusbar.caret.fg = 'white'
237
238 ## Background color of the statusbar in caret mode with a selection.
239 ## Type: QssColor
240 # c.colors.statusbar.caret.selection.bg = '#a12dff'
241
242 ## Foreground color of the statusbar in caret mode with a selection.
243 ## Type: QssColor
244 # c.colors.statusbar.caret.selection.fg = 'white'
245
246 ## Background color of the statusbar in command mode.
247 ## Type: QssColor
248 # c.colors.statusbar.command.bg = 'black'
249
250 ## Foreground color of the statusbar in command mode.
251 ## Type: QssColor
252 # c.colors.statusbar.command.fg = 'white'
253
254 ## Background color of the statusbar in private browsing + command mode.
255 ## Type: QssColor
256 # c.colors.statusbar.command.private.bg = 'grey'
257
258 ## Foreground color of the statusbar in private browsing + command mode.
259 ## Type: QssColor
260 # c.colors.statusbar.command.private.fg = 'white'
261
262 ## Background color of the statusbar in insert mode.
263 ## Type: QssColor
264 # c.colors.statusbar.insert.bg = 'darkgreen'
265
266 ## Foreground color of the statusbar in insert mode.
267 ## Type: QssColor
268 # c.colors.statusbar.insert.fg = 'white'
269
270 ## Background color of the statusbar.
271 ## Type: QssColor
272 # c.colors.statusbar.normal.bg = 'black'
273
274 ## Foreground color of the statusbar.
275 ## Type: QssColor
276 # c.colors.statusbar.normal.fg = 'white'
277
278 ## Background color of the statusbar in private browsing mode.
279 ## Type: QssColor
280 # c.colors.statusbar.private.bg = '#666666'
281
282 ## Foreground color of the statusbar in private browsing mode.
283 ## Type: QssColor
284 # c.colors.statusbar.private.fg = 'white'
285
286 ## Background color of the progress bar.
287 ## Type: QssColor
288 # c.colors.statusbar.progress.bg = 'white'
289
290 ## Foreground color of the URL in the statusbar on error.
291 ## Type: QssColor
292 # c.colors.statusbar.url.error.fg = 'orange'
293
294 ## Default foreground color of the URL in the statusbar.
295 ## Type: QssColor
296 # c.colors.statusbar.url.fg = 'white'
297
298 ## Foreground color of the URL in the statusbar for hovered links.
299 ## Type: QssColor
300 # c.colors.statusbar.url.hover.fg = 'aqua'
301
302 ## Foreground color of the URL in the statusbar on successful load
303 ## (http).
304 ## Type: QssColor
305 # c.colors.statusbar.url.success.http.fg = 'white'
306
307 ## Foreground color of the URL in the statusbar on successful load
308 ## (https).
309 ## Type: QssColor
310 # c.colors.statusbar.url.success.https.fg = 'lime'
311
312 ## Foreground color of the URL in the statusbar when there's a warning.
313 ## Type: QssColor
314 # c.colors.statusbar.url.warn.fg = 'yellow'
315
316 ## Background color of the tab bar.
317 ## Type: QtColor
318 # c.colors.tabs.bar.bg = '#555555'
319
320 ## Background color of unselected even tabs.
321 ## Type: QtColor
322 # c.colors.tabs.even.bg = 'darkgrey'
323
324 ## Foreground color of unselected even tabs.
325 ## Type: QtColor
326 # c.colors.tabs.even.fg = 'white'
327
328 ## Color for the tab indicator on errors.
329 ## Type: QtColor
330 # c.colors.tabs.indicator.error = '#ff0000'
331
332 ## Color gradient start for the tab indicator.
333 ## Type: QtColor
334 # c.colors.tabs.indicator.start = '#0000aa'
335
336 ## Color gradient end for the tab indicator.
337 ## Type: QtColor
338 # c.colors.tabs.indicator.stop = '#00aa00'
339
340 ## Color gradient interpolation system for the tab indicator.
341 ## Type: ColorSystem
342 ## Valid values:
343 ## - rgb: Interpolate in the RGB color system.
344 ## - hsv: Interpolate in the HSV color system.
345 ## - hsl: Interpolate in the HSL color system.
346 ## - none: Don't show a gradient.
347 # c.colors.tabs.indicator.system = 'rgb'
348
349 ## Background color of unselected odd tabs.
350 ## Type: QtColor
351 # c.colors.tabs.odd.bg = 'grey'
352
353 ## Foreground color of unselected odd tabs.
354 ## Type: QtColor
355 # c.colors.tabs.odd.fg = 'white'
356
357 ## Background color of selected even tabs.
358 ## Type: QtColor
359 # c.colors.tabs.selected.even.bg = 'black'
360
361 ## Foreground color of selected even tabs.
362 ## Type: QtColor
363 # c.colors.tabs.selected.even.fg = 'white'
364
365 ## Background color of selected odd tabs.
366 ## Type: QtColor
367 # c.colors.tabs.selected.odd.bg = 'black'
368
369 ## Foreground color of selected odd tabs.
370 ## Type: QtColor
371 # c.colors.tabs.selected.odd.fg = 'white'
372
373 ## Background color for webpages if unset (or empty to use the theme's
374 ## color)
375 ## Type: QtColor
376 # c.colors.webpage.bg = 'white'
377
378 ## How many commands to save in the command history. 0: no history / -1:
379 ## unlimited
380 ## Type: Int
381 # c.completion.cmd_history_max_items = 100
382
383 ## The height of the completion, in px or as percentage of the window.
384 ## Type: PercOrInt
385 c.completion.height = 150
386
387 ## Move on to the next part when there's only one possible completion
388 ## left.
389 ## Type: Bool
390 c.completion.quick = False
391
392 ## Padding of scrollbar handle in the completion window (in px).
393 ## Type: Int
394 # c.completion.scrollbar.padding = 2
395
396 ## Width of the scrollbar in the completion window (in px).
397 ## Type: Int
398 # c.completion.scrollbar.width = 12
399
400 ## When to show the autocompletion window.
401 ## Type: String
402 ## Valid values:
403 ## - always: Whenever a completion is available.
404 ## - auto: Whenever a completion is requested.
405 ## - never: Never.
406 # c.completion.show = 'always'
407
408 ## Shrink the completion to be smaller than the configured size if there
409 ## are no scrollbars.
410 ## Type: Bool
411 c.completion.shrink = True
412
413 ## How to format timestamps (e.g. for the history completion).
414 ## Type: TimestampTemplate
415 # c.completion.timestamp_format = '%Y-%m-%d'
416
417 ## How many URLs to show in the web history. 0: no history / -1:
418 ## unlimited
419 ## Type: Int
420 # c.completion.web_history_max_items = -1
421
422 ## Whether quitting the application requires a confirmation.
423 ## Type: ConfirmQuit
424 ## Valid values:
425 ## - always: Always show a confirmation.
426 ## - multiple-tabs: Show a confirmation if multiple tabs are opened.
427 ## - downloads: Show a confirmation if downloads are running
428 ## - never: Never show a confirmation.
429 c.confirm_quit = ['downloads']
430
431 ## Whether support for the HTML 5 web application cache feature is
432 ## enabled. An application cache acts like an HTTP cache in some sense.
433 ## For documents that use the application cache via JavaScript, the
434 ## loader engine will first ask the application cache for the contents,
435 ## before hitting the network.
436 ## Type: Bool
437 # c.content.cache.appcache = True
438
439 ## The maximum number of pages to hold in the global memory page cache.
440 ## The Page Cache allows for a nicer user experience when navigating
441 ## forth or back to pages in the forward/back history, by pausing and
442 ## resuming up to _n_ pages. For more information about the feature,
443 ## please refer to: http://webkit.org/blog/427/webkit-page-cache-i-the-
444 ## basics/
445 ## Type: Int
446 # c.content.cache.maximum_pages = 0
447
448 ## Size of the HTTP network cache. Null to use the default value.
449 ## Type: Int
450 # c.content.cache.size = None
451
452 ## Control which cookies to accept.
453 ## Type: String
454 ## Valid values:
455 ## - all: Accept all cookies.
456 ## - no-3rdparty: Accept cookies from the same origin only.
457 ## - no-unknown-3rdparty: Accept cookies from the same origin only, unless a cookie is already set for the domain.
458 ## - never: Don't accept cookies at all.
459 # c.content.cookies.accept = 'no-3rdparty'
460
461 ## Store cookies. Note this option needs a restart with QtWebEngine on Qt
462 ## < 5.9.
463 ## Type: Bool
464 # c.content.cookies.store = True
465
466 ## Default encoding to use for websites. The encoding must be a string
467 ## describing an encoding such as _utf-8_, _iso-8859-1_, etc.
468 ## Type: String
469 # c.content.default_encoding = 'iso-8859-1'
470
471 ## Enable extra tools for Web developers. This needs to be enabled for
472 ## `:inspector` to work and also adds an _Inspect_ entry to the context
473 ## menu. For QtWebEngine, see `--enable-webengine-inspector` in
474 ## `qutebrowser --help` instead.
475 ## Type: Bool
476 # c.content.developer_extras = False
477
478 ## Try to pre-fetch DNS entries to speed up browsing.
479 ## Type: Bool
480 # c.content.dns_prefetch = True
481
482 ## Expand each subframe to its contents. This will flatten all the frames
483 ## to become one scrollable page.
484 ## Type: Bool
485 # c.content.frame_flattening = False
486
487 ## Allow websites to request geolocations.
488 ## Type: BoolAsk
489 ## Valid values:
490 ## - true
491 ## - false
492 ## - ask
493 # c.content.geolocation = 'ask'
494
495 ## Value to send in the `Accept-Language` header.
496 ## Type: String
497 c.content.headers.accept_language = 'en-US,en,de,fr'
498
499 ## Set custom headers for qutebrowser HTTP requests.
500 ## Type: Dict
501 # c.content.headers.custom = {}
502
503 ## Value to send in the `DNT` header. When this is set to true,
504 ## qutebrowser asks websites to not track your identity. If set to null,
505 ## the DNT header is not sent at all.
506 ## Type: Bool
507 # c.content.headers.do_not_track = True
508
509 ## Send the Referer header. The Referer header tells websites from which
510 ## website you were coming from when visting them.
511 ## Type: String
512 ## Valid values:
513 ## - always: Always send the Referer.
514 ## - never: Never send the Referer. This is not recommended, as some sites may break.
515 ## - same-domain: Only send the Referer for the same domain. This will still protect your privacy, but shouldn't break any sites.
516 # c.content.headers.referer = 'same-domain'
517
518 ## User agent to send. Unset to send the default.
519 ## Type: String
520 # c.content.headers.user_agent = None
521
522 ## Whether host blocking is enabled.
523 ## Type: Bool
524 # c.content.host_blocking.enabled = True
525
526 ## List of URLs of lists which contain hosts to block. The file can be
527 ## in one of the following formats: - An `/etc/hosts`-like file - One
528 ## host per line - A zip-file of any of the above, with either only one
529 ## file, or a file named `hosts` (with any extension).
530 ## Type: List of Url
531 # c.content.host_blocking.lists = ['https://www.malwaredomainlist.com/hostslist/hosts.txt', 'http://someonewhocares.org/hosts/hosts', 'http://winhelp2002.mvps.org/hosts.zip', 'http://malwaredomains.lehigh.edu/files/justdomains.zip', 'https://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&mimetype=plaintext']
532
533 ## List of domains that should always be loaded, despite being ad-
534 ## blocked. Domains may contain * and ? wildcards and are otherwise
535 ## required to exactly match the requested domain. Local domains are
536 ## always exempt from hostblocking.
537 ## Type: List of String
538 # c.content.host_blocking.whitelist = ['piwik.org']
539
540 ## Enable or disable hyperlink auditing (`<a ping>`).
541 ## Type: Bool
542 # c.content.hyperlink_auditing = False
543
544 ## Whether images are automatically loaded in web pages.
545 ## Type: Bool
546 # c.content.images = True
547
548 ## Show javascript alerts.
549 ## Type: Bool
550 # c.content.javascript.alert = True
551
552 ## Whether JavaScript can read from or write to the clipboard. With
553 ## QtWebEngine, writing the clipboard as response to a user interaction
554 ## is always allowed.
555 ## Type: Bool
556 # c.content.javascript.can_access_clipboard = False
557
558 ## Whether JavaScript can close tabs.
559 ## Type: Bool
560 # c.content.javascript.can_close_tabs = False
561
562 ## Whether JavaScript can open new tabs without user interaction.
563 ## Type: Bool
564 # c.content.javascript.can_open_tabs_automatically = False
565
566 ## Enables or disables JavaScript.
567 ## Type: Bool
568 # c.content.javascript.enabled = True
569
570 ## Log levels to use for JavaScript console logging messages. When a
571 ## JavaScript message with the level given in the dictionary key is
572 ## logged, the corresponding dictionary value selects the qutebrowser
573 ## logger to use. On QtWebKit, the "unknown" setting is always used.
574 ## Type: Dict
575 # c.content.javascript.log = {'info': 'debug', 'warning': 'debug', 'error': 'debug', 'unknown': 'debug'}
576
577 ## Use the standard JavaScript modal dialog for `alert()` and `confirm()`
578 ## Type: Bool
579 # c.content.javascript.modal_dialog = False
580
581 ## Show javascript prompts.
582 ## Type: Bool
583 # c.content.javascript.prompt = True
584
585 ## Whether locally loaded documents are allowed to access other local
586 ## urls.
587 ## Type: Bool
588 # c.content.local_content_can_access_file_urls = True
589
590 ## Whether locally loaded documents are allowed to access remote urls.
591 ## Type: Bool
592 # c.content.local_content_can_access_remote_urls = False
593
594 ## Whether support for HTML 5 local storage and Web SQL is enabled.
595 ## Type: Bool
596 # c.content.local_storage = True
597
598 ## Allow websites to record audio/video.
599 ## Type: BoolAsk
600 ## Valid values:
601 ## - true
602 ## - false
603 ## - ask
604 # c.content.media_capture = 'ask'
605
606 ## Location of a netrc-file for HTTP authentication. If unset, `~/.netrc`
607 ## is used.
608 ## Type: File
609 # c.content.netrc_file = None
610
611 ## Allow websites to show notifications.
612 ## Type: BoolAsk
613 ## Valid values:
614 ## - true
615 ## - false
616 ## - ask
617 # c.content.notifications = 'ask'
618
619 ## Enable pdf.js to view PDF files in the browser. Note that the files
620 ## can still be downloaded by clicking the download button in the pdf.js
621 ## viewer.
622 ## Type: Bool
623 # c.content.pdfjs = False
624
625 ## Enables or disables plugins in Web pages.
626 ## Type: Bool
627 # c.content.plugins = False
628
629 ## Whether the background color and images are also drawn when the page
630 ## is printed.
631 ## Type: Bool
632 # c.content.print_element_backgrounds = True
633
634 ## Open new windows in private browsing mode which does not record
635 ## visited pages.
636 ## Type: Bool
637 # c.content.private_browsing = False
638
639 ## The proxy to use. In addition to the listed values, you can use a
640 ## `socks://...` or `http://...` URL.
641 ## Type: Proxy
642 ## Valid values:
643 ## - system: Use the system wide proxy.
644 ## - none: Don't use any proxy
645 # c.content.proxy = 'system'
646
647 ## Send DNS requests over the configured proxy.
648 ## Type: Bool
649 # c.content.proxy_dns_requests = True
650
651 ## Validate SSL handshakes.
652 ## Type: BoolAsk
653 ## Valid values:
654 ## - true
655 ## - false
656 ## - ask
657 # c.content.ssl_strict = 'ask'
658
659 ## A list of user stylesheet filenames to use.
660 ## Type: List of File, or File
661 # c.content.user_stylesheets = None
662
663 ## Enables or disables WebGL.
664 ## Type: Bool
665 # c.content.webgl = True
666
667 ## Whether load requests should be monitored for cross-site scripting
668 ## attempts. Suspicious scripts will be blocked and reported in the
669 ## inspector's JavaScript console. Enabling this feature might have an
670 ## impact on performance.
671 ## Type: Bool
672 # c.content.xss_auditing = False
673
674 ## The directory to save downloads to. If unset, a sensible os-specific
675 ## default is used.
676 ## Type: Directory
677 c.downloads.location.directory = "~/downloads"
678
679 ## Prompt the user for the download location. If set to false,
680 ## `downloads.location.directory` will be used.
681 ## Type: Bool
682 # c.downloads.location.prompt = True
683
684 ## Remember the last used download directory.
685 ## Type: Bool
686 # c.downloads.location.remember = True
687
688 ## What to display in the download filename input.
689 ## Type: String
690 ## Valid values:
691 ## - path: Show only the download path.
692 ## - filename: Show only download filename.
693 ## - both: Show download path and filename.
694 # c.downloads.location.suggestion = 'path'
695
696 ## The default program used to open downloads. If null, the default
697 ## internal handler is used. Any `{}` in the string will be expanded to
698 ## the filename, else the filename will be appended.
699 ## Type: String
700 c.downloads.open_dispatcher = "rifle"
701
702 ## Where to show the downloaded files.
703 ## Type: VerticalPosition
704 ## Valid values:
705 ## - top
706 ## - bottom
707 # c.downloads.position = 'top'
708
709 ## Number of milliseconds to wait before removing finished downloads. If
710 ## set to -1, downloads are never removed.
711 ## Type: Int
712 # c.downloads.remove_finished = -1
713
714 ## The editor (and arguments) to use for the `open-editor` command. `{}`
715 ## gets replaced by the filename of the file to be edited.
716 ## Type: ShellCommand
717 c.editor.command = ['urxvtc', '-e', 'vim', '{}']
718
719 ## Encoding to use for the editor.
720 ## Type: Encoding
721 # c.editor.encoding = 'utf-8'
722
723 ## Font used in the completion categories.
724 ## Type: Font
725 # c.fonts.completion.category = 'bold 8pt monospace'
726
727 ## Font used in the completion widget.
728 ## Type: Font
729 # c.fonts.completion.entry = '8pt monospace'
730
731 ## Font used for the debugging console.
732 ## Type: QtFont
733 # c.fonts.debug_console = '8pt monospace'
734
735 ## Font used for the downloadbar.
736 ## Type: Font
737 # c.fonts.downloads = '8pt monospace'
738
739 ## Font used for the hints.
740 ## Type: Font
741 # c.fonts.hints = 'bold 10pt monospace'
742
743 ## Font used in the keyhint widget.
744 ## Type: Font
745 # c.fonts.keyhint = '8pt monospace'
746
747 ## Font used for error messages.
748 ## Type: Font
749 # c.fonts.messages.error = '8pt monospace'
750
751 ## Font used for info messages.
752 ## Type: Font
753 # c.fonts.messages.info = '8pt monospace'
754
755 ## Font used for warning messages.
756 ## Type: Font
757 # c.fonts.messages.warning = '8pt monospace'
758
759 ## Default monospace fonts. Whenever "monospace" is used in a font
760 ## setting, it's replaced with the fonts listed here.
761 ## Type: Font
762 c.fonts.monospace = 'Hack, "xos4 Terminus", Terminus, Monospace, "DejaVu Sans Mono", Monaco, "Bitstream Vera Sans Mono", "Andale Mono", "Courier New", Courier, "Liberation Mono", monospace, Fixed, Consolas, Terminal'
763
764 ## Font used for prompts.
765 ## Type: Font
766 # c.fonts.prompts = '8pt sans-serif'
767
768 ## Font used in the statusbar.
769 ## Type: Font
770 # c.fonts.statusbar = '8pt monospace'
771
772 ## Font used in the tab bar.
773 ## Type: QtFont
774 # c.fonts.tabs = '8pt monospace'
775
776 ## Font family for cursive fonts.
777 ## Type: FontFamily
778 # c.fonts.web.family.cursive = ''
779
780 ## Font family for fantasy fonts.
781 ## Type: FontFamily
782 # c.fonts.web.family.fantasy = ''
783
784 ## Font family for fixed fonts.
785 ## Type: FontFamily
786 # c.fonts.web.family.fixed = ''
787
788 ## Font family for sans-serif fonts.
789 ## Type: FontFamily
790 # c.fonts.web.family.sans_serif = ''
791
792 ## Font family for serif fonts.
793 ## Type: FontFamily
794 # c.fonts.web.family.serif = ''
795
796 ## Font family for standard fonts.
797 ## Type: FontFamily
798 # c.fonts.web.family.standard = ''
799
800 ## The default font size for regular text.
801 ## Type: Int
802 # c.fonts.web.size.default = 16
803
804 ## The default font size for fixed-pitch text.
805 ## Type: Int
806 # c.fonts.web.size.default_fixed = 13
807
808 ## The hard minimum font size.
809 ## Type: Int
810 # c.fonts.web.size.minimum = 0
811
812 ## The minimum logical font size that is applied when zooming out.
813 ## Type: Int
814 # c.fonts.web.size.minimum_logical = 6
815
816 ## Force software rendering for QtWebEngine. This is needed for
817 ## QtWebEngine to work with Nouveau drivers. This setting requires a
818 ## restart.
819 ## Type: Bool
820 # c.force_software_rendering = False
821
822 ## Controls when a hint can be automatically followed without pressing
823 ## Enter.
824 ## Type: String
825 ## Valid values:
826 ## - always: Auto-follow whenever there is only a single hint on a page.
827 ## - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
828 ## - 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).
829 ## - never: The user will always need to press Enter to follow a hint.
830 # c.hints.auto_follow = 'unique-match'
831
832 ## A timeout (in milliseconds) to ignore normal-mode key bindings after a
833 ## successful auto-follow.
834 ## Type: Int
835 # c.hints.auto_follow_timeout = 0
836
837 ## CSS border value for hints.
838 ## Type: String
839 # c.hints.border = '1px solid #E3BE23'
840
841 ## Chars used for hint strings.
842 ## Type: UniqueCharString
843 c.hints.chars = 'aoeuidhtns'
844
845 ## The dictionary file to be used by the word hints.
846 ## Type: File
847 # c.hints.dictionary = '/usr/share/dict/words'
848
849 ## Which implementation to use to find elements to hint.
850 ## Type: String
851 ## Valid values:
852 ## - javascript: Better but slower
853 ## - python: Slightly worse but faster
854 # c.hints.find_implementation = 'python'
855
856 ## Hide unmatched hints in rapid mode.
857 ## Type: Bool
858 # c.hints.hide_unmatched_rapid_hints = True
859
860 ## Minimum number of chars used for hint strings.
861 ## Type: Int
862 # c.hints.min_chars = 2
863
864 ## Mode to use for hints.
865 ## Type: String
866 ## Valid values:
867 ## - 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.)
868 ## - letter: Use the chars in the `hints.chars` setting.
869 ## - word: Use hints words based on the html elements and the extra words.
870 # c.hints.mode = 'letter'
871
872 ## A comma-separated list of regexes to use for 'next' links.
873 ## Type: List of Regex
874 # c.hints.next_regexes = ['\\bnext\\b', '\\bmore\\b', '\\bnewer\\b', '\\b[>→≫]\\b', '\\b(>>|»)\\b', '\\bcontinue\\b']
875
876 ## A comma-separated list of regexes to use for 'prev' links.
877 ## Type: List of Regex
878 # c.hints.prev_regexes = ['\\bprev(ious)?\\b', '\\bback\\b', '\\bolder\\b', '\\b[<←≪]\\b', '\\b(<<|«)\\b']
879
880 ## Scatter hint key chains (like Vimium) or not (like dwb). Ignored for
881 ## number hints.
882 ## Type: Bool
883 c.hints.scatter = False
884
885 ## Make chars in hint strings uppercase.
886 ## Type: Bool
887 # c.hints.uppercase = False
888
889 ## The maximum time in minutes between two history items for them to be
890 ## considered being from the same browsing session. Items with less time
891 ## between them are grouped when being displayed in `:history`. Use -1 to
892 ## disable separation.
893 ## Type: Int
894 # c.history_gap_interval = 30
895
896 ## Find text on a page case-insensitively.
897 ## Type: String
898 ## Valid values:
899 ## - always: Search case-insensitively
900 ## - never: Search case-sensitively
901 ## - smart: Search case-sensitively if there are capital chars
902 # c.ignore_case = 'smart'
903
904 ## Forward unbound keys to the webview in normal mode.
905 ## Type: String
906 ## Valid values:
907 ## - all: Forward all unbound keys.
908 ## - auto: Forward unbound non-alphanumeric keys.
909 ## - none: Don't forward any keys.
910 # c.input.forward_unbound_keys = 'auto'
911
912 ## Leave insert mode if a non-editable element is clicked.
913 ## Type: Bool
914 # c.input.insert_mode.auto_leave = True
915
916 ## Automatically enter insert mode if an editable element is focused
917 ## after loading the page.
918 ## Type: Bool
919 # c.input.insert_mode.auto_load = False
920
921 ## Switch to insert mode when clicking flash and other plugins.
922 ## Type: Bool
923 # c.input.insert_mode.plugins = False
924
925 ## Include hyperlinks in the keyboard focus chain when tabbing.
926 ## Type: Bool
927 # c.input.links_included_in_focus_chain = True
928
929 ## Timeout (in milliseconds) for partially typed key bindings. If the
930 ## current input forms only partial matches, the keystring will be
931 ## cleared after this time.
932 ## Type: Int
933 # c.input.partial_timeout = 5000
934
935 ## Enable Opera-like mouse rocker gestures. This disables the context
936 ## menu.
937 ## Type: Bool
938 # c.input.rocker_gestures = False
939
940 ## Enable Spatial Navigation. Spatial navigation consists in the ability
941 ## to navigate between focusable elements in a Web page, such as
942 ## hyperlinks and form controls, by using Left, Right, Up and Down arrow
943 ## keys. For example, if a user presses the Right key, heuristics
944 ## determine whether there is an element he might be trying to reach
945 ## towards the right and which element he probably wants.
946 ## Type: Bool
947 # c.input.spatial_navigation = False
948
949 ## Keychains that shouldn't be shown in the keyhint dialog. Globs are
950 ## supported, so `;*` will blacklist all keychains starting with `;`. Use
951 ## `*` to disable keyhints.
952 ## Type: List of String
953 # c.keyhint.blacklist = []
954
955 ## Time from pressing a key to seeing the keyhint dialog (ms).
956 ## Type: Int
957 # c.keyhint.delay = 500
958
959 ## Time (in ms) to show messages in the statusbar for. Set to 0 to never
960 ## clear messages.
961 ## Type: Int
962 # c.messages.timeout = 2000
963
964 ## Show messages in unfocused windows.
965 ## Type: Bool
966 # c.messages.unfocused = False
967
968 ## How to open links in an existing instance if a new one is launched.
969 ## This happens when e.g. opening a link from a terminal. See
970 ## `new_instance_open_target_window` to customize in which window the
971 ## link is opened in.
972 ## Type: String
973 ## Valid values:
974 ## - tab: Open a new tab in the existing window and activate the window.
975 ## - tab-bg: Open a new background tab in the existing window and activate the window.
976 ## - tab-silent: Open a new tab in the existing window without activating the window.
977 ## - tab-bg-silent: Open a new background tab in the existing window without activating the window.
978 ## - window: Open in a new window.
979 # c.new_instance_open_target = 'tab'
980
981 ## Which window to choose when opening links as new tabs. When
982 ## `new_instance_open_target` is not set to `window`, this is ignored.
983 ## Type: String
984 ## Valid values:
985 ## - first-opened: Open new tabs in the first (oldest) opened window.
986 ## - last-opened: Open new tabs in the last (newest) opened window.
987 ## - last-focused: Open new tabs in the most recently focused window.
988 ## - last-visible: Open new tabs in the most recently visible window.
989 # c.new_instance_open_target_window = 'last-focused'
990
991 ## Show a filebrowser in upload/download prompts.
992 ## Type: Bool
993 # c.prompt.filebrowser = True
994
995 ## The rounding radius for the edges of prompts.
996 ## Type: Int
997 # c.prompt.radius = 8
998
999 ## Additional arguments to pass to Qt, without leading `--`. With
1000 ## QtWebEngine, some Chromium arguments (see
1001 ## https://peter.sh/experiments/chromium-command-line-switches/ for a
1002 ## list) will work. This setting requires a restart.
1003 ## Type: List of String
1004 # c.qt_args = []
1005
1006 ## Show a scrollbar.
1007 ## Type: Bool
1008 # c.scrolling.bar = False
1009
1010 ## Enable smooth scrolling for web pages. Note smooth scrolling does not
1011 ## work with the `:scroll-px` command.
1012 ## Type: Bool
1013 # c.scrolling.smooth = False
1014
1015 ## The name of the session to save by default. If this is set to null,
1016 ## the session which was last loaded is saved.
1017 ## Type: SessionName
1018 # c.session_default_name = None
1019
1020 ## Hide the statusbar unless a message is shown.
1021 ## Type: Bool
1022 # c.statusbar.hide = False
1023
1024 ## Padding for the statusbar.
1025 ## Type: Padding
1026 # c.statusbar.padding = {'left': 0, 'right': 0, 'top': 1, 'bottom': 1}
1027
1028 ## The position of the status bar.
1029 ## Type: VerticalPosition
1030 ## Valid values:
1031 ## - top
1032 ## - bottom
1033 # c.statusbar.position = 'bottom'
1034
1035 ## Open new tabs (middleclick/ctrl+click) in the background.
1036 ## Type: Bool
1037 # c.tabs.background = False
1038
1039 ## On which mouse button to close tabs.
1040 ## Type: String
1041 ## Valid values:
1042 ## - right: Close tabs on right-click.
1043 ## - middle: Close tabs on middle-click.
1044 ## - none: Don't close tabs using the mouse.
1045 # c.tabs.close_mouse_button = 'middle'
1046
1047 ## Scaling for favicons in the tab bar. The tab size is unchanged, so big
1048 ## favicons also require extra `tabs.padding`.
1049 ## Type: Float
1050 # c.tabs.favicons.scale = 1.0
1051
1052 ## Show favicons in the tab bar.
1053 ## Type: Bool
1054 # c.tabs.favicons.show = True
1055
1056 ## Padding for tab indicators
1057 ## Type: Padding
1058 # c.tabs.indicator_padding = {'left': 0, 'right': 4, 'top': 2, 'bottom': 2}
1059
1060 ## Behavior when the last tab is closed.
1061 ## Type: String
1062 ## Valid values:
1063 ## - ignore: Don't do anything.
1064 ## - blank: Load a blank page.
1065 ## - startpage: Load the start page.
1066 ## - default-page: Load the default page.
1067 ## - close: Close the window.
1068 # c.tabs.last_close = 'ignore'
1069
1070 ## Switch between tabs using the mouse wheel.
1071 ## Type: Bool
1072 # c.tabs.mousewheel_switching = True
1073
1074 ## How new tabs opened from another tab are positioned.
1075 ## Type: NewTabPosition
1076 ## Valid values:
1077 ## - prev: Before the current tab.
1078 ## - next: After the current tab.
1079 ## - first: At the beginning.
1080 ## - last: At the end.
1081 # c.tabs.new_position.related = 'next'
1082
1083 ## How new tabs which aren't opened from another tab are positioned.
1084 ## Type: NewTabPosition
1085 ## Valid values:
1086 ## - prev: Before the current tab.
1087 ## - next: After the current tab.
1088 ## - first: At the beginning.
1089 ## - last: At the end.
1090 c.tabs.new_position.unrelated = 'next'
1091
1092 ## Padding around text for tabs
1093 ## Type: Padding
1094 # c.tabs.padding = {'left': 5, 'right': 5, 'top': 0, 'bottom': 0}
1095
1096 ## The position of the tab bar.
1097 ## Type: Position
1098 ## Valid values:
1099 ## - top
1100 ## - bottom
1101 ## - left
1102 ## - right
1103 # c.tabs.position = 'top'
1104
1105 ## Which tab to select when the focused tab is removed.
1106 ## Type: SelectOnRemove
1107 ## Valid values:
1108 ## - prev: Select the tab which came before the closed one (left in horizontal, above in vertical).
1109 ## - next: Select the tab which came after the closed one (right in horizontal, below in vertical).
1110 ## - last-used: Select the previously selected tab.
1111 c.tabs.select_on_remove = 'prev'
1112
1113 ## When to show the tab bar.
1114 ## Type: String
1115 ## Valid values:
1116 ## - always: Always show the tab bar.
1117 ## - never: Always hide the tab bar.
1118 ## - multiple: Hide the tab bar if only one tab is open.
1119 ## - switching: Show the tab bar when switching tabs.
1120 # c.tabs.show = 'always'
1121
1122 ## Time to show the tab bar before hiding it when tabs.show is set to
1123 ## 'switching'.
1124 ## Type: Int
1125 # c.tabs.show_switching_delay = 800
1126
1127 ## Open a new window for every tab.
1128 ## Type: Bool
1129 # c.tabs.tabs_are_windows = False
1130
1131 ## Alignment of the text inside of tabs.
1132 ## Type: TextAlignment
1133 ## Valid values:
1134 ## - left
1135 ## - right
1136 ## - center
1137 # c.tabs.title.alignment = 'left'
1138
1139 ## The format to use for the tab title. The following placeholders are
1140 ## defined: * `{perc}`: The percentage as a string like `[10%]`. *
1141 ## `{perc_raw}`: The raw percentage, e.g. `10` * `{title}`: The title of
1142 ## the current web page * `{title_sep}`: The string ` - ` if a title is
1143 ## set, empty otherwise. * `{index}`: The index of this tab. * `{id}`:
1144 ## The internal tab ID of this tab. * `{scroll_pos}`: The page scroll
1145 ## position. * `{host}`: The host of the current web page. * `{backend}`:
1146 ## Either ''webkit'' or ''webengine'' * `{private}` : Indicates when
1147 ## private mode is enabled.
1148 ## Type: FormatString
1149 # c.tabs.title.format = '{index}: {title}'
1150
1151 ## The format to use for the tab title for pinned tabs. The same
1152 ## placeholders like for `tabs.title.format` are defined.
1153 ## Type: FormatString
1154 # c.tabs.title.format_pinned = '{index}'
1155
1156 ## The width of the tab bar if it's vertical, in px or as percentage of
1157 ## the window.
1158 ## Type: PercOrInt
1159 # c.tabs.width.bar = '20%'
1160
1161 ## Width of the progress indicator (0 to disable).
1162 ## Type: Int
1163 # c.tabs.width.indicator = 3
1164
1165 ## Whether to wrap when changing tabs.
1166 ## Type: Bool
1167 # c.tabs.wrap = True
1168
1169 ## Whether to start a search when something else than a URL is entered.
1170 ## Type: String
1171 ## Valid values:
1172 ## - naive: Use simple/naive check.
1173 ## - dns: Use DNS requests (might be slow!).
1174 ## - never: Never search automatically.
1175 # c.url.auto_search = 'naive'
1176
1177 ## The page to open if :open -t/-b/-w is used without URL. Use
1178 ## `about:blank` for a blank page.
1179 ## Type: FuzzyUrl
1180 c.url.default_page = 'https://duckduckgo.com/?t=chakra'
1181
1182 ## The URL segments where `:navigate increment/decrement` will search for
1183 ## a number.
1184 ## Type: FlagList
1185 ## Valid values:
1186 ## - host
1187 ## - path
1188 ## - query
1189 ## - anchor
1190 # c.url.incdec_segments = ['path', 'query']
1191
1192 ## Definitions of search engines which can be used via the address bar.
1193 ## Maps a searchengine name (such as `DEFAULT`, or `ddg`) to a URL with a
1194 ## `{}` placeholder. The placeholder will be replaced by the search term,
1195 ## use `{{` and `}}` for literal `{`/`}` signs. The searchengine named
1196 ## `DEFAULT` is used when `url.auto_search` is turned on and something
1197 ## else than a URL was entered to be opened. Other search engines can be
1198 ## used by prepending the search engine name to the search term, e.g.
1199 ## `:open google qutebrowser`.
1200 ## Type: Dict
1201 c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}',
1202 'ddg': 'https://duckduckgo.com/?t=chakra&q={}',
1203 'pcl': 'http://docs.pointclouds.org/trunk/search.php?query={}',
1204 'std': 'http://en.cppreference.com/mwiki/index.php?title=Special%3ASearch&search={}',
1205 'cv': 'http://docs.opencv.org/3.1.0/index.html#gsc.tab=0&gsc.ref=more%3A3.1&gsc.q={}' }
1206
1207 ## The page(s) to open at the start.
1208 ## Type: List of FuzzyUrl, or FuzzyUrl
1209 # c.url.start_pages = 'https://start.duckduckgo.com'
1210
1211 ## The URL parameters to strip with `:yank url`.
1212 ## Type: List of String
1213 # c.url.yank_ignored_parameters = ['ref', 'utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content']
1214
1215 ## Hide the window decoration when using wayland (requires restart)
1216 ## Type: Bool
1217 # c.window.hide_wayland_decoration = False
1218
1219 ## The format to use for the window title. The following placeholders are
1220 ## defined: * `{perc}`: The percentage as a string like `[10%]`. *
1221 ## `{perc_raw}`: The raw percentage, e.g. `10` * `{title}`: The title of
1222 ## the current web page * `{title_sep}`: The string ` - ` if a title is
1223 ## set, empty otherwise. * `{id}`: The internal window ID of this window.
1224 ## * `{scroll_pos}`: The page scroll position. * `{host}`: The host of
1225 ## the current web page. * `{backend}`: Either ''webkit'' or
1226 ## ''webengine'' * `{private}` : Indicates when private mode is enabled.
1227 ## Type: FormatString
1228 # c.window.title_format = '{perc}{title}{title_sep}qutebrowser'
1229
1230 ## The default zoom level.
1231 ## Type: Perc
1232 # c.zoom.default = '100%'
1233
1234 ## The available zoom levels.
1235 ## Type: List of Perc
1236 # c.zoom.levels = ['25%', '33%', '50%', '67%', '75%', '90%', '100%', '110%', '125%', '150%', '175%', '200%', '250%', '300%', '400%', '500%']
1237
1238 ## How much to divide the mouse wheel movements to translate them into
1239 ## zoom increments.
1240 ## Type: Int
1241 # c.zoom.mouse_divider = 512
1242
1243 ## Whether the zoom factor on a frame applies only to the text or to all
1244 ## content.
1245 ## Type: Bool
1246 # c.zoom.text_only = False
1247
1248 ## Bindings for normal mode
1249 # config.bind("'", 'enter-mode jump_mark')
1250 # config.bind('+', 'zoom-in')
1251 # config.bind('-', 'zoom-out')
1252 # config.bind('.', 'repeat-command')
1253 # config.bind('/', 'set-cmd-text /')
1254 # config.bind(':', 'set-cmd-text :')
1255 # config.bind(';I', 'hint images tab')
1256 # config.bind(';O', 'hint links fill :open -t -r {hint-url}')
1257 # config.bind(';R', 'hint --rapid links window')
1258 # config.bind(';Y', 'hint links yank-primary')
1259 # config.bind(';b', 'hint all tab-bg')
1260 # config.bind(';d', 'hint links download')
1261 # config.bind(';f', 'hint all tab-fg')
1262 # config.bind(';h', 'hint all hover')
1263 # config.bind(';i', 'hint images')
1264 # config.bind(';o', 'hint links fill :open {hint-url}')
1265 # config.bind(';r', 'hint --rapid links tab-bg')
1266 # config.bind(';t', 'hint inputs')
1267 # config.bind(';y', 'hint links yank')
1268 config.bind('M', 'hint links spawn mpv {hint-url}')
1269 # config.bind('<Alt-1>', 'tab-focus 1')
1270 # config.bind('<Alt-2>', 'tab-focus 2')
1271 # config.bind('<Alt-3>', 'tab-focus 3')
1272 # config.bind('<Alt-4>', 'tab-focus 4')
1273 # config.bind('<Alt-5>', 'tab-focus 5')
1274 # config.bind('<Alt-6>', 'tab-focus 6')
1275 # config.bind('<Alt-7>', 'tab-focus 7')
1276 # config.bind('<Alt-8>', 'tab-focus 8')
1277 # config.bind('<Alt-9>', 'tab-focus -1')
1278 # config.bind('<Ctrl-A>', 'navigate increment')
1279 # config.bind('<Ctrl-Alt-p>', 'print')
1280 # config.bind('<Ctrl-B>', 'scroll-page 0 -1')
1281 # config.bind('<Ctrl-D>', 'scroll-page 0 0.5')
1282 # config.bind('<Ctrl-F5>', 'reload -f')
1283 # config.bind('<Ctrl-F>', 'scroll-page 0 1')
1284 # config.bind('<Ctrl-N>', 'open -w')
1285 # config.bind('<Ctrl-PgDown>', 'tab-next')
1286 # config.bind('<Ctrl-PgUp>', 'tab-prev')
1287 # config.bind('<Ctrl-Q>', 'quit')
1288 # config.bind('<Ctrl-Return>', 'follow-selected -t')
1289 # config.bind('<Ctrl-Shift-N>', 'open -p')
1290 # config.bind('<Ctrl-Shift-T>', 'undo')
1291 # config.bind('<Ctrl-Shift-W>', 'close')
1292 # config.bind('<Ctrl-T>', 'open -t')
1293 # config.bind('<Ctrl-Tab>', 'tab-focus last')
1294 # config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')
1295 # config.bind('<Ctrl-V>', 'enter-mode passthrough')
1296 # config.bind('<Ctrl-W>', 'tab-close')
1297 # config.bind('<Ctrl-X>', 'navigate decrement')
1298 # config.bind('<Ctrl-^>', 'tab-focus last')
1299 # config.bind('<Ctrl-h>', 'home')
1300 # config.bind('<Ctrl-p>', 'tab-pin')
1301 # config.bind('<Ctrl-s>', 'stop')
1302 config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave ;; fake-key <Escape>')
1303 # config.bind('<F11>', 'fullscreen')
1304 # config.bind('<F5>', 'reload')
1305 # config.bind('<Return>', 'follow-selected')
1306 # config.bind('<back>', 'back')
1307 # config.bind('<forward>', 'forward')
1308 # config.bind('=', 'zoom')
1309 # config.bind('?', 'set-cmd-text ?')
1310 # config.bind('@', 'run-macro')
1311 # config.bind('B', 'set-cmd-text -s :quickmark-load -t')
1312 # config.bind('D', 'tab-close -o')
1313 # config.bind('F', 'hint all tab')
1314 # config.bind('G', 'scroll-to-perc')
1315 # config.bind('H', 'back')
1316 config.bind('K', 'tab-next')
1317 config.bind('J', 'tab-prev')
1318 # config.bind('L', 'forward')
1319 # config.bind('M', 'bookmark-add')
1320 # config.bind('N', 'search-prev')
1321 # config.bind('O', 'set-cmd-text -s :open -t')
1322 # config.bind('PP', 'open -t -- {primary}')
1323 # config.bind('Pp', 'open -t -- {clipboard}')
1324 # config.bind('R', 'reload -f')
1325 # config.bind('Ss', 'open qute://settings')
1326 # config.bind('T', 'tab-focus')
1327 # config.bind('ZQ', 'quit')
1328 # config.bind('ZZ', 'quit --save')
1329 # config.bind('[[', 'navigate prev')
1330 # config.bind(']]', 'navigate next')
1331 # config.bind('`', 'enter-mode set_mark')
1332 # config.bind('ad', 'download-cancel')
1333 # config.bind('b', 'set-cmd-text -s :quickmark-load')
1334 # config.bind('cd', 'download-clear')
1335 config.unbind('co')
1336 # config.bind('d', 'tab-close')
1337 # config.bind('f', 'hint')
1338 # config.bind('g$', 'tab-focus -1')
1339 # config.bind('g0', 'tab-focus 1')
1340 # config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
1341 # config.bind('gC', 'tab-clone')
1342 # config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
1343 # config.bind('gU', 'navigate up -t')
1344 # config.bind('g^', 'tab-focus 1')
1345 # config.bind('ga', 'open -t')
1346 # config.bind('gb', 'set-cmd-text -s :bookmark-load')
1347 # config.bind('gd', 'download')
1348 # config.bind('gf', 'view-source')
1349 # config.bind('gg', 'scroll-to-perc 0')
1350 # config.bind('gl', 'tab-move -')
1351 # config.bind('gm', 'tab-move')
1352 # config.bind('go', 'set-cmd-text :open {url:pretty}')
1353 # config.bind('gr', 'tab-move +')
1354 # config.bind('gt', 'set-cmd-text -s :buffer')
1355 # config.bind('gu', 'navigate up')
1356 # config.bind('h', 'scroll left')
1357 # config.bind('i', 'enter-mode insert')
1358 # config.bind('j', 'scroll down')
1359 # config.bind('k', 'scroll up')
1360 # config.bind('l', 'scroll right')
1361 # config.bind('m', 'quickmark-save')
1362 config.bind('m', 'spawn mpv {url}')
1363 # config.bind('n', 'search-next')
1364 # config.bind('o', 'set-cmd-text -s :open')
1365 # config.bind('pP', 'open -- {primary}')
1366 # config.bind('pp', 'open -- {clipboard}')
1367 # config.bind('q', 'record-macro')
1368 # config.bind('r', 'reload')
1369 # config.bind('sf', 'save')
1370 # config.bind('sk', 'set-cmd-text -s :bind')
1371 # config.bind('sl', 'set-cmd-text -s :set -t')
1372 # config.bind('ss', 'set-cmd-text -s :set')
1373 # config.bind('th', 'back -t')
1374 # config.bind('tl', 'forward -t')
1375 # config.bind('u', 'undo')
1376 # config.bind('v', 'enter-mode caret')
1377 # config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
1378 # config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
1379 # config.bind('wP', 'open -w -- {primary}')
1380 # config.bind('wb', 'set-cmd-text -s :quickmark-load -w')
1381 # config.bind('wf', 'hint all window')
1382 # config.bind('wh', 'back -w')
1383 # config.bind('wi', 'inspector')
1384 # config.bind('wl', 'forward -w')
1385 # config.bind('wo', 'set-cmd-text -s :open -w')
1386 # config.bind('wp', 'open -w -- {clipboard}')
1387 # config.bind('xO', 'set-cmd-text :open -b -r {url:pretty}')
1388 # config.bind('xo', 'set-cmd-text -s :open -b')
1389 # config.bind('yD', 'yank domain -s')
1390 # config.bind('yP', 'yank pretty-url -s')
1391 # config.bind('yT', 'yank title -s')
1392 # config.bind('yY', 'yank -s')
1393 # config.bind('yd', 'yank domain')
1394 # config.bind('yp', 'yank pretty-url')
1395 # config.bind('yt', 'yank title')
1396 # config.bind('yy', 'yank')
1397 # config.bind('{{', 'navigate prev -t')
1398 # config.bind('}}', 'navigate next -t')
1399
1400 ## Bindings for caret mode
1401 # config.bind('$', 'move-to-end-of-line', mode='caret')
1402 # config.bind('0', 'move-to-start-of-line', mode='caret')
1403 # config.bind('<Ctrl-Space>', 'drop-selection', mode='caret')
1404 # config.bind('<Escape>', 'leave-mode', mode='caret')
1405 # config.bind('<Return>', 'yank selection', mode='caret')
1406 # config.bind('<Space>', 'toggle-selection', mode='caret')
1407 # config.bind('G', 'move-to-end-of-document', mode='caret')
1408 # config.bind('H', 'scroll left', mode='caret')
1409 # config.bind('J', 'scroll down', mode='caret')
1410 # config.bind('K', 'scroll up', mode='caret')
1411 # config.bind('L', 'scroll right', mode='caret')
1412 # config.bind('Y', 'yank selection -s', mode='caret')
1413 # config.bind('[', 'move-to-start-of-prev-block', mode='caret')
1414 # config.bind(']', 'move-to-start-of-next-block', mode='caret')
1415 # config.bind('b', 'move-to-prev-word', mode='caret')
1416 # config.bind('c', 'enter-mode normal', mode='caret')
1417 # config.bind('e', 'move-to-end-of-word', mode='caret')
1418 # config.bind('gg', 'move-to-start-of-document', mode='caret')
1419 # config.bind('h', 'move-to-prev-char', mode='caret')
1420 # config.bind('j', 'move-to-next-line', mode='caret')
1421 # config.bind('k', 'move-to-prev-line', mode='caret')
1422 # config.bind('l', 'move-to-next-char', mode='caret')
1423 # config.bind('v', 'toggle-selection', mode='caret')
1424 # config.bind('w', 'move-to-next-word', mode='caret')
1425 # config.bind('y', 'yank selection', mode='caret')
1426 # config.bind('{', 'move-to-end-of-prev-block', mode='caret')
1427 # config.bind('}', 'move-to-end-of-next-block', mode='caret')
1428
1429 ## Bindings for command mode
1430 # config.bind('<Alt-B>', 'rl-backward-word', mode='command')
1431 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
1432 # config.bind('<Alt-D>', 'rl-kill-word', mode='command')
1433 # config.bind('<Alt-F>', 'rl-forward-word', mode='command')
1434 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
1435 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
1436 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
1437 # config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
1438 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
1439 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
1440 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
1441 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')
1442 # config.bind('<Ctrl-N>', 'command-history-next', mode='command')
1443 # config.bind('<Ctrl-P>', 'command-history-prev', mode='command')
1444 # config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
1445 # config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
1446 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
1447 # config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
1448 # config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
1449 # config.bind('<Down>', 'command-history-next', mode='command')
1450 # config.bind('<Escape>', 'leave-mode', mode='command')
1451 # config.bind('<Return>', 'command-accept', mode='command')
1452 # config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
1453 # config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
1454 # config.bind('<Tab>', 'completion-item-focus next', mode='command')
1455 # config.bind('<Up>', 'command-history-prev', mode='command')
1456
1457 ## Bindings for hint mode
1458 # config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')
1459 # config.bind('<Ctrl-F>', 'hint links', mode='hint')
1460 # config.bind('<Ctrl-R>', 'hint --rapid links tab-bg', mode='hint')
1461 # config.bind('<Escape>', 'leave-mode', mode='hint')
1462 # config.bind('<Return>', 'follow-hint', mode='hint')
1463
1464 ## Bindings for insert mode
1465 # config.bind('<Ctrl-E>', 'open-editor', mode='insert')
1466 # config.bind('<Escape>', 'leave-mode', mode='insert')
1467 # config.bind('<Shift-Ins>', 'insert-text {primary}', mode='insert')
1468
1469 ## Bindings for passthrough mode
1470 # config.bind('<Ctrl-V>', 'leave-mode', mode='passthrough')
1471
1472 ## Bindings for prompt mode
1473 # config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')
1474 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='prompt')
1475 # config.bind('<Alt-D>', 'rl-kill-word', mode='prompt')
1476 # config.bind('<Alt-F>', 'rl-forward-word', mode='prompt')
1477 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='prompt')
1478 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='prompt')
1479 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='prompt')
1480 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='prompt')
1481 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='prompt')
1482 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='prompt')
1483 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='prompt')
1484 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='prompt')
1485 # config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='prompt')
1486 # config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
1487 # config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
1488 # config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
1489 # config.bind('<Escape>', 'leave-mode', mode='prompt')
1490 # config.bind('<Return>', 'prompt-accept', mode='prompt')
1491 # config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
1492 # config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
1493 # config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
1494 # config.bind('n', 'prompt-accept no', mode='prompt')
1495 # config.bind('y', 'prompt-accept yes', mode='prompt')
1496
1497 ## Bindings for register mode
1498 # config.bind('<Escape>', 'leave-mode', mode='register')