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