2023-11-05 22:26:13 +01:00
|
|
|
import catppuccin
|
2023-11-06 13:52:22 +01:00
|
|
|
|
2023-11-05 22:26:13 +01:00
|
|
|
# pylint: disable=C0111
|
|
|
|
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
|
|
|
|
from qutebrowser.config.config import ConfigContainer # noqa: F401
|
2023-11-06 13:52:22 +01:00
|
|
|
|
|
|
|
# fmt: off
|
|
|
|
config: ConfigAPI = config # type: ConfigAPI # noqa: F821 pylint: disable=E0602,C0103 # pyright: ignore
|
|
|
|
c: ConfigContainer = c # type: ConfigContainer # noqa: F821 pylint: disable=E0602,C0103 # pyright: ignore
|
|
|
|
# fmt: on
|
2023-11-05 22:26:13 +01:00
|
|
|
|
2023-11-05 22:36:22 +01:00
|
|
|
# load autoconfig values
|
2023-11-05 22:26:13 +01:00
|
|
|
config.load_autoconfig()
|
|
|
|
|
2023-11-05 22:36:22 +01:00
|
|
|
# load catppuccin theme
|
2023-11-06 13:52:22 +01:00
|
|
|
catppuccin.setup(c, "Machiatto", True)
|
2023-11-05 22:36:22 +01:00
|
|
|
|
2023-11-06 13:52:40 +01:00
|
|
|
# load custom configs
|
|
|
|
config.source("pyconfig/redirectors.py")
|
2023-11-05 22:36:22 +01:00
|
|
|
|
2023-11-06 13:52:40 +01:00
|
|
|
# enable dark mode
|
|
|
|
c.colors.webpage.darkmode.enabled = True
|
|
|
|
|
|
|
|
# change startpage and default page
|
|
|
|
c.url.start_pages = ["https://startpage.cronyakatsuki.xyz"]
|
|
|
|
c.url.default_page = "https://startpage.cronyakatsuki.xyz"
|
|
|
|
|
|
|
|
# search engines
|
|
|
|
c.url.searchengines = {
|
|
|
|
"DEFAULT": "https://searx.cronyakatsuki.xyz/?q={}",
|
|
|
|
"aw": "https://wiki.archlinux.org/?search={}",
|
|
|
|
"re": "https://www.reddit.com/r/{}",
|
|
|
|
"w": "https://en.wikipedia.org/wiki/{}",
|
|
|
|
"y": "https://www.youtube.com/results?search_query={}",
|
|
|
|
}
|
2023-11-05 22:36:22 +01:00
|
|
|
|
|
|
|
c.content.javascript.enabled = False
|
|
|
|
|
|
|
|
# enable dark mode
|
|
|
|
c.content.webpage.darkmode.enable = True
|