Setup real first-run install
This commit is contained in:
parent
e565768bed
commit
f98899e4e2
12
bin/omarchy-cmd-first-run
Executable file
12
bin/omarchy-cmd-first-run
Executable file
@ -0,0 +1,12 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
FIRST_RUN_MODE=~/.local/state/omarchy/first-run.mode
|
||||
|
||||
if [[ -f FIRST_RUN_MODE ]]; then
|
||||
$OMARCHY_PATH/install/first-run/battery-monitor.sh
|
||||
$OMARCHY_PATH/install/first-run/firewall.sh
|
||||
rm FIRST_RUN_MODE
|
||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
||||
fi
|
@ -6,6 +6,7 @@ exec-once = uwsm app -- swaybg -i ~/.config/omarchy/current/background -m fill
|
||||
exec-once = uwsm app -- swayosd-server
|
||||
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 = omarchy-first-run
|
||||
|
||||
# FIXME: Reenable the walker service once the memory leak has been fixed
|
||||
# See https://github.com/basecamp/omarchy/issues/698
|
||||
|
@ -14,6 +14,7 @@ source $OMARCHY_INSTALL/preflight/mirrorlist.sh
|
||||
source $OMARCHY_INSTALL/preflight/guard.sh
|
||||
source $OMARCHY_INSTALL/preflight/repositories.sh
|
||||
source $OMARCHY_INSTALL/preflight/migrations.sh
|
||||
source $OMARCHY_INSTALL/preflight/first-run-mode.sh
|
||||
|
||||
# Configuration
|
||||
source $OMARCHY_INSTALL/config/config.sh
|
||||
@ -70,7 +71,6 @@ omarchy-show-logo
|
||||
echo -e "\n\e[32mYou're done! So we're ready to reboot now...\e[0m"
|
||||
|
||||
if sudo test -f /etc/sudoers.d/99-omarchy-installer; then
|
||||
sudo rm -f /etc/sudoers.d/99-omarchy-installer &>/dev/null
|
||||
echo -e "\nRemember to remove USB installer!"
|
||||
fi
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user