mirror of
https://github.com/catppuccin/qutebrowser.git
synced 2026-02-20 06:47:07 +08:00
Do not set `colors.webpage.bg`. I think that setting it results in reduced usability of some web pages. There is a line between theming a browser and attempting to theme the world wide web. And I don't believe we should be crossing it here.

Catppuccin for qutebrowser
Usage
There are two ways to install & manage this theme:
Manual config:
- Find out where the qutebrowser stores its
configdirectory for your OS.
Run:version, and take a look atPaths: configto find out. - Clone this repo into that
configdirectory:
# Linux
$ git clone https://github.com/catppuccin/qutebrowser.git ~/.config/qutebrowser/catppuccin
# macOS
$ git clone https://github.com/catppuccin/qutebrowser.git ~/.qutebrowser/catppuccin
# windows
$ git clone https://github.com/catppuccin/qutebrowser.git $LOCALAPPDATA/qutebrowser/config/catppuccin
- Make sure your
config.pycontains:
import catppuccin
# load your autoconfig, use this, if the rest of your config is empty!
config.load_autoconfig()
# set the flavor you'd like to use
# valid options are 'mocha', 'macchiato', 'frappe', and 'latte'
# last argument (optional, default is False): enable the plain look for the menu rows
catppuccin.setup(c, 'mocha', True)
- Done!
Let qutebrowser manage your themes:
- Insert the following code into your
config.py:
import os
from urllib.request import urlopen
# load your autoconfig, use this, if the rest of your config is empty!
config.load_autoconfig()
if not os.path.exists(config.configdir / "theme.py"):
theme = "https://raw.githubusercontent.com/catppuccin/qutebrowser/main/setup.py"
with urlopen(theme) as themehtml:
with open(config.configdir / "theme.py", "a") as file:
file.writelines(themehtml.read().decode("utf-8"))
if os.path.exists(config.configdir / "theme.py"):
import theme
theme.setup(c, 'mocha', True)
- Remove your current theme from your
.qutebrowserdirectory & reloadconfig.py.
💝 Thanks to
Copyright © 2021-present Catppuccin Org
Languages
Python
100%