diff --git a/bin/omarchy-install-once b/bin/omarchy-install-once new file mode 100755 index 00000000..97d56752 --- /dev/null +++ b/bin/omarchy-install-once @@ -0,0 +1,12 @@ +#!/bin/bash + +# Install the ONCE service, enable its background service, and launch the TUI. + +echo "Installing ONCE..." +omarchy-pkg-add once-bin + +echo "Enabling ONCE background service..." +sudo systemctl enable --now once-background.service + +echo -e "\nLaunching ONCE..." +once diff --git a/bin/omarchy-menu b/bin/omarchy-menu index bbb56fa9..53d2b4cf 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -317,10 +317,11 @@ show_install_menu() { } show_install_service_menu() { - case $(menu "Install" " Dropbox\n Tailscale\n󱇱 NordVPN [AUR]\n󰟵 Bitwarden\n Chromium Account") in + case $(menu "Install" " Dropbox\n Tailscale\n󱇱 NordVPN [AUR]\n󰏖 ONCE\n󰟵 Bitwarden\n Chromium Account") in *Dropbox*) present_terminal omarchy-install-dropbox ;; *Tailscale*) present_terminal omarchy-install-tailscale ;; *NordVPN*) present_terminal omarchy-install-nordvpn ;; + *ONCE*) present_terminal omarchy-install-once ;; *Bitwarden*) install_and_launch "Bitwarden" "bitwarden bitwarden-cli" "bitwarden" ;; *Chromium*) present_terminal omarchy-install-chromium-google-account ;; *) show_install_menu ;; diff --git a/bin/omarchy-update-perform b/bin/omarchy-update-perform index 9c22adf2..8965c0c2 100755 --- a/bin/omarchy-update-perform +++ b/bin/omarchy-update-perform @@ -2,13 +2,16 @@ set -e +# Run the update inside a PTY so pacman/yay keep showing download progress +# while still logging the full session for later analysis. +if [[ -z $OMARCHY_UPDATE_LOGGED ]]; then + script_command=$(printf '%q ' "$0" "$@") + exec env OMARCHY_UPDATE_LOGGED=1 script -qefc "$script_command" "/tmp/omarchy-update.log" +fi + # Ensure screensaver/sleep doesn't set in during updates hyprctl dispatch tagwindow +noidle &>/dev/null || true -# Capture update logs (CLICOLOR_FORCE keeps gum styled when stdout is piped through tee) -export CLICOLOR_FORCE=1 -exec > >(tee "/tmp/omarchy-update.log") 2>&1 - # Perform all update steps omarchy-update-keyring omarchy-update-available-reset