From c832b7dc759edcfdaa6ba6df840180f6cdbe9230 Mon Sep 17 00:00:00 2001 From: Jeff Nunn Date: Fri, 2 Jan 2026 22:03:54 -0600 Subject: [PATCH] Skip "press any key" message when user cancels TUI or Web App install (#3866) with Ctrl+C --- bin/omarchy-launch-floating-terminal-with-presentation | 2 +- bin/omarchy-tui-install | 2 ++ bin/omarchy-tui-remove | 2 ++ bin/omarchy-webapp-install | 2 ++ bin/omarchy-webapp-remove | 2 ++ 5 files changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-launch-floating-terminal-with-presentation b/bin/omarchy-launch-floating-terminal-with-presentation index cc779efd..a549ae47 100755 --- a/bin/omarchy-launch-floating-terminal-with-presentation +++ b/bin/omarchy-launch-floating-terminal-with-presentation @@ -1,4 +1,4 @@ #!/bin/bash cmd="$*" -exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done" +exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal --title=Omarchy -e bash -c "omarchy-show-logo; $cmd; if [ \$? -ne 130 ]; then omarchy-show-done; fi" diff --git a/bin/omarchy-tui-install b/bin/omarchy-tui-install index 657b70a6..ebd3dfa1 100755 --- a/bin/omarchy-tui-install +++ b/bin/omarchy-tui-install @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$#" -ne 4 ]; then echo -e "\e[32mLet's create a TUI shortcut you can start with the app launcher.\n\e[0m" APP_NAME=$(gum input --prompt "Name> " --placeholder "My TUI") diff --git a/bin/omarchy-tui-remove b/bin/omarchy-tui-remove index 91e6f6bc..e436776b 100755 --- a/bin/omarchy-tui-remove +++ b/bin/omarchy-tui-remove @@ -1,5 +1,7 @@ #!/bin/bash +set -e + ICON_DIR="$HOME/.local/share/applications/icons" DESKTOP_DIR="$HOME/.local/share/applications/" diff --git a/bin/omarchy-webapp-install b/bin/omarchy-webapp-install index e954e842..a66dcabd 100755 --- a/bin/omarchy-webapp-install +++ b/bin/omarchy-webapp-install @@ -1,5 +1,7 @@ #!/bin/bash +set -e + if [ "$#" -lt 3 ]; then echo -e "\e[32mLet's create a new web app you can start with the app launcher.\n\e[0m" APP_NAME=$(gum input --prompt "Name> " --placeholder "My favorite web app") diff --git a/bin/omarchy-webapp-remove b/bin/omarchy-webapp-remove index a6f4ea46..2da36b54 100755 --- a/bin/omarchy-webapp-remove +++ b/bin/omarchy-webapp-remove @@ -1,5 +1,7 @@ #!/bin/bash +set -e + ICON_DIR="$HOME/.local/share/applications/icons" DESKTOP_DIR="$HOME/.local/share/applications/"