qutebrowser.config.py (raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 |
# Autogenerated config.py # # NOTE: config.py is intended for advanced users who are comfortable # with manually migrating the config file on qutebrowser upgrades. If # you prefer, you can also configure qutebrowser using the # :set/:bind/:config-* commands without having to write a config.py # file. # # Documentation: # qute://help/configuring.html # qute://help/settings.html # Change the argument to True to still load settings configured via autoconfig.yml config.load_autoconfig(False) # Allow websites to read canvas elements. Note this is needed for some # websites to work properly. # Type: Bool c.content.canvas_reading = False # Which cookies to accept. With QtWebEngine, this setting also controls # other features with tracking capabilities similar to those of cookies; # including IndexedDB, DOM storage, filesystem API, service workers, and # AppCache. Note that with QtWebKit, only `all` and `never` are # supported as per-domain values. Setting `no-3rdparty` or `no- # unknown-3rdparty` per-domain on QtWebKit will have the same effect as # `all`. If this setting is used with URL patterns, the pattern gets # applied to the origin/first party URL of the page making the request, # not the request URL. With QtWebEngine 5.15.0+, paths will be stripped # from URLs, so URL patterns using paths will not match. With # QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so # you will typically need to set this setting for `example.com` when the # cookie is set on `somesubdomain.example.com` for it to work properly. # To debug issues with this setting, start qutebrowser with `--debug # --logfilter network --debug-flag log-cookies` which will show all # cookies being set. # Type: String # Valid values: # - all: Accept all cookies. # - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. # - 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. # - never: Don't accept cookies at all. config.set('content.cookies.accept', 'all', 'chrome-devtools://*') # Which cookies to accept. With QtWebEngine, this setting also controls # other features with tracking capabilities similar to those of cookies; # including IndexedDB, DOM storage, filesystem API, service workers, and # AppCache. Note that with QtWebKit, only `all` and `never` are # supported as per-domain values. Setting `no-3rdparty` or `no- # unknown-3rdparty` per-domain on QtWebKit will have the same effect as # `all`. If this setting is used with URL patterns, the pattern gets # applied to the origin/first party URL of the page making the request, # not the request URL. With QtWebEngine 5.15.0+, paths will be stripped # from URLs, so URL patterns using paths will not match. With # QtWebEngine 5.15.2+, subdomains are additionally stripped as well, so # you will typically need to set this setting for `example.com` when the # cookie is set on `somesubdomain.example.com` for it to work properly. # To debug issues with this setting, start qutebrowser with `--debug # --logfilter network --debug-flag log-cookies` which will show all # cookies being set. # Type: String # Valid values: # - all: Accept all cookies. # - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. # - 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. # - never: Don't accept cookies at all. config.set('content.cookies.accept', 'all', 'devtools://*') # Store cookies. # Type: Bool c.content.cookies.store = False # Allow websites to share screen content. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.desktop_capture', True, 'https://teams.microsoft.com') # Allow websites to request geolocations. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.geolocation', False, 'https://elmers.doitbest.com') # Value to send in the `Accept-Language` header. Note that the value # read from JavaScript is always the global value. # Type: String config.set('content.headers.accept_language', '', 'https://matchmaker.krunker.io/*') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/{webkit_version} (KHTML, like Gecko) {upstream_browser_key}/{upstream_browser_version} Safari/{webkit_version}', 'https://web.whatsapp.com/') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}; rv:90.0) Gecko/20100101 Firefox/90.0', 'https://accounts.google.com/*') # User agent to send. The following placeholders are defined: * # `{os_info}`: Something like "X11; Linux x86_64". * `{webkit_version}`: # The underlying WebKit version (set to a fixed value with # QtWebEngine). * `{qt_key}`: "Qt" for QtWebKit, "QtWebEngine" for # QtWebEngine. * `{qt_version}`: The underlying Qt version. * # `{upstream_browser_key}`: "Version" for QtWebKit, "Chrome" for # QtWebEngine. * `{upstream_browser_version}`: The corresponding # Safari/Chrome version. * `{qutebrowser_version}`: The currently # running qutebrowser version. The default value is equal to the # unchanged user agent of QtWebKit/QtWebEngine. Note that the value # read from JavaScript is always the global value. With QtWebEngine # between 5.12 and 5.14 (inclusive), changing the value exposed to # JavaScript requires a restart. # Type: FormatString config.set('content.headers.user_agent', 'Mozilla/5.0 ({os_info}) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99 Safari/537.36', 'https://*.slack.com/*') # Enable the ad/host blocker # Type: Bool c.content.blocking.enabled = True # A list of patterns that should always be loaded, despite being blocked # by the ad-/host-blocker. Local domains are always exempt from # adblocking. Note this whitelists otherwise blocked requests, not # first-party URLs. As an example, if `example.org` loads an ad from # `ads.example.org`, the whitelist entry could be # `https://ads.example.org/*`. If you want to disable the adblocker on a # given page, use the `content.blocking.enabled` setting with a URL # pattern instead. # Type: List of UrlPattern c.content.blocking.whitelist = ['insights.dice.com'] # Load images automatically in web pages. # Type: Bool config.set('content.images', True, 'chrome-devtools://*') # Load images automatically in web pages. # Type: Bool config.set('content.images', True, 'devtools://*') # Enable JavaScript. # Type: Bool c.content.javascript.enabled = True # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'chrome-devtools://*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'devtools://*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'chrome://*/*') # Enable JavaScript. # Type: Bool config.set('content.javascript.enabled', True, 'qute://*/*') # Allow websites to record audio. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.media.audio_capture', True, 'https://teams.microsoft.com') # Allow websites to record audio and video. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.media.audio_video_capture', True, 'https://teams.microsoft.com') # Allow websites to record video. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.media.video_capture', True, 'https://teams.microsoft.com') # Allow websites to register protocol handlers via # `navigator.registerProtocolHandler`. # Type: BoolAsk # Valid values: # - true # - false # - ask config.set('content.register_protocol_handler', False, 'https://mail.google.com?extsrc=mailto&url=%25s') # How to proceed on TLS certificate errors. # Type: String # Valid values: # - ask: Ask how to proceed for every certificate error (unless non-overridable due to HSTS). # - ask-block-thirdparty: Ask how to proceed for normal page loads, but silently block resource loads. # - block: Automatically block loading on certificate errors. # - load-insecurely: Force loading pages despite certificate errors. This is *insecure* and should be avoided. Instead of using this, consider fixing the underlying issue or importing a self-signed certificate via `certutil` (or Chromium) instead. c.content.tls.certificate_errors = 'ask' # Enable WebGL. # Type: Bool c.content.webgl = False # When to show the statusbar. # Type: String # Valid values: # - always: Always show the statusbar. # - never: Always hide the statusbar. # - in-mode: Show the statusbar when in modes other than normal mode. c.statusbar.show = 'always' # Padding (in pixels) for the statusbar. # Type: Padding c.statusbar.padding = {'bottom': 2, 'left': 2, 'right': 2, 'top': 2} # When to show favicons in the tab bar. When switching this from never # to always/pinned, note that favicons might not be loaded yet, thus # tabs might require a reload to display them. # Type: String # Valid values: # - always: Always show favicons. # - never: Always hide favicons. # - pinned: Show favicons only on pinned tabs. c.tabs.favicons.show = 'never' # When to show the tab bar. # Type: String # Valid values: # - always: Always show the tab bar. # - never: Always hide the tab bar. # - multiple: Hide the tab bar if only one tab is open. # - switching: Show the tab bar when switching tabs. c.tabs.show = 'multiple' # Format to use for the tab title. The following placeholders are # defined: * `{perc}`: Percentage as a string like `[10%]`. * # `{perc_raw}`: Raw percentage, e.g. `10`. * `{current_title}`: Title of # the current web page. * `{title_sep}`: The string `" - "` if a title # is set, empty otherwise. * `{index}`: Index of this tab. * # `{aligned_index}`: Index of this tab padded with spaces to have the # same width. * `{id}`: Internal tab ID of this tab. * `{scroll_pos}`: # Page scroll position. * `{host}`: Host of the current web page. * # `{backend}`: Either `webkit` or `webengine` * `{private}`: Indicates # when private mode is enabled. * `{current_url}`: URL of the current # web page. * `{protocol}`: Protocol (http/https/...) of the current web # page. * `{audio}`: Indicator for audio/mute status. # Type: FormatString c.tabs.title.format = '{audio}{index}: {host} [{current_title}]' # Page to open if :open -t/-b/-w is used without URL. Use `about:blank` # for a blank page. # Type: FuzzyUrl c.url.default_page = 'localhost:9001/bookmarks.html' # Search engines which can be used via the address bar. Maps a search # engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` # placeholder. The placeholder will be replaced by the search term, use # `{{` and `}}` for literal `{`/`}` braces. The following further # placeholds are defined to configure how special characters in the # search terms are replaced by safe characters (called 'quoting'): * # `{}` and `{semiquoted}` quote everything except slashes; this is the # most sensible choice for almost all search engines (for the search # term `slash/and&` this placeholder expands to `slash/and%26amp`). # * `{quoted}` quotes all characters (for `slash/and&` this # placeholder expands to `slash%2Fand%26amp`). * `{unquoted}` quotes # nothing (for `slash/and&` this placeholder expands to # `slash/and&`). * `{0}` means the same as `{}`, but can be used # multiple times. The search engine named `DEFAULT` is used when # `url.auto_search` is turned on and something else than a URL was # entered to be opened. Other search engines can be used by prepending # the search engine name to the search term, e.g. `:open google # qutebrowser`. # Type: Dict c.url.searchengines = {'DEFAULT': 'https://kagi.com/search/?q={}'} # Page(s) to open at the start. # Type: List of FuzzyUrl, or FuzzyUrl c.url.start_pages = 'localhost:9001/bookmarks.html' # Text color of the completion widget. May be a single color to use for # all columns or a list of three colors, one for each column. # Type: List of QtColor, or QtColor c.colors.completion.fg = '#93a1a1' # Background color of the completion widget for odd rows. # Type: QssColor c.colors.completion.odd.bg = '#002b36' # Background color of the completion widget for even rows. # Type: QssColor c.colors.completion.even.bg = '#002b36' # Foreground color of completion widget category headers. # Type: QtColor c.colors.completion.category.fg = '#c9c9c9' # Background color of the completion widget category headers. # Type: QssColor c.colors.completion.category.bg = 'black' # Foreground color of the selected completion item. # Type: QtColor c.colors.completion.item.selected.fg = 'black' # Background color of the selected completion item. # Type: QssColor c.colors.completion.item.selected.bg = '#1f9b92' # Top border color of the selected completion item. # Type: QssColor c.colors.completion.item.selected.border.top = '#1f9b92' # Bottom border color of the selected completion item. # Type: QssColor c.colors.completion.item.selected.border.bottom = '#1f9b92' # Foreground color of the matched text in the selected completion item. # Type: QtColor c.colors.completion.item.selected.match.fg = 'black' # Foreground color of the matched text in the completion. # Type: QtColor c.colors.completion.match.fg = '#c9c9c9' # Color of the scrollbar handle in the completion view. # Type: QssColor c.colors.completion.scrollbar.fg = '#1f9b92' # Color of the scrollbar in the completion view. # Type: QssColor c.colors.completion.scrollbar.bg = '#002b36' # Background color of the context menu. If set to null, the Qt default # is used. # Type: QssColor c.colors.contextmenu.menu.bg = 'black' # Foreground color of the context menu. If set to null, the Qt default # is used. # Type: QssColor c.colors.contextmenu.menu.fg = '#c9c9c9' # Background color of the context menu's selected item. If set to null, # the Qt default is used. # Type: QssColor c.colors.contextmenu.selected.bg = '#1f9b92' # Foreground color of the context menu's selected item. If set to null, # the Qt default is used. # Type: QssColor c.colors.contextmenu.selected.fg = 'black' # Background color of disabled items in the context menu. If set to # null, the Qt default is used. # Type: QssColor c.colors.contextmenu.disabled.bg = 'black' # Foreground color of disabled items in the context menu. If set to # null, the Qt default is used. # Type: QssColor c.colors.contextmenu.disabled.fg = '#797979' # Color gradient start for download text. # Type: QtColor c.colors.downloads.start.fg = '#93a1a1' # Color gradient start for download backgrounds. # Type: QtColor c.colors.downloads.start.bg = '#002b36' # Color gradient end for download text. # Type: QtColor c.colors.downloads.stop.fg = 'black' # Color gradient stop for download backgrounds. # Type: QtColor c.colors.downloads.stop.bg = '#1f9b92' # Foreground color for downloads with errors. # Type: QtColor c.colors.downloads.error.fg = 'black' # Background color for downloads with errors. # Type: QtColor c.colors.downloads.error.bg = '#cc221f' # Foreground color for prompts. # Type: QssColor c.colors.prompts.fg = '#c9c9c9' # Background color for prompts. # Type: QssColor c.colors.prompts.bg = 'black' # Foreground color for the selected item in filename prompts. # Type: QssColor c.colors.prompts.selected.fg = 'black' # Background color for the selected item in filename prompts. # Type: QssColor c.colors.prompts.selected.bg = '#1f9b92' # Foreground color of the statusbar. # Type: QssColor c.colors.statusbar.normal.fg = '#c9c9c9' # Foreground color of the statusbar in insert mode. # Type: QssColor c.colors.statusbar.insert.fg = 'black' # Background color of the statusbar in insert mode. # Type: QssColor c.colors.statusbar.insert.bg = '#1f9b92' # Foreground color of the statusbar in passthrough mode. # Type: QssColor c.colors.statusbar.passthrough.fg = '#1f9b92' # Background color of the statusbar in passthrough mode. # Type: QssColor c.colors.statusbar.passthrough.bg = 'black' # Foreground color of the statusbar in command mode. # Type: QssColor c.colors.statusbar.command.fg = '#c9c9c9' # Foreground color of the statusbar in caret mode. # Type: QssColor c.colors.statusbar.caret.fg = '#93a1a1' # Background color of the statusbar in caret mode. # Type: QssColor c.colors.statusbar.caret.bg = '#002b36' # Foreground color of the statusbar in caret mode with a selection. # Type: QssColor c.colors.statusbar.caret.selection.fg = 'black' # Background color of the statusbar in caret mode with a selection. # Type: QssColor c.colors.statusbar.caret.selection.bg = '#1f9b92' # Default foreground color of the URL in the statusbar. # Type: QssColor c.colors.statusbar.url.fg = '#c9c9c9' # Foreground color of the URL in the statusbar on error. # Type: QssColor c.colors.statusbar.url.error.fg = '#cc221f' # Foreground color of the URL in the statusbar for hovered links. # Type: QssColor c.colors.statusbar.url.hover.fg = '#1f9b92' # Foreground color of the URL in the statusbar on successful load # (http). # Type: QssColor c.colors.statusbar.url.success.http.fg = '#c9c9c9' # Foreground color of the URL in the statusbar on successful load # (https). # Type: QssColor c.colors.statusbar.url.success.https.fg = '#c9c9c9' # Color gradient start for the tab indicator. # Type: QtColor c.colors.tabs.indicator.start = '#002b36' # Color gradient end for the tab indicator. # Type: QtColor c.colors.tabs.indicator.stop = '#1f9b92' # Color for the tab indicator on errors. # Type: QtColor c.colors.tabs.indicator.error = '#cc221f' # Foreground color of unselected odd tabs. # Type: QtColor c.colors.tabs.odd.fg = 'gray' # Background color of unselected odd tabs. # Type: QtColor c.colors.tabs.odd.bg = 'black' # Foreground color of unselected even tabs. # Type: QtColor c.colors.tabs.even.fg = 'grey' # Background color of unselected even tabs. # Type: QtColor c.colors.tabs.even.bg = 'black' # Foreground color of selected odd tabs. # Type: QtColor c.colors.tabs.selected.odd.fg = '#c9c9c9' # Foreground color of selected even tabs. # Type: QtColor c.colors.tabs.selected.even.fg = '#c9c9c9' # Value to use for `prefers-color-scheme:` for websites. The "light" # value is only available with QtWebEngine 5.15.2+. On older versions, # it is the same as "auto". The "auto" value is broken on QtWebEngine # 5.15.2 due to a Qt bug. There, it will fall back to "light" # unconditionally. # Type: String # Valid values: # - auto: Use the system-wide color scheme setting. # - light: Force a light theme. # - dark: Force a dark theme. c.colors.webpage.preferred_color_scheme = 'dark' # Default font families to use. Whenever "default_family" is used in a # font setting, it's replaced with the fonts listed here. If set to an # empty value, a system-specific monospace default is used. # Type: List of Font, or Font c.fonts.default_family = 'sauce code pro nerd font' # Default font size to use. Whenever "default_size" is used in a font # setting, it's replaced with the size listed here. Valid values are # either a float value with a "pt" suffix, or an integer value with a # "px" suffix. # Type: String c.fonts.default_size = '9pt' # Font family for standard fonts. # Type: FontFamily c.fonts.web.family.standard = 'Unifont' # Font family for sans-serif fonts. # Type: FontFamily c.fonts.web.family.sans_serif = 'unifont' |