#!/bin/bash # omarchy:summary=Launch a floating terminal with the Omarchy presentation wrapper # omarchy:args= # Export the current theme's gum styling so gum widgets match the active theme # even after a theme switch (the inherited environment is captured at login). source omarchy-restart-gum cmd="$*" # 130 is the user bailing with Ctrl-C; anything else gets the Done/Failed prompt. presentation_script="omarchy-show-logo; $cmd; code=\$?; if (( code != 130 )); then omarchy-show-done \$code; fi" exec setsid uwsm-app -- xdg-terminal-exec --app-id=org.omarchy.terminal --title=Omarchy -e bash -c "$presentation_script"