Refactor qutebrowser searchengine config

This commit is contained in:
Tobias Reisinger 2025-03-10 03:39:50 +01:00
parent f47badde11
commit ed65fd6c29
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
5 changed files with 32 additions and 12 deletions

View file

@ -1,6 +1,6 @@
import dracula.draw
def init(c):
def init(c, bangs):
c.auto_save.session = True
#c.colors.webpage.darkmode.enabled = True
@ -21,21 +21,17 @@ def init(c):
c.tabs.background = True
c.tabs.mousewheel_switching = False
c.tabs.new_position.related = 'last'
c.tabs.pinned.frozen = False
c.tabs.pinned.frozen = True
c.qt.workarounds.remove_service_workers = True
c.url.searchengines = {
'DEFAULT': 'https://duckduckgo.com/?q={}',
search_engines = {
'ddg': 'https://duckduckgo.com/?q={}',
'kagi': 'https://kagi.com/search?q={}',
'!lh': 'http://localhost:{}/',
'!12ft': 'http://12ft.io/proxy?q={}/',
'!osm': 'https://www.openstreetmap.org/search?query={}',
'!cheatsheet': 'https://cheatsheets.zip/?q={}',
'!timer': 'https://webuhr.de/timer/#countdown=00:{unquoted}',
'!alarm': 'https://webuhr.de/#time={unquoted}',
'qwant': 'https://www.qwant.com/?q={}',
}
search_engines['DEFAULT'] = search_engines['qwant']
c.url.searchengines = search_engines | bangs
c.url.start_pages = [
'https://rss.serguzim.me/',
'http://homeassistant-33:8123/',