mirror of
https://github.com/basecamp/omarchy.git
synced 2025-07-30 05:29:24 +00:00
Compare commits
1 Commits
e7e5ff96eb
...
first-run
Author | SHA1 | Date | |
---|---|---|---|
36c8f17749 |
7
bin/omarchy-first-run
Executable file
7
bin/omarchy-first-run
Executable 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
|
@ -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 | sed -E 's/^omarchy-//; s/-theme$//')
|
THEME_NAME=$(basename "$REPO_URL" .git)
|
||||||
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,10 +27,12 @@ if ! git clone "$REPO_URL" "$THEME_PATH"; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Link backgrounds if present
|
# Copy backgrounds if present
|
||||||
if [ -d $THEME_BACKGROUND_PATH ]; then
|
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
|
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,3 +2,4 @@ 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
|
||||||
|
8
first-run/index.html
Normal file
8
first-run/index.html
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
<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-refresh-applications || true
|
source ~/.local/share/omarchy/bin/omarchy-sync-applications || true
|
||||||
|
Reference in New Issue
Block a user