Let the themes include backgrounds directly

This commit is contained in:
David Heinemeier Hansson
2025-07-16 22:32:35 -07:00
parent 5170b7a653
commit 2235332cb9
3 changed files with 6 additions and 3 deletions

View File

@ -13,7 +13,12 @@ CURRENT_THEME_DIR="$HOME/.config/omarchy/current/theme"
THEME_NAME="$1"
THEME_PATH="$THEMES_DIR/$THEME_NAME"
if [[ -d "$HOME/.config/omarchy/themes/$THEME_NAME/backgrounds" ]]; then
BACKGROUND_PATH="$HOME/.config/omarchy/themes/$THEME_NAME/backgrounds"
else
BACKGROUND_PATH="$HOME/.config/omarchy/backgrounds/$THEME_NAME"
fi
# Check if the theme entered exists
if [[ ! -d "$THEME_PATH" ]]; then

View File

@ -1,2 +0,0 @@
mkdir -p "$BACKGROUNDS_DIR/rose-pine"
download_background_image "https://github.com/basecamp/omakub/raw/refs/heads/master/themes/nord/background.png" "rose-pine/1-nord.png"

Binary file not shown.

After

Width:  |  Height:  |  Size: 248 KiB