dotfiles/.config/qutebrowser/config.py

117 lines
3.7 KiB
Python
Raw Normal View History

2019-09-25 20:07:56 +02:00
config, c = config, c
2021-02-07 18:28:14 +01:00
# Background color for webpages if unset.
c.colors.webpage.bg = ''
# Force prefers-color-scheme: dark colors for websites.
c.colors.webpage.prefers_color_scheme_dark = True
# Require a confirmation before quitting the application.
c.confirm_quit = ['downloads']
2019-05-28 17:44:30 +02:00
# Default encoding to use for websites.
c.content.default_encoding = 'utf-8'
# Value to send in the Accept-Language header.
c.content.headers.accept_language = 'en_GB,en'
# User agent to send.
2019-10-21 09:51:06 +02:00
c.content.headers.user_agent = ' '.join((
2019-05-28 17:44:30 +02:00
'Mozilla/5.0',
'(X11; Linux x86_64)',
2021-02-07 18:28:14 +01:00
'QtWebEngine/5.15.2',
'Chromium/83.0.4103.122',
'qutebrowser/2.0.2'
2019-10-21 09:51:06 +02:00
))
2019-05-28 17:44:30 +02:00
# Allow JavaScript to read from or write to the clipboard.
c.content.javascript.can_access_clipboard = True
# Allow pdf.js to view PDF files in the browser.
c.content.pdfjs = True
# Validate SSL handshakes.
c.content.ssl_strict = True
# Enable WebGL.
c.content.webgl = False
# Editor (and arguments) to use
2021-02-07 18:28:14 +01:00
# for the edit-text command.
2019-05-28 17:44:30 +02:00
c.editor.command = [
'konsole', '-e',
'nvim', '{file}',
'-c', 'normal {line}G{column0}l'
]
2021-02-07 18:28:14 +01:00
# Command (and arguments) to use for selecting files in forms.
c.fileselect.single_file.command = \
c.fileselect.multiple_files.command = \
['konsole', '-e', 'vifm', '--choose-files', '{}']
2019-05-28 17:44:30 +02:00
# Default monospace fonts.
2021-02-07 18:28:14 +01:00
c.fonts.web.family.fixed = 'Hack, Fira Code, Fantasque Sans Mono'
2019-05-28 17:44:30 +02:00
# Which Chromium process model to use.
c.qt.process_model = 'process-per-site'
# Languages to use for spell checking.
2019-11-24 15:50:07 +01:00
c.spellcheck.languages = ['en-GB', 'en-US', 'el-GR']
2019-05-28 17:44:30 +02:00
2021-02-07 18:28:14 +01:00
# When to show the statusbar.
c.statusbar.show = 'never'
2019-05-28 17:44:30 +02:00
# List of widgets displayed in the statusbar.
2019-11-24 15:50:07 +01:00
c.statusbar.widgets = ['keypress', 'url', 'history', 'tabs', 'progress']
2019-05-28 17:44:30 +02:00
2021-02-07 18:28:14 +01:00
# When to show the tab bar.
c.tabs.show = 'multiple'
# What search to start when something else than a URL is entered.
c.url.auto_search = 'never'
# Page to open if :open -t/-b/-w is used without URL. {{{1
c.url.default_page = """https://search.disroot.org/?preferences=
eJx1VU3P2zYM_jXzxUixroedfBg2DCtQ4C2adFeDlmibjSS6opy83q8fFX_EedNe
Elgm-XyQoiPK6JLUHOqA1zpBU_0NTrCwTHVEYXfBWImhQz8279K1cBC6ETqsMBy-
HgvHBlx-KCwJNA5tPbixoyDVv-QPjs5Y95zOOMkvv_35MmDIVRWydhTOG24T-SoY
M36O-xhaCpSwFhPZuTXzD2NQpP7r5aMWuUYNKMgrl3qI_DpVpzhiAWNiw35wmLAq
BFoUhGj66tci9eixYjEQCwyPZI_o2lphOXpIxCGzOEUwZyX19csnxfOsTujpP6fT
5-OKr8_HW_ksxEDCjuNUCzo06e4IBsVAqVhFAEUcxsaRmXFq1UgYTC7VRsRSuE1X
iFhajTQp16sp6dsLQ9JoNgSu9GgJ9LABwX2JMAHU9YUscpYwBhkcSK8lslH5qGPu
HJZ6PJUwDEqgJXd7Y6lr0v1xsM1D6Y46lQOiIR0GjJD7EtFa0hNtYs7RdolEbPd5
gh5CIlOK6dlBfKa7cVsNspBUV3owZ8_bj0Kmrm9_GdWYQ7rsZK-s7jw7xHMij7KY
SWFvk6dMXI0vwYBFn4vfkRdftuiFyfy8OwfTCY_PgTNlvhDuo9-_7oTb0ep87_gK
oh1Qh28Tqe8S80LfjDEqu2mf4unVOB7tPeX7VY0v54l5mhzUK0d2X6CFmAGWVvbQ
RMg_C2SecrpgSbLPWTWvkG3Ua01gdtoSnydOLD2fIewiZ7QfSd48aiN4cNREXEhM
0DOXmeHG009e72acyhQhiNM7aH9EcJ1qz990FPYRs0sPNR03kvBdXKelvzVyebjz
XGu-UbjRXwZnVfwmbM0W_C-Af3DCQIilpDiaNEaUN8PYPfVyXnGGLZb5ZyGqa8Zn
M-7J7z98-P11R3CXZ9ksadZ2pcXbAp4X1LOZc2-3Jbrut2XeH63U7oF2JxeRx9lZ
wn-6FlaD1tv8RnS3NOWp4MxuN4ENpWbUVZ4WhWvBLWDGu_Wp8Jh6ttXnl-OpWDY6
ZW0zSnH7fBwkTfrVc9xRNu9ysBDP_wMVWr6s""".replace('\n', '')
# }}}
# Page(s) to open at the start.
c.url.start_pages = ['about:blank']
2019-05-28 17:44:30 +02:00
# Search engines which can be used via the address bar.
c.url.searchengines = {
2021-02-07 18:28:14 +01:00
'DEFAULT': c.url.default_page + '&q={}',
2020-04-25 21:12:40 +02:00
'G': 'https://google.com/search?q={}',
2019-09-25 20:07:56 +02:00
'Q': 'https://qwant.com/?q={}'
2019-05-28 17:44:30 +02:00
}
# Keybindings {{{0
config.bind(';m', 'spawn mpv {url}')
config.bind(';M', 'hint links spawn mpv {hint-url}')
2021-02-07 18:28:14 +01:00
config.bind(';T', 'config-cycle -t tabs.show always multiple')
config.bind(';S', 'config-cycle -t statusbar.show always never')
config.bind('<F5>', 'reload -f')
config.bind('<Ctrl-Shift-I>', 'devtools window')
2019-05-28 17:44:30 +02:00
# }}}
2021-02-07 18:28:14 +01:00
# Disable autoconfig
config.load_autoconfig(False)
2019-05-28 17:44:30 +02:00
2019-09-25 20:07:56 +02:00
# vim:fdm=marker:fdl=0: