1 Commits

Author SHA1 Message Date
36c8f17749 Prepare for a first-run flow
Will fill in with the first stuff you should do after getting setup.
Teaching you how to do the basic commands.
2025-07-15 21:23:48 -07:00
5 changed files with 22 additions and 4 deletions

7
bin/omarchy-first-run Executable file
View File

@ -0,0 +1,7 @@
#!/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

View File

@ -10,7 +10,7 @@ fi
REPO_URL="$1"
THEMES_DIR="$HOME/.config/omarchy/themes"
THEME_NAME=$(basename "$REPO_URL" .git | sed -E 's/^omarchy-//; s/-theme$//')
THEME_NAME=$(basename "$REPO_URL" .git)
THEME_PATH="$THEMES_DIR/$THEME_NAME"
THEME_BACKGROUND_PATH="$THEME_PATH/backgrounds"
BACKGROUNDS_PATH="$HOME/.config/omarchy/backgrounds"
@ -27,10 +27,12 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
exit 1
fi
# Link backgrounds if present
# Copy backgrounds if present
if [ -d $THEME_BACKGROUND_PATH ]; then
ln -snf $THEME_BACKGROUND_PATH $BACKGROUNDS_THEME_PATH
mkdir -p $BACKGROUNDS_THEME_PATH
cp $THEME_BACKGROUND_PATH/* $BACKGROUNDS_THEME_PATH/
fi
# Apply the new theme with omarchy-theme-set
omarchy-theme-set $THEME_NAME

View File

@ -2,3 +2,4 @@ exec-once = hypridle & mako & waybar & fcitx5
exec-once = swaybg -i ~/.config/omarchy/current/background -m fill
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 = ~/.local/share/omarchy/bin/omarchy-first-run

8
first-run/index.html Normal file
View File

@ -0,0 +1,8 @@
<html>
<head>
<title>Hello</title>
</head>
<body>
<h1>Hello!</h1>
</body>
</html>

View File

@ -12,4 +12,4 @@ if [ -z "$OMARCHY_BARE" ]; then
fi
# Copy over Omarchy applications
source ~/.local/share/omarchy/bin/omarchy-refresh-applications || true
source ~/.local/share/omarchy/bin/omarchy-sync-applications || true