Assorted shell and Python scripts
1#!/usr/bin/env bash
2
3CAT_DIR="${HOME}/repos/github.com/catppuccin"
4
5if ! test -d "${CAT_DIR}"; then
6 mkdir -p "${CAT_DIR}"
7fi
8
9if ! test -d "${CAT_DIR}/gtk"; then
10 git clone --recurse-submodules https://github.com/catppuccin/gtk.git "${CAT_DIR}/gtk"
11fi
12
13if ! test -d "${CAT_DIR}/gtk/venv"; then
14 python -m venv "${CAT_DIR}/gtk/venv"
15fi
16
17"${CAT_DIR}/gtk/venv/bin/pip" install -r "${CAT_DIR}/gtk/requirements.txt"
18
19cd "${CAT_DIR}/gtk" || exit
20
21"${CAT_DIR}"/gtk/venv/bin/python -c \
22 'from scripts.create_theme import create_theme; create_theme(["mocha"], ["red"], "/home/jas/.themes", link=True, recreate_assets=True)'