53 lines
1.7 KiB
Python
53 lines
1.7 KiB
Python
import catppuccin
|
|
|
|
# pylint: disable=C0111
|
|
from qutebrowser.config.configfiles import ConfigAPI # noqa: F401
|
|
from qutebrowser.config.config import ConfigContainer # noqa: F401
|
|
|
|
# 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
|
|
|
|
# load autoconfig values
|
|
config.load_autoconfig()
|
|
|
|
# load catppuccin theme
|
|
catppuccin.setup(c, "Machiatto", True)
|
|
|
|
# load custom configs
|
|
config.source("pyconfig/redirectors.py")
|
|
|
|
# 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={}",
|
|
}
|
|
|
|
##-- Fingerprinting settings --##
|
|
c.content.headers.user_agent = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.3"
|
|
c.content.headers.accept_language = "en-US,en;q=0.5"
|
|
c.content.headers.custom = {
|
|
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
|
|
}
|
|
c.content.canvas_reading = False
|
|
c.content.webgl = False
|
|
c.content.webrtc_ip_handling_policy = "default-public-interface-only"
|
|
c.content.geolocation = False
|
|
c.content.blocking.method = "both"
|
|
c.content.javascript.enabled = False
|
|
c.content.notifications.enabled = False
|
|
c.content.cookies.accept = "never"
|
|
c.content.private_browsing = False
|
|
|