From f98899e4e2570b6640851c8e8d8d7b42af676222 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 25 Aug 2025 07:37:46 +0200 Subject: [PATCH] Setup real first-run install --- bin/omarchy-cmd-first-run | 12 ++++++++++++ default/hypr/autostart.conf | 1 + install.sh | 2 +- 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-cmd-first-run diff --git a/bin/omarchy-cmd-first-run b/bin/omarchy-cmd-first-run new file mode 100755 index 00000000..af1a7632 --- /dev/null +++ b/bin/omarchy-cmd-first-run @@ -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 diff --git a/default/hypr/autostart.conf b/default/hypr/autostart.conf index f7867c8b..b620617f 100644 --- a/default/hypr/autostart.conf +++ b/default/hypr/autostart.conf @@ -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 diff --git a/install.sh b/install.sh index fab79697..edf288c4 100755 --- a/install.sh +++ b/install.sh @@ -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