🌐 Soothing pastel theme for qutebrowser
Go to file
Josh a6a4a26e62 gitignore 2023-08-15 02:28:28 -04:00
assets docs: add screenshot 2022-06-27 00:31:07 +02:00
.editorconfig chore: update .editorconfig 2022-09-27 02:41:54 +02:00
.gitignore gitignore 2023-08-15 02:28:28 -04:00
LICENSE feat: initial release 2022-06-26 21:13:47 +02:00
README.md docs: minor rewording 2023-03-26 19:00:32 +02:00
__init__.py feat: initial release 2022-06-26 21:13:47 +02:00
setup.py Add personal return 2023-08-02 21:26:21 -04:00

README.md

Logo
Catppuccin for qutebrowser

Usage

There are two ways to install & manage this theme:

Manual config:

  1. Find out where the qutebrowser stores its config directory for your OS.
    Run :version, and take a look at Paths: config to find out.
  2. Clone this repo into that config directory:
# 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
  1. Make sure your config.py contains:
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)
  1. Done!

Let qutebrowser manage your themes:

  1. 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)
  1. Remove your current theme from your .qutebrowser directory & reload config.py.

💝 Thanks to

 

Copyright © 2021-present Catppuccin Org