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