config.py (4761B)
1 ## Autogenerated config.py 2 ## Documentation: 3 ## qute://help/configuring.html 4 ## qute://help/settings.html 5 6 # pylint: disable=C0111 7 c = c # noqa: F821 pylint: disable=E0602,C0103 8 config = config # noqa: F821 pylint: disable=E0602,C0103 9 10 ## This is here so configs done via the GUI are still loaded. 11 ## Remove it to not load settings done via the GUI. 12 config.load_autoconfig() 13 14 ## Aliases for commands. The keys of the given dictionary are the 15 ## aliases, while the values are the commands they map to. 16 ## Type: Dict 17 c.aliases = {'mpv': 'spawn --userscript qutebrowser_view_in_mpv.bash', 18 'vlc': 'spawn --userscript qutebrowser_view_in_vlc.bash', 19 'w': 'session-save', 20 'q': 'close', 21 'qa': 'quit', 22 'wq': 'quit --save', 23 'wqa': 'quit --save'} 24 25 ## Always restore open sites when qutebrowser is reopened. 26 ## Type: Bool 27 c.auto_save.session = True 28 29 ## This setting can be used to map keys to other keys. When the key used 30 ## as dictionary-key is pressed, the binding for the key used as 31 ## dictionary-value is invoked instead. This is useful for global 32 ## remappings of keys, for example to map Ctrl-[ to Escape. Note that 33 ## when a key is bound (via `bindings.default` or `bindings.commands`), 34 ## the mapping is ignored. 35 ## Type: Dict 36 c.bindings.key_mappings = {'<Ctrl-[>': '<Escape>', 37 '<Ctrl-6>': '<Ctrl-^>', 38 '<Ctrl-M>': '<Return>', 39 '<Ctrl-J>': '<Return>', 40 '<Shift-Return>': '<Return>', 41 '<Enter>': '<Return>', 42 '<Shift-Enter>': '<Return>', 43 '<Ctrl-Enter>': '<Ctrl-Return>'} 44 45 ## Allow websites to read canvas elements. Note this is needed for some 46 ## websites to work properly. 47 ## Type: Bool 48 c.content.canvas_reading = False 49 50 ## Which cookies to accept. 51 ## Type: String 52 ## Valid values: 53 ## - all: Accept all cookies. 54 ## - no-3rdparty: Accept cookies from the same origin only. This is known to break some sites, such as GMail. 55 ## - 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. 56 ## - never: Don't accept cookies at all. 57 c.content.cookies.accept = 'no-3rdparty' 58 59 ## Value to send in the `Accept-Language` header. Note that the value 60 ## read from JavaScript is always the global value. 61 ## Type: String 62 c.content.headers.accept_language = 'en-US,en;q=0.5' 63 64 ## Custom headers for qutebrowser HTTP requests. 65 ## Type: Dict 66 c.content.headers.custom = {'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'} 67 68 ## Validate SSL handshakes. 69 ## Type: BoolAsk 70 ## Valid values: 71 ## - true 72 ## - false 73 ## - ask 74 c.content.ssl_strict = True 75 76 ## Enable WebGL. 77 ## Type: Bool 78 c.content.webgl = False 79 80 ## Editor (and arguments) to use for the `open-editor` command. The 81 ## following placeholders are defined: * `{file}`: Filename of the file 82 ## to be edited. * `{line}`: Line in which the caret is found in the 83 ## text. * `{column}`: Column in which the caret is found in the text. * 84 ## `{line0}`: Same as `{line}`, but starting from index 0. * `{column0}`: 85 ## Same as `{column}`, but starting from index 0. 86 ## Type: ShellCommand 87 c.editor.command = ['st', '-e', 'vim', '{file}'] 88 89 ## Search engines which can be used via the address bar. Maps a search 90 ## engine name (such as `DEFAULT`, or `ddg`) to a URL with a `{}` 91 ## placeholder. The placeholder will be replaced by the search term, use 92 ## `{{` and `}}` for literal `{`/`}` signs. The search engine named 93 ## `DEFAULT` is used when `url.auto_search` is turned on and something 94 ## else than a URL was entered to be opened. Other search engines can be 95 ## used by prepending the search engine name to the search term, e.g. 96 ## `:open google qutebrowser`. 97 ## Type: Dict 98 c.url.searchengines = {'DEFAULT': 'https://duckduckgo.com/?q={}', 99 'aw': 'https://wiki.archlinux.org/index.php/{}', 100 'aur': 'https://aur.archlinux.org/packages/{}', 101 'dict': 'https://www.dict.cc/?s={}', 102 'g': 'https://www.google.de/search?q={}', 103 'leo': 'https://dict.leo.org/ende?search={}', 104 'linguee': 'https://www.linguee.com/english-german/search?source=auto&query={}', 105 'wde': 'https://de.wikipedia.org/wiki/{}', 106 'wen': 'https://en.wikipedia.org/wiki/{}', 107 'y': 'https://youtube.com/results?search_query={}', 108 } 109 110 ## Bindings for normal mode 111 config.bind('<Ctrl-M>', 'mpv') 112 113 ## Load color scheme 114 config.source('nord-qutebrowser.py')