mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-29 13:09:24 +00:00
Compare commits
3 Commits
v1.4.0
...
e7e5ff96eb
Author | SHA1 | Date | |
---|---|---|---|
e7e5ff96eb | |||
10109bbadc | |||
89bda8468e |
@ -10,7 +10,7 @@ fi
|
||||
|
||||
REPO_URL="$1"
|
||||
THEMES_DIR="$HOME/.config/omarchy/themes"
|
||||
THEME_NAME=$(basename "$REPO_URL" .git)
|
||||
THEME_NAME=$(basename "$REPO_URL" .git | sed -E 's/^omarchy-//; s/-theme$//')
|
||||
THEME_PATH="$THEMES_DIR/$THEME_NAME"
|
||||
THEME_BACKGROUND_PATH="$THEME_PATH/backgrounds"
|
||||
BACKGROUNDS_PATH="$HOME/.config/omarchy/backgrounds"
|
||||
@ -27,12 +27,10 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Copy backgrounds if present
|
||||
# Link backgrounds if present
|
||||
if [ -d $THEME_BACKGROUND_PATH ]; then
|
||||
mkdir -p $BACKGROUNDS_THEME_PATH
|
||||
cp $THEME_BACKGROUND_PATH/* $BACKGROUNDS_THEME_PATH/
|
||||
ln -snf $THEME_BACKGROUND_PATH $BACKGROUNDS_THEME_PATH
|
||||
fi
|
||||
|
||||
# Apply the new theme with omarchy-theme-set
|
||||
omarchy-theme-set $THEME_NAME
|
||||
|
||||
|
@ -12,4 +12,4 @@ if [ -z "$OMARCHY_BARE" ]; then
|
||||
fi
|
||||
|
||||
# Copy over Omarchy applications
|
||||
source ~/.local/share/omarchy/bin/omarchy-sync-applications || true
|
||||
source ~/.local/share/omarchy/bin/omarchy-refresh-applications || true
|
||||
|
Reference in New Issue
Block a user