Add install-cat-gtk

This commit is contained in:
Jeffrey Serio 2023-09-18 19:54:02 -05:00
parent 178214efa2
commit e728d0318b
1 changed files with 22 additions and 0 deletions

22
install-cat-gtk Executable file
View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
CAT_DIR="${HOME}/repos/github.com/catppuccin"
if ! test -d "${CAT_DIR}"; then
mkdir -p "${CAT_DIR}"
fi
if ! test -d "${CAT_DIR}/gtk"; then
git clone --recurse-submodules https://github.com/catppuccin/gtk.git "${CAT_DIR}/gtk"
fi
if ! test -d "${CAT_DIR}/gtk/venv"; then
python -m venv "${CAT_DIR}/gtk/venv"
fi
"${CAT_DIR}/gtk/venv/bin/pip" install -r "${CAT_DIR}/gtk/requirements.txt"
cd "${CAT_DIR}/gtk" || exit
"${CAT_DIR}"/gtk/venv/bin/python -c \
'from scripts.create_theme import create_theme; create_theme(["mocha"], ["red"], "/home/jas/.themes", link=True, recreate_assets=True)'