~alexdavid/dotfiles

ref: b6e23f59d542764f276ef2cc5766878576cf5c62 dotfiles/qutebrowser/config.py -rw-r--r-- 1.2 KiB
b6e23f59 — Alex David Switch back to qutebrowser 5 months ago
                                                                                
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
c.editor.command = ['popup-term', 'nvim "{file}" -c "normal {line}G{column0}l"']
c.editor.encoding = 'utf-8'

config.set('downloads.location.directory', '~/Downloads')
config.set('downloads.location.prompt', False)
config.set('downloads.remove_finished', 5000)
config.set('fonts.default_family', 'SF Pro Display')
config.set('fonts.default_size', '14pt')
config.set('tabs.background', True)
config.set('tabs.show', 'multiple')

# Make :q work more like vim:
config.set('tabs.last_close', 'close')
config.set('aliases', {
    "q": "tab-close",
    "qa": "quit",
})

# Privacy
config.set('content.webrtc_ip_handling_policy', 'default-public-interface-only')

# Key bindings
config.unbind('d')
config.bind('m', 'hint links spawn --detach mpvsingleton {hint-url}')
config.bind('o', 'set-cmd-text -s :open -s')
config.bind('O', 'set-cmd-text -s :open -st')
config.bind('we', 'edit-url')


from os.path import expanduser
try:
    open(expanduser("~/.config/isdark")).close()
    config.set('colors.webpage.prefers_color_scheme_dark', True)
    config.set('colors.webpage.darkmode.enabled', True)
except FileNotFoundError:
    config.set('colors.webpage.darkmode.enabled', False)
    config.set('colors.webpage.prefers_color_scheme_dark', False)