Extract background installation and do it all upfront

This commit is contained in:
David Heinemeier Hansson
2025-06-19 08:10:23 -04:00
parent ac1ac3011f
commit f45bdf5e46
7 changed files with 23 additions and 38 deletions

View File

@ -1,6 +1,2 @@
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/gruvbox
if [[ ! -d $BACKGROUNDS_DIR ]]; then
mkdir -p $BACKGROUNDS_DIR
gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/1-gruvbox.jpg https://github.com/basecamp/omakub/raw/refs/heads/master/themes/gruvbox/background.jpg
fi
mkdir -p "$BACKGROUNDS_DIR/gruvbox"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/gruvbox/background.jpg", "gruvbox/1-grubox.jpg"