dots/chezmoi/.chezmoiscripts/run_once_setup_gtk_theme.sh.tmpl
aleidk 39d5da142c Migrate more options to chezmoi
- Add boolPrompt for _hasGui_ to allow to run some scripts confitionally
- Add script to setup catppuccin GTK theme
2024-03-08 13:15:33 -03:00

25 lines
785 B
Cheetah

{{- if eq .hasGui true -}}
#!/usr/bin/env bash
# ╭──────────────────────────────────────────────────────────╮
# │ Setup Catppuccin GTK theme │
# ╰──────────────────────────────────────────────────────────╯
set -e
tmp_dir="$(mktemp -d)"
cd "$tmp_dir"
git clone --recurse-submodules git@github.com:catppuccin/gtk.git
cd gtk
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python install.py macchiato --link -a teal -d ~/.themes --tweaks normal
rm -rf "$tmp_dir"
{{ end }}