.dotfiles/.config/qutebrowser/common.py

54 lines
1.7 KiB
Python
Raw Normal View History

import dracula.draw
def init(c):
2022-08-30 21:03:21 +00:00
c.auto_save.session = True
#c.colors.webpage.darkmode.enabled = True
#c.colors.webpage.darkmode.policy.images = 'never'
c.colors.webpage.preferred_color_scheme = 'dark'
#c.content.proxy = "socks://localhost:9050/"
c.content.headers.accept_language = "en-US,en;q=0.5"
2022-08-30 21:03:21 +00:00
#c.content.headers.user_agent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
2022-04-05 21:05:00 +00:00
c.content.tls.certificate_errors = 'block'
c.downloads.position = 'bottom'
c.fonts.hints = 'bold 18px default_family'
2022-12-20 00:13:24 +00:00
c.session.default_name = 'autosave'
c.tabs.background = True
c.tabs.mousewheel_switching = False
c.tabs.new_position.related = 'last'
2021-12-12 20:18:38 +00:00
c.tabs.pinned.frozen = False
2022-05-15 21:46:53 +00:00
c.qt.workarounds.remove_service_workers = True
2022-01-30 20:28:50 +00:00
c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}',
'ddg': 'https://duckduckgo.com/?q={}',
2024-06-24 13:25:28 +00:00
'kagi': 'https://kagi.com/search?q={}',
'!lh': 'http://localhost:{}/',
'!12ft': 'http://12ft.io/proxy?q={}/',
'!osm': 'https://www.openstreetmap.org/search?query={}',
2024-10-28 20:02:40 +00:00
'!cheatsheet': 'https://cheatsheets.zip/?q={}',
'!timer': 'https://webuhr.de/timer/#countdown=00:{unquoted}',
'!alarm': 'https://webuhr.de/#time={unquoted}',
2022-01-30 20:28:50 +00:00
}
2024-04-30 20:57:39 +00:00
c.url.start_pages = [
'https://rss.serguzim.me/',
'http://homeassistant-33:8123/',
'https://status.serguzim.net/'
'https://open.spotify.com/'
]
2022-11-13 22:22:21 +00:00
c.zoom.mouse_divider = 0
dracula.draw.blood(c, {
'spacing': {
'vertical': 1,
'horizontal': 3
}
})