config.py 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. # Autogenerated config.py
  2. # Documentation:
  3. # qute://help/configuring.html
  4. # qute://help/settings.html
  5. # Uncomment this to still load settings configured via autoconfig.yml
  6. # config.load_autoconfig()
  7. c = c # noqa
  8. config = config # noqa
  9. config.set(
  10. "content.headers.user_agent",
  11. "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/77.0",
  12. "https://accounts.google.com/*",
  13. )
  14. config.set(
  15. "content.headers.user_agent",
  16. "Mozilla/5.0 (X11; Linux x86_64; rv:57.0) Gecko/20100101 Firefox/77.0",
  17. "https://web.whatsapp.com/*",
  18. )
  19. # Require a confirmation before quitting the application.
  20. # Type: ConfirmQuit
  21. # Valid values:
  22. # - always: Always show a confirmation.
  23. # - multiple-tabs: Show a confirmation if multiple tabs are opened.
  24. # - downloads: Show a confirmation if downloads are running
  25. # - never: Never show a confirmation.
  26. c.confirm_quit = ["multiple-tabs", "downloads"]
  27. # Always restore open sites when qutebrowser is reopened.
  28. # Type: Bool
  29. c.auto_save.session = True
  30. # Enable JavaScript.
  31. # Type: Bool
  32. config.set("content.javascript.enabled", True, "file://*")
  33. # Enable JavaScript.
  34. # Type: Bool
  35. config.set("content.javascript.enabled", True, "chrome://*/*")
  36. # Enable JavaScript.
  37. # Type: Bool
  38. config.set("content.javascript.enabled", True, "qute://*/*")
  39. # Prompt the user for the download location. If set to false,
  40. # `downloads.location.directory` will be used.
  41. # Type: Bool
  42. c.downloads.location.prompt = False
  43. # Where to show the downloaded files.
  44. # Type: VerticalPosition
  45. # Valid values:
  46. # - top
  47. # - bottom
  48. c.downloads.position = "bottom"
  49. # When to show the scrollbar.
  50. # Type: String
  51. # Valid values:
  52. # - always: Always show the scrollbar.
  53. # - never: Never show the scrollbar.
  54. # - when-searching: Show the scrollbar when searching for text in the webpage. With the QtWebKit backend, this is equal to `never`.
  55. c.scrolling.bar = "never"
  56. # Languages to use for spell checking. You can check for available
  57. # languages and install dictionaries using scripts/dictcli.py. Run the
  58. # script with -h/--help for instructions.
  59. # Type: List of String
  60. # Valid values:
  61. # - af-ZA: Afrikaans (South Africa)
  62. # - bg-BG: Bulgarian (Bulgaria)
  63. # - ca-ES: Catalan (Spain)
  64. # - cs-CZ: Czech (Czech Republic)
  65. # - da-DK: Danish (Denmark)
  66. # - de-DE: German (Germany)
  67. # - el-GR: Greek (Greece)
  68. # - en-AU: English (Australia)
  69. # - en-CA: English (Canada)
  70. # - en-GB: English (United Kingdom)
  71. # - en-US: English (United States)
  72. # - es-ES: Spanish (Spain)
  73. # - et-EE: Estonian (Estonia)
  74. # - fa-IR: Farsi (Iran)
  75. # - fo-FO: Faroese (Faroe Islands)
  76. # - fr-FR: French (France)
  77. # - he-IL: Hebrew (Israel)
  78. # - hi-IN: Hindi (India)
  79. # - hr-HR: Croatian (Croatia)
  80. # - hu-HU: Hungarian (Hungary)
  81. # - id-ID: Indonesian (Indonesia)
  82. # - it-IT: Italian (Italy)
  83. # - ko: Korean
  84. # - lt-LT: Lithuanian (Lithuania)
  85. # - lv-LV: Latvian (Latvia)
  86. # - nb-NO: Norwegian (Norway)
  87. # - nl-NL: Dutch (Netherlands)
  88. # - pl-PL: Polish (Poland)
  89. # - pt-BR: Portuguese (Brazil)
  90. # - pt-PT: Portuguese (Portugal)
  91. # - ro-RO: Romanian (Romania)
  92. # - ru-RU: Russian (Russia)
  93. # - sh: Serbo-Croatian
  94. # - sk-SK: Slovak (Slovakia)
  95. # - sl-SI: Slovenian (Slovenia)
  96. # - sq: Albanian
  97. # - sr: Serbian
  98. # - sv-SE: Swedish (Sweden)
  99. # - ta-IN: Tamil (India)
  100. # - tg-TG: Tajik (Tajikistan)
  101. # - tr-TR: Turkish (Turkey)
  102. # - uk-UA: Ukrainian (Ukraine)
  103. # - vi-VN: Vietnamese (Viet Nam)
  104. c.spellcheck.languages = ["es-ES"]
  105. # When to show the tab bar.
  106. # Type: String
  107. # Valid values:
  108. # - always: Always show the tab bar.
  109. # - never: Always hide the tab bar.
  110. # - multiple: Hide the tab bar if only one tab is open.
  111. # - switching: Show the tab bar when switching tabs.
  112. c.tabs.show = "never"
  113. # Background color of the completion widget for odd rows.
  114. # Type: QssColor
  115. c.colors.completion.odd.bg = "#000000"
  116. # Background color of the completion widget for even rows.
  117. # Type: QssColor
  118. c.colors.completion.even.bg = "#000000"
  119. # Background color of the completion widget category headers.
  120. # Type: QssColor
  121. c.colors.completion.category.bg = "#000000"
  122. # Foreground color of the selected completion item.
  123. # Type: QtColor
  124. c.colors.completion.item.selected.fg = "#ffffff"
  125. # Background color of the selected completion item.
  126. # Type: QssColor
  127. c.colors.completion.item.selected.bg = "#191919"
  128. # Top border color of the selected completion item.
  129. # Type: QssColor
  130. c.colors.completion.item.selected.border.top = "#191919"
  131. # Bottom border color of the selected completion item.
  132. # Type: QssColor
  133. c.colors.completion.item.selected.border.bottom = "#191919"
  134. # Foreground color of the matched text in the completion.
  135. # Type: QtColor
  136. c.colors.completion.match.fg = "#ffcc00"
  137. # Foreground color of unselected odd tabs.
  138. # Type: QtColor
  139. c.colors.tabs.odd.fg = "grey"
  140. # Background color of unselected odd tabs.
  141. # Type: QtColor
  142. c.colors.tabs.odd.bg = "black"
  143. # Foreground color of unselected even tabs.
  144. # Type: QtColor
  145. c.colors.tabs.even.fg = "darkgrey"
  146. # Background color of unselected even tabs.
  147. # Type: QtColor
  148. c.colors.tabs.even.bg = "black"
  149. # Background color of selected odd tabs.
  150. # Type: QtColor
  151. c.colors.tabs.selected.odd.bg = "black"
  152. # Foreground color of pinned unselected odd tabs.
  153. # Type: QtColor
  154. c.colors.tabs.pinned.odd.fg = "gray"
  155. # Background color of pinned unselected odd tabs.
  156. # Type: QtColor
  157. c.colors.tabs.pinned.odd.bg = "black"
  158. # Foreground color of pinned unselected even tabs.
  159. # Type: QtColor
  160. c.colors.tabs.pinned.even.fg = "red"
  161. # Background color of pinned unselected even tabs.
  162. # Type: QtColor
  163. c.colors.tabs.pinned.even.bg = "black"
  164. # Default monospace fonts. Whenever "monospace" is used in a font
  165. # setting, it's replaced with the fonts listed here.
  166. # Type: Font
  167. c.fonts.default_family = "PragmataPro Mono"
  168. c.fonts.default_size = "13.5pt"
  169. # Bindings for normal mode
  170. config.unbind("/")
  171. config.unbind(":")
  172. config.bind("<Alt+x>", "set-cmd-text :")
  173. config.bind("<Ctrl+b>", "scroll left")
  174. config.bind("<Ctrl+c><Ctrl+p>", "spawn --userscript password_fill")
  175. config.bind("<Ctrl+f>", "scroll right")
  176. config.bind("<Ctrl+n>", "scroll down")
  177. config.bind("<Ctrl+p>", "scroll up")
  178. config.bind("<Ctrl+s>", "set-cmd-text /")
  179. config.bind("<Ctrl+u>", "undo")
  180. config.unbind("<Ctrl+w>")
  181. config.unbind("<Ctrl+x>")
  182. config.bind("<Ctrl+x><Ctrl+c>", "close")
  183. config.bind("<Ctrl+x><Ctrl+s>", "download")
  184. config.bind("<Ctrl+x>L", "set-cmd-text :open {url:pretty}")
  185. config.bind("<Ctrl+x>T", "set-cmd-text :open -t -r {url:pretty}")
  186. config.bind("<Ctrl+x>b", "set-cmd-text -s :buffer")
  187. config.bind("<Ctrl+x>k", "tab-close")
  188. config.bind("<Ctrl+x>l", "set-cmd-text -s :open")
  189. config.bind("<Ctrl+x>t", "set-cmd-text -s :open -t")
  190. config.bind("B", "back")
  191. config.bind("F", "forward")
  192. config.unbind("H")
  193. config.unbind("L")
  194. config.unbind("O")
  195. config.unbind("gO")
  196. config.unbind("go")
  197. config.unbind("gt")
  198. config.unbind("h")
  199. config.unbind("j")
  200. config.unbind("k")
  201. config.unbind("l")
  202. config.unbind("o")
  203. config.unbind("u")