1 ## Autogenerated config.py
3 ## qute://help/configuring.html
4 ## qute://help/settings.html
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()
11 from qutebrowser
.api
import interceptor
, message
12 from PyQt5
.QtCore
import QUrl
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())
20 if url
.host() == "xkcd.com":
21 url
.setHost("m.xkcd.com")
22 message
.info("Redirecting to " + url
.toString())
24 if url
.host() == "www.bristolpost.co.uk":
25 url
.setUrl("https://outline.com/" + url
.toString())
26 message
.info("Redirecting to " + url
.toString())
29 interceptor
.register(intercept
)
33 ## Aliases for commands. The keys of the given dictionary are the
34 ## aliases, while the values are the commands they map to.
36 c
.aliases
= {'w': 'session-save',
42 'mpv': 'spawn --userscript ~/src/qutebrowser/misc/userscripts/view_in_mpv'
45 ## Time interval (in milliseconds) between auto-saves of
46 ## config/cookies/etc.
48 # c.auto_save.interval = 15000
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.
57 c
.auto_save
.session
= True
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.
69 ## - webengine: Use QtWebEngine (based on Chromium).
70 ## - webkit: Use QtWebKit (based on WebKit, similar to Safari).
71 # c.backend = 'webengine'
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.
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>'}
82 ## Background color of the completion widget category headers.
84 # c.colors.completion.category.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 #888888, stop:1 #505050)'
86 ## Bottom border color of the completion widget category headers.
88 # c.colors.completion.category.border.bottom = 'black'
90 ## Top border color of the completion widget category headers.
92 # c.colors.completion.category.border.top = 'black'
94 ## Foreground color of completion widget category headers.
96 # c.colors.completion.category.fg = 'white'
98 ## Background color of the completion widget for even rows.
100 # c.colors.completion.even.bg = '#333333'
102 ## Text color of the completion widget. May be a single color to use for
103 ## all columns or a list of three colors, one for each column.
104 ## Type: List of QtColor, or QtColor
105 # c.colors.completion.fg = ['white', 'white', 'white']
107 ## Background color of the selected completion item.
109 # c.colors.completion.item.selected.bg = '#e8c000'
111 ## Bottom border color of the selected completion item.
113 # c.colors.completion.item.selected.border.bottom = '#bbbb00'
115 ## Top border color of the selected completion item.
117 # c.colors.completion.item.selected.border.top = '#bbbb00'
119 ## Foreground color of the selected completion item.
121 # c.colors.completion.item.selected.fg = 'black'
123 ## Foreground color of the matched text in the selected completion item.
125 # c.colors.completion.item.selected.match.fg = '#ff4444'
127 ## Foreground color of the matched text in the completion.
129 # c.colors.completion.match.fg = '#ff4444'
131 ## Background color of the completion widget for odd rows.
133 # c.colors.completion.odd.bg = '#444444'
135 ## Color of the scrollbar in the completion view.
137 # c.colors.completion.scrollbar.bg = '#333333'
139 ## Color of the scrollbar handle in the completion view.
141 # c.colors.completion.scrollbar.fg = 'white'
143 ## Background color of disabled items in the context menu. If set to
144 ## null, the Qt default is used.
146 # c.colors.contextmenu.disabled.bg = None
148 ## Foreground color of disabled items in the context menu. If set to
149 ## null, the Qt default is used.
151 # c.colors.contextmenu.disabled.fg = None
153 ## Background color of the context menu. If set to null, the Qt default
156 # c.colors.contextmenu.menu.bg = None
158 ## Foreground color of the context menu. If set to null, the Qt default
161 # c.colors.contextmenu.menu.fg = None
163 ## Background color of the context menu's selected item. If set to null,
164 ## the Qt default is used.
166 # c.colors.contextmenu.selected.bg = None
168 ## Foreground color of the context menu's selected item. If set to null,
169 ## the Qt default is used.
171 # c.colors.contextmenu.selected.fg = None
173 ## Background color for the download bar.
175 # c.colors.downloads.bar.bg = 'black'
177 ## Background color for downloads with errors.
179 # c.colors.downloads.error.bg = 'red'
181 ## Foreground color for downloads with errors.
183 # c.colors.downloads.error.fg = 'white'
185 ## Color gradient start for download backgrounds.
187 # c.colors.downloads.start.bg = '#0000aa'
189 ## Color gradient start for download text.
191 # c.colors.downloads.start.fg = 'white'
193 ## Color gradient stop for download backgrounds.
195 # c.colors.downloads.stop.bg = '#00aa00'
197 ## Color gradient end for download text.
199 # c.colors.downloads.stop.fg = 'white'
201 ## Color gradient interpolation system for download backgrounds.
204 ## - rgb: Interpolate in the RGB color system.
205 ## - hsv: Interpolate in the HSV color system.
206 ## - hsl: Interpolate in the HSL color system.
207 ## - none: Don't show a gradient.
208 # c.colors.downloads.system.bg = 'rgb'
210 ## Color gradient interpolation system for download text.
213 ## - rgb: Interpolate in the RGB color system.
214 ## - hsv: Interpolate in the HSV color system.
215 ## - hsl: Interpolate in the HSL color system.
216 ## - none: Don't show a gradient.
217 # c.colors.downloads.system.fg = 'rgb'
219 ## Background color for hints. Note that you can use a `rgba(...)` value
222 # c.colors.hints.bg = 'qlineargradient(x1:0, y1:0, x2:0, y2:1, stop:0 rgba(255, 247, 133, 0.8), stop:1 rgba(255, 197, 66, 0.8))'
224 ## Font color for hints.
226 # c.colors.hints.fg = 'black'
228 ## Font color for the matched part of hints.
230 # c.colors.hints.match.fg = 'green'
232 ## Background color of the keyhint widget.
234 # c.colors.keyhint.bg = 'rgba(0, 0, 0, 80%)'
236 ## Text color for the keyhint widget.
238 # c.colors.keyhint.fg = '#FFFFFF'
240 ## Highlight color for keys to complete the current keychain.
242 # c.colors.keyhint.suffix.fg = '#FFFF00'
244 ## Background color of an error message.
246 # c.colors.messages.error.bg = 'red'
248 ## Border color of an error message.
250 # c.colors.messages.error.border = '#bb0000'
252 ## Foreground color of an error message.
254 # c.colors.messages.error.fg = 'white'
256 ## Background color of an info message.
258 # c.colors.messages.info.bg = 'black'
260 ## Border color of an info message.
262 # c.colors.messages.info.border = '#333333'
264 ## Foreground color of an info message.
266 # c.colors.messages.info.fg = 'white'
268 ## Background color of a warning message.
270 # c.colors.messages.warning.bg = 'darkorange'
272 ## Border color of a warning message.
274 # c.colors.messages.warning.border = '#d47300'
276 ## Foreground color of a warning message.
278 # c.colors.messages.warning.fg = 'white'
280 ## Background color for prompts.
282 c
.colors
.prompts
.bg
= '#333333'
284 ## Border used around UI elements in prompts.
286 # c.colors.prompts.border = '1px solid gray'
288 ## Foreground color for prompts.
290 # c.colors.prompts.fg = 'white'
292 ## Background color for the selected item in filename prompts.
294 # c.colors.prompts.selected.bg = 'grey'
296 ## Background color of the statusbar in caret mode.
298 # c.colors.statusbar.caret.bg = 'purple'
300 ## Foreground color of the statusbar in caret mode.
302 # c.colors.statusbar.caret.fg = 'white'
304 ## Background color of the statusbar in caret mode with a selection.
306 # c.colors.statusbar.caret.selection.bg = '#a12dff'
308 ## Foreground color of the statusbar in caret mode with a selection.
310 # c.colors.statusbar.caret.selection.fg = 'white'
312 ## Background color of the statusbar in command mode.
314 # c.colors.statusbar.command.bg = 'black'
316 ## Foreground color of the statusbar in command mode.
318 # c.colors.statusbar.command.fg = 'white'
320 ## Background color of the statusbar in private browsing + command mode.
322 # c.colors.statusbar.command.private.bg = 'darkslategray'
324 ## Foreground color of the statusbar in private browsing + command mode.
326 # c.colors.statusbar.command.private.fg = 'white'
328 ## Background color of the statusbar in insert mode.
330 # c.colors.statusbar.insert.bg = 'darkgreen'
332 ## Foreground color of the statusbar in insert mode.
334 # c.colors.statusbar.insert.fg = 'white'
336 ## Background color of the statusbar.
338 # c.colors.statusbar.normal.bg = 'black'
340 ## Foreground color of the statusbar.
342 # c.colors.statusbar.normal.fg = 'white'
344 ## Background color of the statusbar in passthrough mode.
346 # c.colors.statusbar.passthrough.bg = 'darkblue'
348 ## Foreground color of the statusbar in passthrough mode.
350 # c.colors.statusbar.passthrough.fg = 'white'
352 ## Background color of the statusbar in private browsing mode.
354 # c.colors.statusbar.private.bg = '#666666'
356 ## Foreground color of the statusbar in private browsing mode.
358 # c.colors.statusbar.private.fg = 'white'
360 ## Background color of the progress bar.
362 # c.colors.statusbar.progress.bg = 'white'
364 ## Foreground color of the URL in the statusbar on error.
366 # c.colors.statusbar.url.error.fg = 'orange'
368 ## Default foreground color of the URL in the statusbar.
370 # c.colors.statusbar.url.fg = 'white'
372 ## Foreground color of the URL in the statusbar for hovered links.
374 # c.colors.statusbar.url.hover.fg = 'aqua'
376 ## Foreground color of the URL in the statusbar on successful load
379 # c.colors.statusbar.url.success.http.fg = 'white'
381 ## Foreground color of the URL in the statusbar on successful load
384 # c.colors.statusbar.url.success.https.fg = 'lime'
386 ## Foreground color of the URL in the statusbar when there's a warning.
388 # c.colors.statusbar.url.warn.fg = 'yellow'
390 ## Background color of the tab bar.
392 # c.colors.tabs.bar.bg = '#555555'
394 ## Background color of unselected even tabs.
396 # c.colors.tabs.even.bg = 'darkgrey'
398 ## Foreground color of unselected even tabs.
400 # c.colors.tabs.even.fg = 'white'
402 ## Color for the tab indicator on errors.
404 # c.colors.tabs.indicator.error = '#ff0000'
406 ## Color gradient start for the tab indicator.
408 # c.colors.tabs.indicator.start = '#0000aa'
410 ## Color gradient end for the tab indicator.
412 # c.colors.tabs.indicator.stop = '#00aa00'
414 ## Color gradient interpolation system for the tab indicator.
417 ## - rgb: Interpolate in the RGB color system.
418 ## - hsv: Interpolate in the HSV color system.
419 ## - hsl: Interpolate in the HSL color system.
420 ## - none: Don't show a gradient.
421 # c.colors.tabs.indicator.system = 'rgb'
423 ## Background color of unselected odd tabs.
425 # c.colors.tabs.odd.bg = 'grey'
427 ## Foreground color of unselected odd tabs.
429 # c.colors.tabs.odd.fg = 'white'
431 ## Background color of pinned unselected even tabs.
433 # c.colors.tabs.pinned.even.bg = 'darkseagreen'
435 ## Foreground color of pinned unselected even tabs.
437 # c.colors.tabs.pinned.even.fg = 'white'
439 ## Background color of pinned unselected odd tabs.
441 # c.colors.tabs.pinned.odd.bg = 'seagreen'
443 ## Foreground color of pinned unselected odd tabs.
445 # c.colors.tabs.pinned.odd.fg = 'white'
447 ## Background color of pinned selected even tabs.
449 # c.colors.tabs.pinned.selected.even.bg = 'black'
451 ## Foreground color of pinned selected even tabs.
453 # c.colors.tabs.pinned.selected.even.fg = 'white'
455 ## Background color of pinned selected odd tabs.
457 # c.colors.tabs.pinned.selected.odd.bg = 'black'
459 ## Foreground color of pinned selected odd tabs.
461 # c.colors.tabs.pinned.selected.odd.fg = 'white'
463 ## Background color of selected even tabs.
465 # c.colors.tabs.selected.even.bg = 'black'
467 ## Foreground color of selected even tabs.
469 # c.colors.tabs.selected.even.fg = 'white'
471 ## Background color of selected odd tabs.
473 # c.colors.tabs.selected.odd.bg = 'black'
475 ## Foreground color of selected odd tabs.
477 # c.colors.tabs.selected.odd.fg = 'white'
479 ## Background color for webpages if unset (or empty to use the theme's
482 # c.colors.webpage.bg = 'white'
484 ## Which algorithm to use for modifying how colors are rendered with
485 ## darkmode. The `lightness-cielab` value was added with QtWebEngine 5.14
486 ## and is treated like `lightness-hsl` with older QtWebEngine versions.
489 ## - lightness-cielab: Modify colors by converting them to CIELAB color space and inverting the L value. Not available with Qt < 5.14.
490 ## - lightness-hsl: Modify colors by converting them to the HSL color space and inverting the lightness (i.e. the "L" in HSL).
491 ## - brightness-rgb: Modify colors by subtracting each of r, g, and b from their maximum value.
492 # c.colors.webpage.darkmode.algorithm = 'lightness-cielab'
494 ## Contrast for dark mode. This only has an effect when
495 ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
498 # c.colors.webpage.darkmode.contrast = 0.0
500 ## Render all web contents using a dark theme. Example configurations
501 ## from Chromium's `chrome://flags`: - "With simple HSL/CIELAB/RGB-based
502 ## inversion": Set `colors.webpage.darkmode.algorithm` accordingly. -
503 ## "With selective image inversion": Set
504 ## `colors.webpage.darkmode.policy.images` to `smart`. - "With selective
505 ## inversion of non-image elements": Set
506 ## `colors.webpage.darkmode.threshold.text` to 150 and
507 ## `colors.webpage.darkmode.threshold.background` to 205. - "With
508 ## selective inversion of everything": Combines the two variants above.
510 # c.colors.webpage.darkmode.enabled = False
512 ## Render all colors as grayscale. This only has an effect when
513 ## `colors.webpage.darkmode.algorithm` is set to `lightness-hsl` or
516 # c.colors.webpage.darkmode.grayscale.all = False
518 ## Desaturation factor for images in dark mode. If set to 0, images are
519 ## left as-is. If set to 1, images are completely grayscale. Values
520 ## between 0 and 1 desaturate the colors accordingly.
522 # c.colors.webpage.darkmode.grayscale.images = 0.0
524 ## Which images to apply dark mode to. With QtWebEngine 5.15.0, this
525 ## setting can cause frequent renderer process crashes due to a
526 ## https://codereview.qt-project.org/c/qt/qtwebengine-
527 ## chromium/+/304211[bug in Qt].
530 ## - always: Apply dark mode filter to all images.
531 ## - never: Never apply dark mode filter to any images.
532 ## - smart: Apply dark mode based on image content. Not available with Qt 5.15.0.
533 # c.colors.webpage.darkmode.policy.images = 'smart'
535 ## Which pages to apply dark mode to.
538 ## - always: Apply dark mode filter to all frames, regardless of content.
539 ## - smart: Apply dark mode filter to frames based on background color.
540 # c.colors.webpage.darkmode.policy.page = 'smart'
542 ## Threshold for inverting background elements with dark mode. Background
543 ## elements with brightness above this threshold will be inverted, and
544 ## below it will be left as in the original, non-dark-mode page. Set to
545 ## 256 to never invert the color or to 0 to always invert it. Note: This
546 ## behavior is the opposite of `colors.webpage.darkmode.threshold.text`!
548 # c.colors.webpage.darkmode.threshold.background = 0
550 ## Threshold for inverting text with dark mode. Text colors with
551 ## brightness below this threshold will be inverted, and above it will be
552 ## left as in the original, non-dark-mode page. Set to 256 to always
553 ## invert text color or to 0 to never invert text color.
555 # c.colors.webpage.darkmode.threshold.text = 256
557 ## Force `prefers-color-scheme: dark` colors for websites.
559 c
.colors
.webpage
.prefers_color_scheme_dark
= True
561 ## Number of commands to save in the command history. 0: no history / -1:
564 # c.completion.cmd_history_max_items = 100
566 ## Delay (in milliseconds) before updating completions after typing a
569 # c.completion.delay = 0
571 ## Default filesystem autocomplete suggestions for :open. The elements of
572 ## this list show up in the completion window under the Filesystem
573 ## category when the command line contains `:open` but no argument.
574 ## Type: List of String
575 # c.completion.favorite_paths = []
577 ## Height (in pixels or as percentage of the window) of the completion.
579 c
.completion
.height
= 150
581 ## Minimum amount of characters needed to update completions.
583 # c.completion.min_chars = 1
585 ## Which categories to show (in which order) in the :open completion.
593 # c.completion.open_categories = ['searchengines', 'quickmarks', 'bookmarks', 'history', 'filesystem']
595 ## Move on to the next part when there's only one possible completion
598 c
.completion
.quick
= False
600 ## Padding (in pixels) of the scrollbar handle in the completion window.
602 # c.completion.scrollbar.padding = 2
604 ## Width (in pixels) of the scrollbar in the completion window.
606 # c.completion.scrollbar.width = 12
608 ## When to show the autocompletion window.
611 ## - always: Whenever a completion is available.
612 ## - auto: Whenever a completion is requested.
614 # c.completion.show = 'always'
616 ## Shrink the completion to be smaller than the configured size if there
617 ## are no scrollbars.
619 c
.completion
.shrink
= True
621 ## Format of timestamps (e.g. for the history completion). See
622 ## https://sqlite.org/lang_datefunc.html and
623 ## https://docs.python.org/3/library/datetime.html#strftime-strptime-
624 ## behavior for allowed substitutions, qutebrowser uses both sqlite and
625 ## Python to format its timestamps.
627 # c.completion.timestamp_format = '%Y-%m-%d %H:%M'
629 ## Execute the best-matching command on a partial match.
631 # c.completion.use_best_match = False
633 ## A list of patterns which should not be shown in the history. This only
634 ## affects the completion. Matching URLs are still saved in the history
635 ## (and visible on the qute://history page), but hidden in the
636 ## completion. Changing this setting will cause the completion history to
637 ## be regenerated on the next start, which will take a short while.
638 ## Type: List of UrlPattern
639 # c.completion.web_history.exclude = []
641 ## Number of URLs to show in the web history. 0: no history / -1:
644 # c.completion.web_history.max_items = -1
646 ## Require a confirmation before quitting the application.
649 ## - always: Always show a confirmation.
650 ## - multiple-tabs: Show a confirmation if multiple tabs are opened.
651 ## - downloads: Show a confirmation if downloads are running
652 ## - never: Never show a confirmation.
653 c
.confirm_quit
= ['downloads']
655 ## Automatically start playing `<video>` elements.
657 # c.content.autoplay = True
659 ## List of URLs to ABP-style adblocking rulesets. Only used when Brave's
660 ## ABP-style adblocker is used (see `content.blocking.method`). You can
661 ## find an overview of available lists here:
662 ## https://adblockplus.org/en/subscriptions - note that the special
663 ## `subscribe.adblockplus.org` links aren't handled by qutebrowser, you
664 ## will instead need to find the link to the raw `.txt` file (e.g. by
665 ## extracting it from the `location` parameter of the subscribe URL and
668 # c.content.blocking.adblock.lists = ['https://easylist.to/easylist/easylist.txt', 'https://easylist.to/easylist/easyprivacy.txt']
670 ## Enable the ad/host blocker
672 # c.content.blocking.enabled = True
674 ## List of URLs to host blocklists for the host blocker. Only used when
675 ## the simple host-blocker is used (see `content.blocking.method`). The
676 ## file can be in one of the following formats: - An `/etc/hosts`-like
677 ## file - One host per line - A zip-file of any of the above, with either
678 ## only one file, or a file named `hosts` (with any extension). It's
679 ## also possible to add a local file or directory via a `file://` URL. In
680 ## case of a directory, all files in the directory are read as adblock
681 ## lists. The file `~/.config/qutebrowser/blocked-hosts` is always read
684 # c.content.blocking.hosts.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts']
686 ## Which method of blocking ads should be used. Support for Adblock Plus
687 ## (ABP) syntax blocklists using Brave's Rust library requires the
688 ## `adblock` Python package to be installed, which is an optional
689 ## dependency of qutebrowser. It is required when either `adblock` or
690 ## `both` are selected.
693 ## - auto: Use Brave's ABP-style adblocker if available, host blocking otherwise
694 ## - adblock: Use Brave's ABP-style adblocker
695 ## - hosts: Use hosts blocking
696 ## - both: Use both hosts blocking and Brave's ABP-style adblocker
697 # c.content.blocking.method = 'auto'
699 ## A list of patterns that should always be loaded, despite being blocked
700 ## by the ad-/host-blocker. Local domains are always exempt from
701 ## adblocking. Note this whitelists otherwise blocked requests, not
702 ## first-party URLs. As an example, if `example.org` loads an ad from
703 ## `ads.example.org`, the whitelist entry could be
704 ## `https://ads.example.org/*`. If you want to disable the adblocker on a
705 ## given page, use the `content.blocking.enabled` setting with a URL
707 ## Type: List of UrlPattern
708 # c.content.blocking.whitelist = []
710 ## Enable support for the HTML 5 web application cache feature. An
711 ## application cache acts like an HTTP cache in some sense. For documents
712 ## that use the application cache via JavaScript, the loader engine will
713 ## first ask the application cache for the contents, before hitting the
716 # c.content.cache.appcache = True
718 ## Maximum number of pages to hold in the global memory page cache. The
719 ## page cache allows for a nicer user experience when navigating forth or
720 ## back to pages in the forward/back history, by pausing and resuming up
721 ## to _n_ pages. For more information about the feature, please refer to:
722 ## http://webkit.org/blog/427/webkit-page-cache-i-the-basics/
724 # c.content.cache.maximum_pages = 0
726 ## Size (in bytes) of the HTTP network cache. Null to use the default
727 ## value. With QtWebEngine, the maximum supported value is 2147483647 (~2
730 # c.content.cache.size = None
732 ## Allow websites to read canvas elements. Note this is needed for some
733 ## websites to work properly.
735 # c.content.canvas_reading = True
737 ## Which cookies to accept. With QtWebEngine, this setting also controls
738 ## other features with tracking capabilities similar to those of cookies;
739 ## including IndexedDB, DOM storage, filesystem API, service workers, and
740 ## AppCache. Note that with QtWebKit, only `all` and `never` are
741 ## supported as per-domain values. Setting `no-3rdparty` or `no-
742 ## unknown-3rdparty` per-domain on QtWebKit will have the same effect as
743 ## `all`. If this setting is used with URL patterns, the pattern gets
744 ## applied to the origin/first party URL of the page making the request,
745 ## not the request URL.
748 ## - all: Accept all cookies.
749 ## - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail.
750 ## - 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.
751 ## - never: Don't accept cookies at all.
752 c
.content
.cookies
.accept
= 'never'
756 # c.content.cookies.store = True
758 ## Default encoding to use for websites. The encoding must be a string
759 ## describing an encoding such as _utf-8_, _iso-8859-1_, etc.
761 # c.content.default_encoding = 'iso-8859-1'
763 ## Allow websites to share screen content.
769 # c.content.desktop_capture = 'ask'
771 ## Try to pre-fetch DNS entries to speed up browsing.
773 c
.content
.dns_prefetch
= True
775 ## Expand each subframe to its contents. This will flatten all the frames
776 ## to become one scrollable page.
778 # c.content.frame_flattening = False
780 ## Set fullscreen notification overlay timeout in milliseconds. If set to
781 ## 0, no overlay will be displayed.
783 # c.content.fullscreen.overlay_timeout = 3000
785 ## Limit fullscreen to the browser window (does not expand to fill the
788 # c.content.fullscreen.window = False
790 ## Allow websites to request geolocations.
796 c
.content
.geolocation
= False
798 ## Value to send in the `Accept-Language` header. Note that the value
799 ## read from JavaScript is always the global value.
801 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'
803 ## Custom headers for qutebrowser HTTP requests.
805 # c.content.headers.custom = {}
807 ## Value to send in the `DNT` header. When this is set to true,
808 ## qutebrowser asks websites to not track your identity. If set to null,
809 ## the DNT header is not sent at all.
811 # c.content.headers.do_not_track = True
813 ## When to send the Referer header. The Referer header tells websites
814 ## from which website you were coming from when visiting them. No restart
815 ## is needed with QtWebKit.
818 ## - always: Always send the Referer.
819 ## - never: Never send the Referer. This is not recommended, as some sites may break.
820 ## - 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.
821 # c.content.headers.referer = 'same-domain'
823 ## User agent to send. The following placeholders are defined: *
824 ## `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`:
825 ## The underlying WebKit version (set to a fixed value with
826 ## QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for
827 ## QtWebEngine. * `{qt_version}`: The underlying Qt version. *
828 ## `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for
829 ## QtWebEngine. * `{upstream_browser_version}`: The corresponding
830 ## Safari/Chrome version. * `{qutebrowser_version}`: The currently
831 ## running qutebrowser version. The default value is equal to the
832 ## unchanged user agent of QtWebKit/QtWebEngine. Note that the value
833 ## read from JavaScript is always the global value. With QtWebEngine
834 ## between 5.12 and 5.14 (inclusive), changing the value exposed to
835 ## JavaScript requires a restart.
836 ## Type: FormatString
837 # 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}'
839 ## Enable host blocking.
841 # c.content.host_blocking.enabled = True
843 ## List of URLs of lists which contain hosts to block. The file can be
844 ## in one of the following formats: - An `/etc/hosts`-like file - One
845 ## host per line - A zip-file of any of the above, with either only one
846 ## file, or a file named `hosts` (with any extension). It's also
847 ## possible to add a local file or directory via a `file://` URL. In case
848 ## of a directory, all files in the directory are read as adblock lists.
849 ## The file `~/.config/qutebrowser/blocked-hosts` is always read if it
852 # c.content.host_blocking.lists = ['https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts']
854 ## A list of patterns that should always be loaded, despite being ad-
855 ## blocked. Note this whitelists blocked hosts, not first-party URLs. As
856 ## an example, if `example.org` loads an ad from `ads.example.org`, the
857 ## whitelisted host should be `ads.example.org`. If you want to disable
858 ## the adblocker on a given page, use the `content.host_blocking.enabled`
859 ## setting with a URL pattern instead. Local domains are always exempt
860 ## from hostblocking.
861 ## Type: List of UrlPattern
862 # c.content.host_blocking.whitelist = []
864 ## Enable hyperlink auditing (`<a ping>`).
866 # c.content.hyperlink_auditing = False
868 ## Load images automatically in web pages.
870 # c.content.images = True
872 ## Show javascript alerts.
874 # c.content.javascript.alert = True
876 ## Allow JavaScript to read from or write to the clipboard. With
877 ## QtWebEngine, writing the clipboard as response to a user interaction
878 ## is always allowed.
880 # c.content.javascript.can_access_clipboard = False
882 ## Allow JavaScript to close tabs.
884 # c.content.javascript.can_close_tabs = False
886 ## Allow JavaScript to open new tabs without user interaction.
888 # c.content.javascript.can_open_tabs_automatically = False
890 ## Enable JavaScript.
892 # c.content.javascript.enabled = True
894 ## Log levels to use for JavaScript console logging messages. When a
895 ## JavaScript message with the level given in the dictionary key is
896 ## logged, the corresponding dictionary value selects the qutebrowser
897 ## logger to use. On QtWebKit, the "unknown" setting is always used. The
898 ## following levels are valid: `none`, `debug`, `info`, `warning`,
901 # c.content.javascript.log = {'unknown': 'debug', 'info': 'debug', 'warning': 'debug', 'error': 'debug'}
903 ## Use the standard JavaScript modal dialog for `alert()` and
906 # c.content.javascript.modal_dialog = False
908 ## Show javascript prompts.
910 # c.content.javascript.prompt = True
912 ## Allow locally loaded documents to access other local URLs.
914 # c.content.local_content_can_access_file_urls = True
916 ## Allow locally loaded documents to access remote URLs.
918 # c.content.local_content_can_access_remote_urls = False
920 ## Enable support for HTML 5 local storage and Web SQL.
922 # c.content.local_storage = True
924 ## Allow websites to record audio.
930 # c.content.media.audio_capture = 'ask'
932 ## Allow websites to record audio and video.
938 # c.content.media.audio_video_capture = 'ask'
940 ## Allow websites to record video.
946 # c.content.media.video_capture = 'ask'
948 ## Allow websites to lock your mouse pointer.
954 # c.content.mouse_lock = 'ask'
956 ## Automatically mute tabs. Note that if the `:tab-mute` command is used,
957 ## the mute status for the affected tab is now controlled manually, and
958 ## this setting doesn't have any effect.
960 # c.content.mute = False
962 ## Netrc-file for HTTP authentication. If unset, `~/.netrc` is used.
964 # c.content.netrc_file = None
966 ## Allow websites to show notifications.
972 c
.content
.notifications
= 'ask'
973 config
.set('content.notifications', True, '*://*.gitlab.com/*')
974 config
.set('content.notifications', True, '*://*.google.com/*')
976 ## Allow pdf.js to view PDF files in the browser. Note that the files can
977 ## still be downloaded by clicking the download button in the pdf.js
980 # c.content.pdfjs = False
982 ## Allow websites to request persistent storage quota via
983 ## `navigator.webkitPersistentStorage.requestQuota`.
989 # c.content.persistent_storage = 'ask'
991 ## Enable plugins in Web pages.
993 # c.content.plugins = False
995 ## Draw the background color and images also when the page is printed.
997 # c.content.print_element_backgrounds = True
999 ## Open new windows in private browsing mode which does not record
1002 # c.content.private_browsing = False
1004 ## Proxy to use. In addition to the listed values, you can use a
1005 ## `socks://...` or `http://...` URL. Note that with QtWebEngine, it will
1006 ## take a couple of seconds until the change is applied, if this value is
1007 ## changed at runtime.
1010 ## - system: Use the system wide proxy.
1011 ## - none: Don't use any proxy
1012 # c.content.proxy = 'system'
1014 ## Send DNS requests over the configured proxy.
1016 # c.content.proxy_dns_requests = True
1018 ## Allow websites to register protocol handlers via
1019 ## `navigator.registerProtocolHandler`.
1025 # c.content.register_protocol_handler = 'ask'
1026 with config
.pattern('*://mail.google.com/*') as p
:
1027 p
.content
.register_protocol_handler
= False
1028 with config
.pattern('*://calendar.google.com/*') as p
:
1029 p
.content
.register_protocol_handler
= False
1031 ## Enable quirks (such as faked user agent headers) needed to get
1032 ## specific sites to work properly.
1034 # c.content.site_specific_quirks = True
1036 ## Validate SSL handshakes.
1042 # c.content.ssl_strict = 'ask'
1044 ## How navigation requests to URLs with unknown schemes are handled.
1047 ## - disallow: Disallows all navigation requests to URLs with unknown schemes.
1048 ## - 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.
1049 ## - allow-all: Allows all navigation requests to URLs with unknown schemes.
1050 # c.content.unknown_url_scheme_policy = 'allow-from-user-interaction'
1052 ## List of user stylesheet filenames to use.
1053 ## Type: List of File, or File
1054 # c.content.user_stylesheets = []
1058 # c.content.webgl = True
1060 ## Which interfaces to expose via WebRTC.
1063 ## - all-interfaces: WebRTC has the right to enumerate all interfaces and bind them to discover public interfaces.
1064 ## - 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.
1065 ## - default-public-interface-only: WebRTC should only use the default route used by http. This doesn't expose any local addresses.
1066 ## - 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.
1067 # c.content.webrtc_ip_handling_policy = 'all-interfaces'
1069 ## Monitor load requests for cross-site scripting attempts. Suspicious
1070 ## scripts will be blocked and reported in the devtools JavaScript
1071 ## console. Note that bypasses for the XSS auditor are widely known and
1072 ## it can be abused for cross-site info leaks in some scenarios, see:
1073 ## https://www.chromium.org/developers/design-documents/xss-auditor
1075 # c.content.xss_auditing = False
1077 ## Directory to save downloads to. If unset, a sensible OS-specific
1080 c
.downloads
.location
.directory
= "~/downloads"
1082 ## Prompt the user for the download location. If set to false,
1083 ## `downloads.location.directory` will be used.
1085 # c.downloads.location.prompt = True
1087 ## Remember the last used download directory.
1089 # c.downloads.location.remember = True
1091 ## What to display in the download filename input.
1094 ## - path: Show only the download path.
1095 ## - filename: Show only download filename.
1096 ## - both: Show download path and filename.
1097 # c.downloads.location.suggestion = 'path'
1099 ## Default program used to open downloads. If null, the default internal
1100 ## handler is used. Any `{}` in the string will be expanded to the
1101 ## filename, else the filename will be appended.
1103 c
.downloads
.open_dispatcher
= "rifle"
1105 ## Where to show the downloaded files.
1106 ## Type: VerticalPosition
1110 # c.downloads.position = 'top'
1112 ## Duration (in milliseconds) to wait before removing finished downloads.
1113 ## If set to -1, downloads are never removed.
1115 # c.downloads.remove_finished = -1
1117 ## Editor (and arguments) to use for the `edit-*` commands. The following
1118 ## placeholders are defined: * `{file}`: Filename of the file to be
1119 ## edited. * `{line}`: Line in which the caret is found in the text. *
1120 ## `{column}`: Column in which the caret is found in the text. *
1121 ## `{line0}`: Same as `{line}`, but starting from index 0. * `{column0}`:
1122 ## Same as `{column}`, but starting from index 0.
1123 ## Type: ShellCommand
1124 c
.editor
.command
= ['urxvtc', '-e', 'vim', '{file}', '-c', 'normal {line}G{column0}l']
1126 ## Encoding to use for the editor.
1128 # c.editor.encoding = 'utf-8'
1130 ## Handler for selecting file(s) in forms. If `external`, then the
1131 ## commands specified by `fileselect.single_file.command` and
1132 ## `fileselect.multiple_files.command` are used to select one or multiple
1133 ## files respectively.
1136 ## - default: Use the default file selector.
1137 ## - external: Use an external command.
1138 # c.fileselect.handler = 'default'
1140 ## Command (and arguments) to use for selecting multiple files in forms.
1141 ## The command should write the selected file paths to the specified
1142 ## file, separated by newlines. The following placeholders are defined: *
1143 ## `{}`: Filename of the file to be written to.
1144 ## Type: ShellCommand
1145 # c.fileselect.multiple_files.command = ['xterm', '-e', 'ranger', '--choosefiles={}']
1147 ## Command (and arguments) to use for selecting a single file in forms.
1148 ## The command should write the selected file path to the specified file.
1149 ## The following placeholders are defined: * `{}`: Filename of the file
1150 ## to be written to.
1151 ## Type: ShellCommand
1152 # c.fileselect.single_file.command = ['xterm', '-e', 'ranger', '--choosefile={}']
1154 ## Font used in the completion categories.
1156 # c.fonts.completion.category = 'bold default_size default_family'
1158 ## Font used in the completion widget.
1160 # c.fonts.completion.entry = 'default_size default_family'
1162 ## Font used for the context menu. If set to null, the Qt default is
1165 # c.fonts.contextmenu = None
1167 ## Font used for the debugging console.
1169 # c.fonts.debug_console = 'default_size default_family'
1171 ## Default font families to use. Whenever "default_family" is used in a
1172 ## font setting, it's replaced with the fonts listed here. If set to an
1173 ## empty value, a system-specific monospace default is used.
1174 ## Type: List of Font, or Font
1175 c
.fonts
.default_family
= ["Hack"]
1177 ## Default font size to use. Whenever "default_size" is used in a font
1178 ## setting, it's replaced with the size listed here. Valid values are
1179 ## either a float value with a "pt" suffix, or an integer value with a
1182 # c.fonts.default_size = '10pt'
1184 ## Font used for the downloadbar.
1186 # c.fonts.downloads = 'default_size default_family'
1188 ## Font used for the hints.
1190 # c.fonts.hints = 'bold default_size default_family'
1192 ## Font used in the keyhint widget.
1194 # c.fonts.keyhint = 'default_size default_family'
1196 ## Font used for error messages.
1198 # c.fonts.messages.error = 'default_size default_family'
1200 ## Font used for info messages.
1202 # c.fonts.messages.info = 'default_size default_family'
1204 ## Font used for warning messages.
1206 # c.fonts.messages.warning = 'default_size default_family'
1208 ## Font used for prompts.
1210 # c.fonts.prompts = 'default_size sans-serif'
1212 ## Font used in the statusbar.
1214 # c.fonts.statusbar = 'default_size default_family'
1216 ## Font used for selected tabs.
1218 # c.fonts.tabs.selected = 'default_size default_family'
1220 ## Font used for unselected tabs.
1222 # c.fonts.tabs.unselected = 'default_size default_family'
1224 ## Font family for cursive fonts.
1226 # c.fonts.web.family.cursive = ''
1228 ## Font family for fantasy fonts.
1230 # c.fonts.web.family.fantasy = ''
1232 ## Font family for fixed fonts.
1234 # c.fonts.web.family.fixed = ''
1236 ## Font family for sans-serif fonts.
1238 # c.fonts.web.family.sans_serif = ''
1240 ## Font family for serif fonts.
1242 # c.fonts.web.family.serif = ''
1244 ## Font family for standard fonts.
1246 # c.fonts.web.family.standard = ''
1248 ## Default font size (in pixels) for regular text.
1250 # c.fonts.web.size.default = 16
1252 ## Default font size (in pixels) for fixed-pitch text.
1254 # c.fonts.web.size.default_fixed = 13
1256 ## Hard minimum font size (in pixels).
1258 # c.fonts.web.size.minimum = 0
1260 ## Minimum logical font size (in pixels) that is applied when zooming
1263 # c.fonts.web.size.minimum_logical = 6
1265 ## When a hint can be automatically followed without pressing Enter.
1268 ## - always: Auto-follow whenever there is only a single hint on a page.
1269 ## - unique-match: Auto-follow whenever there is a unique non-empty match in either the hint string (word mode) or filter (number mode).
1270 ## - 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).
1271 ## - never: The user will always need to press Enter to follow a hint.
1272 # c.hints.auto_follow = 'unique-match'
1274 ## Duration (in milliseconds) to ignore normal-mode key bindings after a
1275 ## successful auto-follow.
1277 # c.hints.auto_follow_timeout = 0
1279 ## CSS border value for hints.
1281 # c.hints.border = '1px solid #E3BE23'
1283 ## Characters used for hint strings.
1284 ## Type: UniqueCharString
1285 c
.hints
.chars
= 'aoeuidhtns'
1287 ## Dictionary file to be used by the word hints.
1289 # c.hints.dictionary = '/usr/share/dict/words'
1291 ## Which implementation to use to find elements to hint.
1294 ## - javascript: Better but slower
1295 ## - python: Slightly worse but faster
1296 # c.hints.find_implementation = 'python'
1298 ## Hide unmatched hints in rapid mode.
1300 # c.hints.hide_unmatched_rapid_hints = True
1302 ## Leave hint mode when starting a new page load.
1304 # c.hints.leave_on_load = True
1306 ## Minimum number of characters used for hint strings.
1308 c
.hints
.min_chars
= 2
1310 ## Mode to use for hints.
1313 ## - 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.)
1314 ## - letter: Use the characters in the `hints.chars` setting.
1315 ## - word: Use hints words based on the html elements and the extra words.
1316 # c.hints.mode = 'letter'
1318 ## Comma-separated list of regular expressions to use for 'next' links.
1319 ## Type: List of Regex
1320 # c.hints.next_regexes = ['\\bnext\\b', '\\bmore\\b', '\\bnewer\\b', '\\b[>→≫]\\b', '\\b(>>|»)\\b', '\\bcontinue\\b']
1322 ## Padding (in pixels) for hints.
1324 # c.hints.padding = {'top': 0, 'bottom': 0, 'left': 3, 'right': 3}
1326 ## Comma-separated list of regular expressions to use for 'prev' links.
1327 ## Type: List of Regex
1328 # c.hints.prev_regexes = ['\\bprev(ious)?\\b', '\\bback\\b', '\\bolder\\b', '\\b[<←≪]\\b', '\\b(<<|«)\\b']
1330 ## Rounding radius (in pixels) for the edges of hints.
1332 # c.hints.radius = 3
1334 ## Scatter hint key chains (like Vimium) or not (like dwb). Ignored for
1337 c
.hints
.scatter
= False
1339 ## CSS selectors used to determine which elements on a page should have
1342 # 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']}
1344 ## Make characters in hint strings uppercase.
1346 # c.hints.uppercase = False
1348 ## Maximum time (in minutes) between two history items for them to be
1349 ## considered being from the same browsing session. Items with less time
1350 ## between them are grouped when being displayed in `:history`. Use -1 to
1351 ## disable separation.
1353 # c.history_gap_interval = 30
1355 ## Allow Escape to quit the crash reporter.
1357 # c.input.escape_quits_reporter = True
1359 ## Which unbound keys to forward to the webview in normal mode.
1362 ## - all: Forward all unbound keys.
1363 ## - auto: Forward unbound non-alphanumeric keys.
1364 ## - none: Don't forward any keys.
1365 # c.input.forward_unbound_keys = 'auto'
1367 ## Enter insert mode if an editable element is clicked.
1369 # c.input.insert_mode.auto_enter = True
1371 ## Leave insert mode if a non-editable element is clicked.
1373 # c.input.insert_mode.auto_leave = True
1375 ## Automatically enter insert mode if an editable element is focused
1376 ## after loading the page.
1378 # c.input.insert_mode.auto_load = False
1380 ## Leave insert mode when starting a new page load. Patterns may be
1381 ## unreliable on this setting, and they may match the url you are
1382 ## navigating to, or the URL you are navigating from.
1384 # c.input.insert_mode.leave_on_load = False
1386 ## Switch to insert mode when clicking flash and other plugins.
1388 # c.input.insert_mode.plugins = False
1390 ## Include hyperlinks in the keyboard focus chain when tabbing.
1392 # c.input.links_included_in_focus_chain = True
1394 ## Enable back and forward buttons on the mouse.
1396 # c.input.mouse.back_forward_buttons = True
1398 ## Enable Opera-like mouse rocker gestures. This disables the context
1401 # c.input.mouse.rocker_gestures = False
1403 ## Timeout (in milliseconds) for partially typed key bindings. If the
1404 ## current input forms only partial matches, the keystring will be
1405 ## cleared after this time. If set to 0, partially typed bindings are
1408 c
.input.partial_timeout
= 5000
1410 ## Enable spatial navigation. Spatial navigation consists in the ability
1411 ## to navigate between focusable elements in a Web page, such as
1412 ## hyperlinks and form controls, by using Left, Right, Up and Down arrow
1413 ## keys. For example, if the user presses the Right key, heuristics
1414 ## determine whether there is an element he might be trying to reach
1415 ## towards the right and which element he probably wants.
1417 # c.input.spatial_navigation = False
1419 ## Keychains that shouldn't be shown in the keyhint dialog. Globs are
1420 ## supported, so `;*` will blacklist all keychains starting with `;`. Use
1421 ## `*` to disable keyhints.
1422 ## Type: List of String
1423 # c.keyhint.blacklist = []
1425 ## Time (in milliseconds) from pressing a key to seeing the keyhint
1428 # c.keyhint.delay = 500
1430 ## Rounding radius (in pixels) for the edges of the keyhint dialog.
1432 # c.keyhint.radius = 6
1434 ## Level for console (stdout/stderr) logs. Ignored if the `--loglevel` or
1435 ## `--debug` CLI flags are used.
1444 # c.logging.level.console = 'info'
1446 ## Level for in-memory logs.
1455 # c.logging.level.ram = 'debug'
1457 ## Duration (in milliseconds) to show messages in the statusbar for. Set
1458 ## to 0 to never clear messages.
1460 # c.messages.timeout = 2000
1462 ## How to open links in an existing instance if a new one is launched.
1463 ## This happens when e.g. opening a link from a terminal. See
1464 ## `new_instance_open_target_window` to customize in which window the
1465 ## link is opened in.
1468 ## - tab: Open a new tab in the existing window and activate the window.
1469 ## - tab-bg: Open a new background tab in the existing window and activate the window.
1470 ## - tab-silent: Open a new tab in the existing window without activating the window.
1471 ## - tab-bg-silent: Open a new background tab in the existing window without activating the window.
1472 ## - window: Open in a new window.
1473 ## - private-window: Open in a new private window.
1474 # c.new_instance_open_target = 'tab'
1476 ## Which window to choose when opening links as new tabs. When
1477 ## `new_instance_open_target` is set to `window`, this is ignored.
1480 ## - first-opened: Open new tabs in the first (oldest) opened window.
1481 ## - last-opened: Open new tabs in the last (newest) opened window.
1482 ## - last-focused: Open new tabs in the most recently focused window.
1483 ## - last-visible: Open new tabs in the most recently visible window.
1484 # c.new_instance_open_target_window = 'last-focused'
1486 ## Show a filebrowser in download prompts.
1488 # c.prompt.filebrowser = True
1490 ## Rounding radius (in pixels) for the edges of prompts.
1492 # c.prompt.radius = 8
1494 ## Additional arguments to pass to Qt, without leading `--`. With
1495 ## QtWebEngine, some Chromium arguments (see
1496 ## https://peter.sh/experiments/chromium-command-line-switches/ for a
1498 ## Type: List of String
1499 c
.qt
.args
= [str('proxy-pac-url=file://' / config
.configdir
/ 'proxy.pac')]
1501 ## Additional environment variables to set. Setting an environment
1502 ## variable to null/None will unset it.
1506 ## Force a Qt platform to use. This sets the `QT_QPA_PLATFORM`
1507 ## environment variable and is useful to force using the XCB plugin when
1508 ## running QtWebEngine on Wayland.
1510 # c.qt.force_platform = None
1512 ## Force a Qt platformtheme to use. This sets the `QT_QPA_PLATFORMTHEME`
1513 ## environment variable which controls dialogs like the filepicker. By
1514 ## default, Qt determines the platform theme based on the desktop
1517 # c.qt.force_platformtheme = None
1519 ## Force software rendering for QtWebEngine. This is needed for
1520 ## QtWebEngine to work with Nouveau drivers and can be useful in other
1521 ## scenarios related to graphic issues.
1524 ## - software-opengl: Tell LibGL to use a software implementation of GL (`LIBGL_ALWAYS_SOFTWARE` / `QT_XCB_FORCE_SOFTWARE_OPENGL`)
1525 ## - qt-quick: Tell Qt Quick to use a software renderer instead of OpenGL. (`QT_QUICK_BACKEND=software`)
1526 ## - chromium: Tell Chromium to disable GPU support and use Skia software rendering instead. (`--disable-gpu`)
1527 ## - none: Don't force software rendering.
1528 # c.qt.force_software_rendering = 'none'
1530 ## Turn on Qt HighDPI scaling. This is equivalent to setting
1531 ## QT_AUTO_SCREEN_SCALE_FACTOR=1 or QT_ENABLE_HIGHDPI_SCALING=1 (Qt >=
1532 ## 5.14) in the environment. It's off by default as it can cause issues
1533 ## with some bitmap fonts. As an alternative to this, it's possible to
1534 ## set font sizes and the `zoom.default` setting.
1536 # c.qt.highdpi = False
1538 ## When to use Chromium's low-end device mode. This improves the RAM
1539 ## usage of renderer processes, at the expense of performance.
1542 ## - always: Always use low-end device mode.
1543 ## - auto: Decide automatically (uses low-end mode with < 1 GB available RAM).
1544 ## - never: Never use low-end device mode.
1545 # c.qt.low_end_device_mode = 'auto'
1547 ## Which Chromium process model to use. Alternative process models use
1548 ## less resources, but decrease security and robustness. See the
1549 ## following pages for more details: -
1550 ## https://www.chromium.org/developers/design-documents/process-models
1551 ## - https://doc.qt.io/qt-5/qtwebengine-features.html#process-models
1554 ## - process-per-site-instance: Pages from separate sites are put into separate processes and separate visits to the same site are also isolated.
1555 ## - 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.
1556 ## - single-process: Run all tabs in a single process. This should be used for debugging purposes only, and it disables `:open --private`.
1557 # c.qt.process_model = 'process-per-site-instance'
1559 ## When/how to show the scrollbar.
1562 ## - always: Always show the scrollbar.
1563 ## - never: Never show the scrollbar.
1564 ## - when-searching: Show the scrollbar when searching for text in the webpage. With the QtWebKit backend, this is equal to `never`.
1565 ## - 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.
1566 # c.scrolling.bar = 'overlay'
1568 ## Enable smooth scrolling for web pages. Note smooth scrolling does not
1569 ## work with the `:scroll-px` command.
1571 # c.scrolling.smooth = False
1573 ## When to find text on a page case-insensitively.
1576 ## - always: Search case-insensitively.
1577 ## - never: Search case-sensitively.
1578 ## - smart: Search case-sensitively if there are capital characters.
1579 # c.search.ignore_case = 'smart'
1581 ## Find text on a page incrementally, renewing the search for each typed
1584 # c.search.incremental = True
1586 ## Wrap around at the top and bottom of the page when advancing through
1587 ## text matches using `:search-next` and `:search-prev`.
1589 # c.search.wrap = True
1591 ## Name of the session to save by default. If this is set to null, the
1592 ## session which was last loaded is saved.
1593 ## Type: SessionName
1594 # c.session.default_name = None
1596 ## Load a restored tab as soon as it takes focus.
1598 c
.session
.lazy_restore
= True
1600 ## Whether to automatically save a session when it is closed.
1602 # c.session.save_when_close = True
1604 ## Which sessions to load on startup. None will load the last saved
1605 ## sessions from the sate file, if you want to not load any sessions,
1606 ## pass an empty list.
1607 ## Type: List of String
1608 # c.session.startup_sessions = None
1610 ## Languages to use for spell checking. You can check for available
1611 ## languages and install dictionaries using scripts/dictcli.py. Run the
1612 ## script with -h/--help for instructions.
1613 ## Type: List of String
1615 ## - af-ZA: Afrikaans (South Africa)
1616 ## - bg-BG: Bulgarian (Bulgaria)
1617 ## - ca-ES: Catalan (Spain)
1618 ## - cs-CZ: Czech (Czech Republic)
1619 ## - da-DK: Danish (Denmark)
1620 ## - de-DE: German (Germany)
1621 ## - el-GR: Greek (Greece)
1622 ## - en-AU: English (Australia)
1623 ## - en-CA: English (Canada)
1624 ## - en-GB: English (United Kingdom)
1625 ## - en-US: English (United States)
1626 ## - es-ES: Spanish (Spain)
1627 ## - et-EE: Estonian (Estonia)
1628 ## - fa-IR: Farsi (Iran)
1629 ## - fo-FO: Faroese (Faroe Islands)
1630 ## - fr-FR: French (France)
1631 ## - he-IL: Hebrew (Israel)
1632 ## - hi-IN: Hindi (India)
1633 ## - hr-HR: Croatian (Croatia)
1634 ## - hu-HU: Hungarian (Hungary)
1635 ## - id-ID: Indonesian (Indonesia)
1636 ## - it-IT: Italian (Italy)
1638 ## - lt-LT: Lithuanian (Lithuania)
1639 ## - lv-LV: Latvian (Latvia)
1640 ## - nb-NO: Norwegian (Norway)
1641 ## - nl-NL: Dutch (Netherlands)
1642 ## - pl-PL: Polish (Poland)
1643 ## - pt-BR: Portuguese (Brazil)
1644 ## - pt-PT: Portuguese (Portugal)
1645 ## - ro-RO: Romanian (Romania)
1646 ## - ru-RU: Russian (Russia)
1647 ## - sh: Serbo-Croatian
1648 ## - sk-SK: Slovak (Slovakia)
1649 ## - sl-SI: Slovenian (Slovenia)
1652 ## - sv-SE: Swedish (Sweden)
1653 ## - ta-IN: Tamil (India)
1654 ## - tg-TG: Tajik (Tajikistan)
1655 ## - tr-TR: Turkish (Turkey)
1656 ## - uk-UA: Ukrainian (Ukraine)
1657 ## - vi-VN: Vietnamese (Viet Nam)
1658 c
.spellcheck
.languages
= ['en-GB']
1660 ## Padding (in pixels) for the statusbar.
1662 # c.statusbar.padding = {'top': 1, 'bottom': 1, 'left': 0, 'right': 0}
1664 ## Position of the status bar.
1665 ## Type: VerticalPosition
1669 # c.statusbar.position = 'bottom'
1671 ## When to show the statusbar.
1674 ## - always: Always show the statusbar.
1675 ## - never: Always hide the statusbar.
1676 ## - in-mode: Show the statusbar when in modes other than normal mode.
1677 # c.statusbar.show = 'always'
1679 ## List of widgets displayed in the statusbar.
1680 ## Type: List of String
1682 ## - url: Current page URL.
1683 ## - scroll: Percentage of the current page position like `10%`.
1684 ## - scroll_raw: Raw percentage of the current page position like `10`.
1685 ## - history: Display an arrow when possible to go back/forward in history.
1686 ## - tabs: Current active tab, e.g. `2`.
1687 ## - keypress: Display pressed keys when composing a vi command.
1688 ## - progress: Progress bar for the current page loading.
1689 # c.statusbar.widgets = ['keypress', 'url', 'scroll', 'history', 'tabs', 'progress']
1691 ## Open new tabs (middleclick/ctrl+click) in the background.
1693 # c.tabs.background = True
1695 ## Mouse button with which to close tabs.
1698 ## - right: Close tabs on right-click.
1699 ## - middle: Close tabs on middle-click.
1700 ## - none: Don't close tabs using the mouse.
1701 # c.tabs.close_mouse_button = 'middle'
1703 ## How to behave when the close mouse button is pressed on the tab bar.
1706 ## - new-tab: Open a new tab.
1707 ## - close-current: Close the current tab.
1708 ## - close-last: Close the last tab.
1709 ## - ignore: Don't do anything.
1710 # c.tabs.close_mouse_button_on_bar = 'new-tab'
1712 ## Scaling factor for favicons in the tab bar. The tab size is unchanged,
1713 ## so big favicons also require extra `tabs.padding`.
1715 # c.tabs.favicons.scale = 1.0
1717 ## When to show favicons in the tab bar. When switching this from never
1718 ## to always/pinned, note that favicons might not be loaded yet, thus
1719 ## tabs might require a reload to display them.
1722 ## - always: Always show favicons.
1723 ## - never: Always hide favicons.
1724 ## - pinned: Show favicons only on pinned tabs.
1725 # c.tabs.favicons.show = 'always'
1727 ## Maximum stack size to remember for tab switches (-1 for no maximum).
1729 # c.tabs.focus_stack_size = 10
1731 ## Padding (in pixels) for tab indicators.
1733 # c.tabs.indicator.padding = {'top': 2, 'bottom': 2, 'left': 0, 'right': 4}
1735 ## Width (in pixels) of the progress indicator (0 to disable).
1737 # c.tabs.indicator.width = 3
1739 ## How to behave when the last tab is closed. If the
1740 ## `tabs.tabs_are_windows` setting is set, this is ignored and the
1741 ## behavior is always identical to the `close` value.
1744 ## - ignore: Don't do anything.
1745 ## - blank: Load a blank page.
1746 ## - startpage: Load the start page.
1747 ## - default-page: Load the default page.
1748 ## - close: Close the window.
1749 # c.tabs.last_close = 'ignore'
1751 ## Maximum width (in pixels) of tabs (-1 for no maximum). This setting
1752 ## only applies when tabs are horizontal. This setting does not apply to
1753 ## pinned tabs, unless `tabs.pinned.shrink` is False. This setting may
1754 ## not apply properly if max_width is smaller than the minimum size of
1755 ## tab contents, or smaller than tabs.min_width.
1757 # c.tabs.max_width = -1
1759 ## Minimum width (in pixels) of tabs (-1 for the default minimum size
1760 ## behavior). This setting only applies when tabs are horizontal. This
1761 ## setting does not apply to pinned tabs, unless `tabs.pinned.shrink` is
1764 # c.tabs.min_width = -1
1766 ## When switching tabs, what input mode is applied.
1769 ## - persist: Retain the current mode.
1770 ## - restore: Restore previously saved mode.
1771 ## - normal: Always revert to normal mode.
1772 # c.tabs.mode_on_change = 'normal'
1774 ## Switch between tabs using the mouse wheel.
1776 # c.tabs.mousewheel_switching = True
1778 ## Position of new tabs opened from another tab. See
1779 ## `tabs.new_position.stacking` for controlling stacking behavior.
1780 ## Type: NewTabPosition
1782 ## - prev: Before the current tab.
1783 ## - next: After the current tab.
1784 ## - first: At the beginning.
1785 ## - last: At the end.
1786 # c.tabs.new_position.related = 'next'
1788 ## Stack related tabs on top of each other when opened consecutively.
1789 ## Only applies for `next` and `prev` values of
1790 ## `tabs.new_position.related` and `tabs.new_position.unrelated`.
1792 # c.tabs.new_position.stacking = True
1794 ## Position of new tabs which are not opened from another tab. See
1795 ## `tabs.new_position.stacking` for controlling stacking behavior.
1796 ## Type: NewTabPosition
1798 ## - prev: Before the current tab.
1799 ## - next: After the current tab.
1800 ## - first: At the beginning.
1801 ## - last: At the end.
1802 c
.tabs
.new_position
.unrelated
= 'next'
1804 ## Padding (in pixels) around text for tabs.
1806 # c.tabs.padding = {'top': 0, 'bottom': 0, 'left': 5, 'right': 5}
1808 ## Force pinned tabs to stay at fixed URL.
1810 # c.tabs.pinned.frozen = True
1812 ## Shrink pinned tabs down to their contents.
1814 # c.tabs.pinned.shrink = True
1816 ## Position of the tab bar.
1823 # c.tabs.position = 'top'
1825 ## Which tab to select when the focused tab is removed.
1826 ## Type: SelectOnRemove
1828 ## - prev: Select the tab which came before the closed one (left in horizontal, above in vertical).
1829 ## - next: Select the tab which came after the closed one (right in horizontal, below in vertical).
1830 ## - last-used: Select the previously selected tab.
1831 c
.tabs
.select_on_remove
= 'prev'
1833 ## When to show the tab bar.
1836 ## - always: Always show the tab bar.
1837 ## - never: Always hide the tab bar.
1838 ## - multiple: Hide the tab bar if only one tab is open.
1839 ## - switching: Show the tab bar when switching tabs.
1840 # c.tabs.show = 'always'
1842 ## Duration (in milliseconds) to show the tab bar before hiding it when
1843 ## tabs.show is set to 'switching'.
1845 # c.tabs.show_switching_delay = 800
1847 ## Open a new window for every tab.
1849 # c.tabs.tabs_are_windows = False
1851 ## Alignment of the text inside of tabs.
1852 ## Type: TextAlignment
1857 # c.tabs.title.alignment = 'left'
1859 ## Format to use for the tab title. The following placeholders are
1861 ## * `{perc}`: Percentage as a string like `[10%]`.
1862 ## * `{perc_raw}`: Raw percentage, e.g. `10`.
1863 ## * `{current_title}`: Title of the current web page.
1864 ## * `{title_sep}`: The string `" - "` if a title is set, empty otherwise.
1865 ## * `{index}`: Index of this tab.
1866 ## * `{aligned_index}`: Index of this tab padded with spaces to have the same width.
1867 ## * `{id}`: Internal tab ID of this tab.
1868 ## * `{scroll_pos}`: Page scroll position.
1869 ## * `{host}`: Host of the current web page.
1870 ## * `{backend}`: Either `webkit` or `webengine`
1871 ## * `{private}`: Indicates when private mode is enabled.
1872 ## * `{current_url}`: URL of the current web page.
1873 ## * `{protocol}`: Protocol (http/https/...) of the current web page.
1874 ## * `{audio}`: Indicator for audio/mute status.
1875 ## Type: FormatString
1876 # c.tabs.title.format = '{audio}{index}: {current_title}'
1878 ## Format to use for the tab title for pinned tabs. The same placeholders
1879 ## like for `tabs.title.format` are defined.
1880 ## Type: FormatString
1881 # c.tabs.title.format_pinned = '{index}'
1883 ## Show tooltips on tabs. Note this setting only affects windows opened
1884 ## after it has been set.
1886 # c.tabs.tooltips = True
1888 ## Number of closed tabs (per window) and closed windows to remember for
1889 ## :undo (-1 for no maximum).
1891 # c.tabs.undo_stack_size = 100
1893 ## Width (in pixels or as percentage of the window) of the tab bar if
1896 # c.tabs.width = '15%'
1898 ## Wrap when changing tabs.
1900 # c.tabs.wrap = True
1902 ## What search to start when something else than a URL is entered.
1905 ## - naive: Use simple/naive check.
1906 ## - dns: Use DNS requests (might be slow!).
1907 ## - never: Never search automatically.
1908 ## - schemeless: Always search automatically unless URL explicitly contains a scheme.
1909 # c.url.auto_search = 'naive'
1911 ## Page to open if :open -t/-b/-w is used without URL. Use `about:blank`
1912 ## for a blank page.
1914 c
.url
.default_page
= 'https://duckduckgo.com/?t=chakra'
1916 ## URL segments where `:navigate increment/decrement` will search for a
1925 # c.url.incdec_segments = ['path', 'query']
1927 ## Open base URL of the searchengine if a searchengine shortcut is
1928 ## invoked without parameters.
1930 # c.url.open_base_url = False
1932 ## Search engines which can be used via the address bar. Maps a search
1933 ## engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}`
1934 ## placeholder. The placeholder will be replaced by the search term, use
1935 ## `{{` and `}}` for literal `{`/`}` braces. The following further
1936 ## placeholds are defined to configure how special characters in the
1937 ## search terms are replaced by safe characters (called 'quoting'):
1938 ## * `{}` and `{semiquoted}` quote everything except slashes; this is the
1939 ## most sensible choice for almost all search engines (for the search
1940 ## term `slash/and&` this placeholder expands to `slash/and%26amp`).
1941 ## * `{quoted}` quotes all characters (for `slash/and&` this
1942 ## placeholder expands to `slash%2Fand%26amp`).
1943 ## * `{unquoted}` quotes nothing (for `slash/and&` this placeholder
1944 ## expands to `slash/and&`).
1945 ## * `{0}` means the same as `{}`, but can be used multiple times. The search
1946 ## engine named `DEFAULT` is used when
1947 ## `url.auto_search` is turned on and something else than a URL was
1948 ## entered to be opened. Other search engines can be used by prepending
1949 ## the search engine name to the search term, e.g. `:open google
1952 c
.url
.searchengines
= {'DEFAULT': 'https://duckduckgo.com/?t=chakra&q={}
',
1953 'ddg
': 'https
://duckduckgo
.com
/?t
=chakra
&q
={}',
1954 'slack
': 'https
://focalpointpositioning
.slack
.com
/messages
/{}',
1955 'std
': 'http
://en
.cppreference
.com
/mwiki
/index
.php?title
=Special
%3ASearch
&search
={}',
1958 ## Page(s) to open at the start.
1959 ## Type: List of FuzzyUrl, or FuzzyUrl
1960 # c.url.start_pages = ['https
://start
.duckduckgo
.com
']
1962 ## URL parameters to strip with `:yank url`.
1963 ## Type: List of String
1964 # c.url.yank_ignored_parameters = ['ref
', 'utm_source
', 'utm_medium
', 'utm_campaign
', 'utm_term
', 'utm_content
']
1966 ## Hide the window decoration. This setting requires a restart on
1969 # c.window.hide_decoration = False
1971 ## Format to use for the window title. The same placeholders like for
1972 ## `tabs.title.format` are defined.
1973 ## Type: FormatString
1974 # c.window.title_format = '{perc}{current_title}{title_sep}qutebrowser
'
1976 ## Set the main window background to transparent. This allows having a
1977 ## transparent tab- or statusbar (might require a compositor such as
1978 ## picom). However, it breaks some functionality such as dmenu embedding
1979 ## via its `-w` option. On some systems, it was additionally reported
1980 ## that main window transparency negatively affects performance. Note
1981 ## this setting only affects windows opened after setting it.
1983 # c.window.transparent = False
1985 ## Default zoom level.
1987 # c.zoom.default = '100%'
1989 ## Available zoom levels.
1990 ## Type: List of Perc
1991 # c.zoom.levels = ['25%', '33%', '50%', '67%', '75%', '90%', '100%', '110%', '125%', '150%', '175%', '200%', '250%', '300%', '400%', '500%']
1993 ## Number of zoom increments to divide the mouse wheel movements to.
1995 # c.zoom.mouse_divider = 512
1997 ## Apply the zoom factor on a frame only to the text or to all content.
1999 # c.zoom.text_only = False
2001 ## Bindings for normal mode
2002 # config.bind("'", 'mode-enter jump_mark')
2003 # config.bind('+', 'zoom-in')
2004 # config.bind('-', 'zoom-out')
2005 # config.bind('.', 'repeat-command')
2006 # config.bind('/', 'set-cmd-text /')
2007 # config.bind(':', 'set-cmd-text :')
2008 # config.bind(';I', 'hint images tab')
2009 # config.bind(';O', 'hint links fill :open -t -r {hint-url}')
2010 # config.bind(';R', 'hint --rapid links window')
2011 # config.bind(';Y', 'hint links yank-primary')
2012 # config.bind(';b', 'hint all tab-bg')
2013 # config.bind(';d', 'hint links download')
2014 # config.bind(';f', 'hint all tab-fg')
2015 # config.bind(';h', 'hint all hover')
2016 # config.bind(';i', 'hint images')
2017 # config.bind(';o', 'hint links fill :open {hint-url}')
2018 # config.bind(';r', 'hint --rapid links tab-bg')
2019 # config.bind(';t', 'hint inputs')
2020 # config.bind(';y', 'hint links yank')
2021 # config.bind('<Alt-1>', 'tab-focus 1')
2022 # config.bind('<Alt-2>', 'tab-focus 2')
2023 # config.bind('<Alt-3>', 'tab-focus 3')
2024 # config.bind('<Alt-4>', 'tab-focus 4')
2025 # config.bind('<Alt-5>', 'tab-focus 5')
2026 # config.bind('<Alt-6>', 'tab-focus 6')
2027 # config.bind('<Alt-7>', 'tab-focus 7')
2028 # config.bind('<Alt-8>', 'tab-focus 8')
2029 # config.bind('<Alt-9>', 'tab-focus -1')
2030 # config.bind('<Alt-m>', 'tab-mute')
2031 # config.bind('<Ctrl-A>', 'navigate increment')
2032 # config.bind('<Ctrl-Alt-p>', 'print')
2033 # config.bind('<Ctrl-B>', 'scroll-page 0 -1')
2034 # config.bind('<Ctrl-D>', 'scroll-page 0 0.5')
2035 # config.bind('<Ctrl-F5>', 'reload -f')
2036 # config.bind('<Ctrl-F>', 'scroll-page 0 1')
2037 # config.bind('<Ctrl-N>', 'open -w')
2038 # config.bind('<Ctrl-PgDown>', 'tab-next')
2039 # config.bind('<Ctrl-PgUp>', 'tab-prev')
2040 # config.bind('<Ctrl-Q>', 'quit')
2041 # config.bind('<Ctrl-Return>', 'selection-follow -t')
2042 # config.bind('<Ctrl-Shift-N>', 'open -p')
2043 # config.bind('<Ctrl-Shift-T>', 'undo')
2044 # config.bind('<Ctrl-Shift-Tab>', 'nop')
2045 # config.bind('<Ctrl-Shift-W>', 'close')
2046 # config.bind('<Ctrl-T>', 'open -t')
2047 # config.bind('<Ctrl-Tab>', 'tab-focus last')
2048 # config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')
2049 # config.bind('<Ctrl-V>', 'mode-enter passthrough')
2050 # config.bind('<Ctrl-W>', 'tab-close')
2051 # config.bind('<Ctrl-X>', 'navigate decrement')
2052 # config.bind('<Ctrl-^>', 'tab-focus last')
2053 # config.bind('<Ctrl-h>', 'home')
2054 # config.bind('<Ctrl-p>', 'tab-pin')
2055 # config.bind('<Ctrl-s>', 'stop')
2056 config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave ;; fake-key <Escape>')
2057 # config.bind('<F11>', 'fullscreen')
2058 # config.bind('<F5>', 'reload')
2059 # config.bind('<Return>', 'selection-follow')
2060 # config.bind('<back>', 'back')
2061 # config.bind('<forward>', 'forward')
2062 # config.bind('=', 'zoom')
2063 # config.bind('?', 'set-cmd-text ?')
2064 # config.bind('@', 'macro-run')
2065 # config.bind('B', 'set-cmd-text -s :quickmark-load -t')
2066 # config.bind('D', 'tab-close -o')
2067 # config.bind('F', 'hint all tab')
2068 # config.bind('G', 'scroll-to-perc')
2069 # config.bind('H', 'back')
2070 config.bind('K', 'tab-next')
2071 config.bind('J', 'tab-prev')
2072 # config.bind('L', 'forward')
2073 # config.bind('M', 'bookmark-add')
2074 # config.bind('N', 'search-prev')
2075 # config.bind('O', 'set-cmd-text -s :open -t')
2076 # config.bind('PP', 'open -t -- {primary}')
2077 # config.bind('Pp', 'open -t -- {clipboard}')
2078 # config.bind('R', 'reload -f')
2079 # config.bind('Sb', 'open qute://bookmarks#bookmarks')
2080 # config.bind('Sh', 'open qute://history')
2081 # config.bind('Sq', 'open qute://bookmarks')
2082 # config.bind('Ss', 'open qute://settings')
2083 # config.bind('T', 'tab-focus')
2084 # config.bind('U', 'undo -w')
2085 # config.bind('V', 'mode-enter caret ;; selection-toggle --line')
2086 # config.bind('ZQ', 'quit')
2087 # config.bind('ZZ', 'quit --save')
2088 # config.bind('[[', 'navigate prev')
2089 # config.bind(']]', 'navigate next')
2090 # config.bind('`', 'mode-enter set_mark')
2091 # config.bind('ad', 'download-cancel')
2092 # config.bind('b', 'set-cmd-text -s :quickmark-load')
2093 # config.bind('cd', 'download-clear')
2095 config.bind('co', 'download-open')
2096 # config.bind('d', 'tab-close')
2097 # config.bind('f', 'hint')
2098 # config.bind('g$', 'tab-focus -1')
2099 # config.bind('g0', 'tab-focus 1')
2100 # config.bind('gB', 'set-cmd-text -s :bookmark-load -t')
2101 # config.bind('gC', 'tab-clone')
2102 # config.bind('gD', 'tab-give')
2103 # config.bind('gJ', 'tab-move +')
2104 # config.bind('gK', 'tab-move -')
2105 # config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')
2106 # config.bind('gU', 'navigate up -t')
2107 # config.bind('g^', 'tab-focus 1')
2108 # config.bind('ga', 'open -t')
2109 # config.bind('gb', 'set-cmd-text -s :bookmark-load')
2110 # config.bind('gd', 'download')
2111 # config.bind('gf', 'view-source')
2112 # config.bind('gg', 'scroll-to-perc 0')
2113 # config.bind('gi', 'hint inputs --first')
2114 # config.bind('gm', 'tab-move')
2115 # config.bind('go', 'set-cmd-text :open {url:pretty}')
2116 # config.bind('gu', 'navigate up')
2117 # config.bind('h', 'scroll left')
2118 # config.bind('i', 'mode-enter insert')
2119 # config.bind('j', 'scroll down')
2120 # config.bind('k', 'scroll up')
2121 # config.bind('l', 'scroll right')
2122 # config.bind('m', 'quickmark-save')
2123 config.bind('m', 'spawn mpv {url}')
2124 # config.bind('n', 'search-next')
2125 # config.bind('o', 'set-cmd-text -s :open')
2126 # config.bind('pP', 'open -- {primary}')
2127 # config.bind('pp', 'open -- {clipboard}')
2128 # config.bind('q', 'macro-record')
2129 # config.bind('r', 'reload')
2130 # config.bind('sf', 'save')
2131 # config.bind('sk', 'set-cmd-text -s :bind')
2132 # config.bind('sl', 'set-cmd-text -s :set -t')
2133 # config.bind('ss', 'set-cmd-text -s :set')
2134 config.bind('tCh', 'spawn --userscript config-cycle-tld -p content.cookies.accept no-3rdparty never;; reload')
2135 config.bind('tch', 'spawn --userscript config-cycle-tld -p -t content.cookies.accept no-3rdparty never;; reload')
2136 config.bind('tGh', 'spawn --userscript config-cycle-tld -p content.geolocation ;; reload')
2137 config.bind('tgh', 'spawn --userscript config-cycle-tld -p -t content.geolocation ;; reload')
2138 # config.bind('tIH', 'config-cycle -p -u *://*.{url:host}/* content.images ;; reload')
2139 # config.bind('tIh', 'config-cycle -p -u *://{url:host}/* content.images ;; reload')
2140 # config.bind('tIu', 'config-cycle -p -u {url} content.images ;; reload')
2141 # config.bind('tPH', 'config-cycle -p -u *://*.{url:host}/* content.plugins ;; reload')
2142 # config.bind('tPh', 'config-cycle -p -u *://{url:host}/* content.plugins ;; reload')
2143 # config.bind('tPu', 'config-cycle -p -u {url} content.plugins ;; reload')
2144 # config.bind('tSH', 'config-cycle -p -u *://*.{url:host}/* content.javascript.enabled ;; reload')
2145 # config.bind('tSh', 'config-cycle -p -u *://{url:host}/* content.javascript.enabled ;; reload')
2146 # config.bind('tSu', 'config-cycle -p -u {url} content.javascript.enabled ;; reload')
2147 # config.bind('th', 'back -t')
2148 # config.bind('tiH', 'config-cycle -p -t -u *://*.{url:host}/* content.images ;; reload')
2149 # config.bind('tih', 'config-cycle -p -t -u *://{url:host}/* content.images ;; reload')
2150 # config.bind('tiu', 'config-cycle -p -t -u {url} content.images ;; reload')
2151 # config.bind('tl', 'forward -t')
2152 # config.bind('tpH', 'config-cycle -p -t -u *://*.{url:host}/* content.plugins ;; reload')
2153 # config.bind('tph', 'config-cycle -p -t -u *://{url:host}/* content.plugins ;; reload')
2154 # config.bind('tpu', 'config-cycle -p -t -u {url} content.plugins ;; reload')
2155 # config.bind('tsH', 'config-cycle -p -t -u *://*.{url:host}/* content.javascript.enabled ;; reload')
2156 # config.bind('tsh', 'config-cycle -p -t -u *://{url:host}/* content.javascript.enabled ;; reload')
2157 # config.bind('tsu', 'config-cycle -p -t -u {url} content.javascript.enabled ;; reload')
2158 # config.bind('u', 'undo')
2159 # config.bind('v', 'mode-enter caret')
2160 # config.bind('wB', 'set-cmd-text -s :bookmark-load -w')
2161 # config.bind('wIf', 'devtools-focus')
2162 # config.bind('wIh', 'devtools left')
2163 # config.bind('wIj', 'devtools bottom')
2164 # config.bind('wIk', 'devtools top')
2165 # config.bind('wIl', 'devtools right')
2166 # config.bind('wIw', 'devtools window')
2167 # config.bind('wO', 'set-cmd-text :open -w {url:pretty}')
2168 # config.bind('wP', 'open -w -- {primary}')
2169 # config.bind('wb', 'set-cmd-text -s :quickmark-load -w')
2170 # config.bind('wf', 'hint all window')
2171 # config.bind('wh', 'back -w')
2172 # config.bind('wi', 'devtools')
2173 # config.bind('wl', 'forward -w')
2174 # config.bind('wo', 'set-cmd-text -s :open -w')
2175 # config.bind('wp', 'open -w -- {clipboard}')
2176 # config.bind('xO', 'set-cmd-text :open -b -r {url:pretty}')
2177 # config.bind('xo', 'set-cmd-text -s :open -b')
2178 # config.bind('yD', 'yank domain -s')
2179 # config.bind('yM', 'yank inline [{title}]({url}) -s')
2180 # config.bind('yP', 'yank pretty-url -s')
2181 # config.bind('yT', 'yank title -s')
2182 # config.bind('yY', 'yank -s')
2183 # config.bind('yd', 'yank domain')
2184 # config.bind('ym', 'yank inline [{title}]({url})')
2185 # config.bind('yp', 'yank pretty-url')
2186 # config.bind('yt', 'yank title')
2187 # config.bind('yy', 'yank')
2188 config.bind('zl', 'spawn --userscript qute-pass')
2189 config.bind('zul', 'spawn --userscript qute-pass --username-only')
2190 config.bind('zpl', 'spawn --userscript qute-pass --password-only')
2191 # config.bind('{{', 'navigate prev -t')
2192 # config.bind('}}', 'navigate next -t')
2194 ## Bindings for caret mode
2195 # config.bind('$', 'move-to-end-of-line', mode='caret')
2196 # config.bind('0', 'move-to-start-of-line', mode='caret')
2197 # config.bind('<Ctrl-Space>', 'selection-drop', mode='caret')
2198 # config.bind('<Escape>', 'mode-leave', mode='caret')
2199 # config.bind('<Return>', 'yank selection', mode='caret')
2200 # config.bind('<Space>', 'selection-toggle', mode='caret')
2201 # config.bind('G', 'move-to-end-of-document', mode='caret')
2202 # config.bind('H', 'scroll left', mode='caret')
2203 # config.bind('J', 'scroll down', mode='caret')
2204 # config.bind('K', 'scroll up', mode='caret')
2205 # config.bind('L', 'scroll right', mode='caret')
2206 # config.bind('V', 'selection-toggle --line', mode='caret')
2207 # config.bind('Y', 'yank selection -s', mode='caret')
2208 # config.bind('[', 'move-to-start-of-prev-block', mode='caret')
2209 # config.bind(']', 'move-to-start-of-next-block', mode='caret')
2210 # config.bind('b', 'move-to-prev-word', mode='caret')
2211 # config.bind('c', 'mode-enter normal', mode='caret')
2212 # config.bind('e', 'move-to-end-of-word', mode='caret')
2213 # config.bind('gg', 'move-to-start-of-document', mode='caret')
2214 # config.bind('h', 'move-to-prev-char', mode='caret')
2215 # config.bind('j', 'move-to-next-line', mode='caret')
2216 # config.bind('k', 'move-to-prev-line', mode='caret')
2217 # config.bind('l', 'move-to-next-char', mode='caret')
2218 # config.bind('o', 'selection-reverse', mode='caret')
2219 # config.bind('v', 'selection-toggle', mode='caret')
2220 # config.bind('w', 'move-to-next-word', mode='caret')
2221 # config.bind('y', 'yank selection', mode='caret')
2222 # config.bind('{', 'move-to-end-of-prev-block', mode='caret')
2223 # config.bind('}', 'move-to-end-of-next-block', mode='caret')
2225 ## Bindings for command mode
2226 # config.bind('<Alt-B>', 'rl-backward-word', mode='command')
2227 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')
2228 # config.bind('<Alt-D>', 'rl-kill-word', mode='command')
2229 # config.bind('<Alt-F>', 'rl-forward-word', mode='command')
2230 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')
2231 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')
2232 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')
2233 # config.bind('<Ctrl-C>', 'completion-item-yank', mode='command')
2234 # config.bind('<Ctrl-D>', 'completion-item-del', mode='command')
2235 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')
2236 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')
2237 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')
2238 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')
2239 # config.bind('<Ctrl-N>', 'command-history-next', mode='command')
2240 # config.bind('<Ctrl-P>', 'command-history-prev', mode='command')
2241 # config.bind('<Ctrl-Return>', 'command-accept --rapid', mode='command')
2242 # config.bind('<Ctrl-Shift-C>', 'completion-item-yank --sel', mode='command')
2243 # config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')
2244 # config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')
2245 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')
2246 # config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')
2247 # config.bind('<Ctrl-Y>', 'rl-yank', mode='command')
2248 # config.bind('<Down>', 'completion-item-focus --history next', mode='command')
2249 # config.bind('<Escape>', 'mode-leave', mode='command')
2250 # config.bind('<PgDown>', 'completion-item-focus next-page', mode='command')
2251 # config.bind('<PgUp>', 'completion-item-focus prev-page', mode='command')
2252 # config.bind('<Return>', 'command-accept', mode='command')
2253 # config.bind('<Shift-Delete>', 'completion-item-del', mode='command')
2254 # config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')
2255 # config.bind('<Tab>', 'completion-item-focus next', mode='command')
2256 # config.bind('<Up>', 'completion-item-focus --history prev', mode='command')
2258 ## Bindings for hint mode
2259 # config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')
2260 # config.bind('<Ctrl-F>', 'hint links', mode='hint')
2261 # config.bind('<Ctrl-R>', 'hint --rapid links tab-bg', mode='hint')
2262 # config.bind('<Escape>', 'mode-leave', mode='hint')
2263 # config.bind('<Return>', 'hint-follow', mode='hint')
2265 ## Bindings for insert mode
2266 # config.bind('<Ctrl-E>', 'edit-text', mode='insert')
2267 # config.bind('<Escape>', 'mode-leave', mode='insert')
2268 # config.bind('<Shift-Ins>', 'insert-text -- {primary}', mode='insert')
2270 ## Bindings for passthrough mode
2271 # config.bind('<Shift-Escape>', 'mode-leave', mode='passthrough')
2273 ## Bindings for prompt mode
2274 # config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')
2275 # config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='prompt')
2276 # config.bind('<Alt-D>', 'rl-kill-word', mode='prompt')
2277 # config.bind('<Alt-F>', 'rl-forward-word', mode='prompt')
2278 # config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='prompt')
2279 # config.bind('<Alt-Y>', 'prompt-yank', mode='prompt')
2280 # config.bind('<Ctrl-?>', 'rl-delete-char', mode='prompt')
2281 # config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='prompt')
2282 # config.bind('<Ctrl-B>', 'rl-backward-char', mode='prompt')
2283 # config.bind('<Ctrl-E>', 'rl-end-of-line', mode='prompt')
2284 # config.bind('<Ctrl-F>', 'rl-forward-char', mode='prompt')
2285 # config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='prompt')
2286 # config.bind('<Ctrl-K>', 'rl-kill-line', mode='prompt')
2287 # config.bind('<Ctrl-P>', 'prompt-open-download --pdfjs', mode='prompt')
2288 # config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='prompt')
2289 # config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='prompt')
2290 # config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')
2291 # config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')
2292 # config.bind('<Down>', 'prompt-item-focus next', mode='prompt')
2293 # config.bind('<Escape>', 'mode-leave', mode='prompt')
2294 # config.bind('<Return>', 'prompt-accept', mode='prompt')
2295 # config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')
2296 # config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')
2297 # config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')
2299 ## Bindings for register mode
2300 # config.bind('<Escape>', 'mode-leave', mode='register')
2302 ## Bindings for yesno mode
2303 # config.bind('<Alt-Shift-Y>', 'prompt-yank --sel', mode='yesno')
2304 # config.bind('<Alt-Y>', 'prompt-yank', mode='yesno')
2305 # config.bind('<Escape>', 'mode-leave', mode='yesno')
2306 # config.bind('<Return>', 'prompt-accept', mode='yesno')
2307 # config.bind('N', 'prompt-accept --save no', mode='yesno')
2308 # config.bind('Y', 'prompt-accept --save yes', mode='yesno')
2309 # config.bind('n', 'prompt-accept no', mode='yesno')
2310 # config.bind('y', 'prompt-accept yes', mode='yesno')
2312 config.source('themes/nord-qutebrowser.py')