mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-27 12:19:24 +00:00
Fix downloading
This commit is contained in:
@ -3,7 +3,7 @@ BACKGROUNDS_DIR=~/.config/omarchy/backgrounds/
|
|||||||
download_background_image() {
|
download_background_image() {
|
||||||
local url="$1"
|
local url="$1"
|
||||||
local path="$2"
|
local path="$2"
|
||||||
gum spin --title "Downloading background image..." -- curl -sL -o "$BACKGROUNDS_DIR/$path" "$url"
|
gum spin --title "Downloading $url as $path..." -- curl -sL -o "$BACKGROUNDS_DIR/$path" "$url"
|
||||||
}
|
}
|
||||||
|
|
||||||
for t in ~/.local/share/omarchy/themes/*; do source "$t/backgrounds.sh"; done
|
for t in ~/.local/share/omarchy/themes/*; do source "$t/backgrounds.sh"; done
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/catppuccin"
|
mkdir -p "$BACKGROUNDS_DIR/catppuccin"
|
||||||
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/catppuccin/background.png", "catppuccin/1-catppuccin.png"
|
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/catppuccin/background.png" "catppuccin/1-catppuccin.png"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/everforest"
|
mkdir -p "$BACKGROUNDS_DIR/everforest"
|
||||||
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/everforest/background.jpg", "everforest/1-everforest.jpg"
|
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/everforest/background.jpg" "everforest/1-everforest.jpg"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/gruvbox"
|
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"
|
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/gruvbox/background.jpg" "gruvbox/1-grubox.jpg"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/kanagawa"
|
mkdir -p "$BACKGROUNDS_DIR/kanagawa"
|
||||||
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/kanagawa/background.jpg", "kanagawa/1-kanagawa.jpg"
|
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/kanagawa/background.jpg" "kanagawa/1-kanagawa.jpg"
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/nord"
|
mkdir -p "$BACKGROUNDS_DIR/nord"
|
||||||
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/nord/background.png", "nord/1-nord.png"
|
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/nord/background.png" "nord/1-nord.png"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
mkdir -p "$BACKGROUNDS_DIR/tokyo-night"
|
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-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-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"
|
download_background_image "https://images.unsplash.com/photo-1567400358593-9e6382752ea2" "tokyo-night/3-Jr-Korpa-Abstract-Purple-Blue.jpg"
|
||||||
|
Reference in New Issue
Block a user