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

9
install/backgrounds.sh Normal file
View File

@ -0,0 +1,9 @@
BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/
download_background_image() {
local url="$1"
local path="$2"
gum spin --title "Downloading background image..." -- curl -sL -o "$BACKGROUNDS_DIR/$path" "$url"
}
for t in ~/.local/share/omarchy/themes/*; do source "$t/backgrounds.sh"; done