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,8 +1,4 @@
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/tokyo-night
if [[ ! -d $BACKGROUNDS_DIR ]]; then
mkdir -p $BACKGROUNDS_DIR
gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/1-Milad-Fakurian-Abstract-Purple-Blue.jpg https://images.unsplash.com/photo-1620207418302-439b387441b0
gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/2-Pawel-Czerwinski-Abstract-Purple-Blue.jpg https://images.unsplash.com/photo-1651870364199-fc5f9f46ac85
gum spin --title "Downloading background image..." -- curl -sL -o $BACKGROUNDS_DIR/3-Jr-Korpa-Abstract-Purple-Blue.jpg https://images.unsplash.com/flagged/photo-1567400358593-9e6382752ea2
fi
mkdir -p "$BACKGROUNDS_DIR/tokyo-night"
download_background_image "https://images.unsplash.com/photo-1620207418302-439b387441b0", "tokyo-night/1-Milad-Fakurian-Abstract-Purple-Blue.jpg"
download_background_image "https://images.unsplash.com/photo-1651870364199-fc5f9f46ac85", "tokyo-night/2-Pawel-Czerwinski-Abstract-Purple-Blue.jpg"
download_background_image "https://images.unsplash.com/photo-1567400358593-9e6382752ea2", "tokyo-night/3-Jr-Korpa-Abstract-Purple-Blue.jpg"