mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-31 05:59:22 +00:00
Compare commits
3 Commits
first-run
...
e7e5ff96eb
Author | SHA1 | Date | |
---|---|---|---|
e7e5ff96eb | |||
10109bbadc | |||
89bda8468e |
@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [[ ! -f ~/.local/state/omarchy/first-run.marker ]]; then
|
|
||||||
chromium --new-window --app=file://$HOME/.local/share/omarchy/first-run/index.html
|
|
||||||
mkdir -p ~/.local/state/omarchy
|
|
||||||
touch ~/.local/state/omarchy/first-run.marker
|
|
||||||
fi
|
|
@ -10,7 +10,7 @@ fi
|
|||||||
|
|
||||||
REPO_URL="$1"
|
REPO_URL="$1"
|
||||||
THEMES_DIR="$HOME/.config/omarchy/themes"
|
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_PATH="$THEMES_DIR/$THEME_NAME"
|
||||||
THEME_BACKGROUND_PATH="$THEME_PATH/backgrounds"
|
THEME_BACKGROUND_PATH="$THEME_PATH/backgrounds"
|
||||||
BACKGROUNDS_PATH="$HOME/.config/omarchy/backgrounds"
|
BACKGROUNDS_PATH="$HOME/.config/omarchy/backgrounds"
|
||||||
@ -27,12 +27,10 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy backgrounds if present
|
# Link backgrounds if present
|
||||||
if [ -d $THEME_BACKGROUND_PATH ]; then
|
if [ -d $THEME_BACKGROUND_PATH ]; then
|
||||||
mkdir -p $BACKGROUNDS_THEME_PATH
|
ln -snf $THEME_BACKGROUND_PATH $BACKGROUNDS_THEME_PATH
|
||||||
cp $THEME_BACKGROUND_PATH/* $BACKGROUNDS_THEME_PATH/
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Apply the new theme with omarchy-theme-set
|
# Apply the new theme with omarchy-theme-set
|
||||||
omarchy-theme-set $THEME_NAME
|
omarchy-theme-set $THEME_NAME
|
||||||
|
|
||||||
|
@ -2,4 +2,3 @@ exec-once = hypridle & mako & waybar & fcitx5
|
|||||||
exec-once = swaybg -i ~/.config/omarchy/current/background -m fill
|
exec-once = swaybg -i ~/.config/omarchy/current/background -m fill
|
||||||
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
|
||||||
exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'
|
exec-once = wl-clip-persist --clipboard regular --all-mime-type-regex '^(?!x-kde-passwordManagerHint).+'
|
||||||
exec-once = ~/.local/share/omarchy/bin/omarchy-first-run
|
|
||||||
|
@ -1,8 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>Hello</title>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
<h1>Hello!</h1>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
@ -12,4 +12,4 @@ if [ -z "$OMARCHY_BARE" ]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Copy over Omarchy applications
|
# 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