From b24870ca964207acd8351667bd113f59a9970ab7 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Sun, 5 Nov 2023 22:36:22 +0100 Subject: [PATCH] Update qutebrowser config. --- .config/qutebrowser/config.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/.config/qutebrowser/config.py b/.config/qutebrowser/config.py index c157c8f..7642c3a 100644 --- a/.config/qutebrowser/config.py +++ b/.config/qutebrowser/config.py @@ -2,9 +2,24 @@ import catppuccin # pylint: disable=C0111 from qutebrowser.config.configfiles import ConfigAPI # noqa: F401 from qutebrowser.config.config import ConfigContainer # noqa: F401 -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 +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 +# load autoconfig values config.load_autoconfig() +# load catppuccin theme catppuccin.setup(c, 'Machiatto', True) + +# change startpage +c.url.start_pages = ['https://startpage.cronyakatsuki.xyz'] + +# launch with mpv +config.bind(',m', 'spawn mpv {url}') +config.bind(',M', 'hint links spawn mpv {hint-url}') + +# disable javascript globally +c.content.javascript.enabled = False + +# enable dark mode +c.content.webpage.darkmode.enable = True