.dotfiles/.config/qutebrowser/config.py

47 lines
1.6 KiB
Python
Raw Normal View History

2020-10-02 09:28:49 +00:00
config.load_autoconfig()
c.auto_save.session = True
2020-11-18 14:37:19 +00:00
#c.content.proxy = "socks://localhost:9050/"
c.downloads.position = 'bottom'
c.fonts.hints = 'bold 18px default_family'
2020-11-18 14:37:19 +00:00
c.tabs.background = True
c.tabs.mousewheel_switching = False
2020-11-18 14:37:19 +00:00
c.tabs.new_position.related = 'last'
c.url.start_pages = ['dashboard.serguzim.me', 'cloud.serguzim.me', 'localhost:6680/iris/']
c.url.searchengines = {'DEFAULT': 'bookmarks.serguzim/?q={}'}
c.zoom.default = 125
2020-10-02 09:28:49 +00:00
config.bind(',v', 'spawn --userscript view_in_mpv {url}')
config.bind(',V', 'hint links spawn --userscript view_in_mpv {hint-url}')
2020-10-02 09:28:49 +00:00
2020-11-18 14:37:19 +00:00
config.bind(',b', 'spawn brave {url}')
config.bind(',B', 'hint links spawn brave {hint-url}')
config.bind(',j', 'spawn --userscript format_json')
2021-02-13 22:44:03 +00:00
config.bind(',g', 'open {url:scheme}://github1s.com{url:path}{url:query}')
2020-10-02 09:28:49 +00:00
config.bind(',rr', 'open {url:scheme}://removeddit.com{url:path}{url:query}')
config.bind(',rt', 'open {url:scheme}://reddit.tube{url:path}{url:query}')
2021-02-13 22:44:03 +00:00
config.bind(',s', 'spawn steam steam://openurl/{url}')
2020-10-02 09:28:49 +00:00
PASS_SCRIPT_DEFAULT = 'spawn --userscript qute-pass --no-insert-mode --username-target secret --username-pattern "login: (.+)" '
2020-10-02 09:28:49 +00:00
config.bind(',p', PASS_SCRIPT_DEFAULT)
config.bind(',Pu', PASS_SCRIPT_DEFAULT + '--username-only')
config.bind(',Pi', PASS_SCRIPT_DEFAULT + '--password-only')
config.bind(',Po', PASS_SCRIPT_DEFAULT + '--otp-only')
config.bind(',q', 'spawn --userscript qr {url}')
config.bind(',Q', 'hint links spawn --userscript qr {hint-url}')
2020-10-02 09:28:49 +00:00
config.bind('<Alt-9>', 'tab-focus 9')
config.bind('<Ctrl-Tab>', 'tab-next')
config.bind('<Ctrl-Shift-Tab>', 'tab-prev')