~alexdavid/dotfiles

ref: 49716f60f58bcda250416e8b74915fdf82fbb97a dotfiles/qutebrowser/config.py -rw-r--r-- 1006 bytes
49716f60 — Alex David Add ttf-hanazono font 10 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
c.content.javascript.enabled = False

c.editor.command = ['popup-term', 'nvim {file} -c "normal {line}G{column0}l"']
c.editor.encoding = 'utf-8'

config.set('tabs.max_width', 250)

config.set('content.javascript.enabled', True, 'chrome://*/*')
config.set('content.javascript.enabled', True, 'file://*')
config.set('content.javascript.enabled', True, 'http://localhost/*')
config.set('content.javascript.enabled', True, 'https://*.duckduckgo.com/*')
config.set('content.javascript.enabled', True, 'https://github.com/*')
config.set('content.javascript.enabled', True, 'qute://*/*')

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

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

# Key bindings
config.bind('d', None)
config.bind('m', 'hint links spawn --detach mpv {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')