From 90cdbd5504b8fc425b0b69fafb4708015357a0ab Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 27 Aug 2025 14:14:03 +0200 Subject: [PATCH] Run the omarchy-update in a terminal process not owned by waybar so it'll survive being restarted --- bin/omarchy-launch-terminal-with-presentation | 4 ++++ config/waybar/config.jsonc | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100755 bin/omarchy-launch-terminal-with-presentation diff --git a/bin/omarchy-launch-terminal-with-presentation b/bin/omarchy-launch-terminal-with-presentation new file mode 100755 index 0000000..bae701e --- /dev/null +++ b/bin/omarchy-launch-terminal-with-presentation @@ -0,0 +1,4 @@ +#!/bin/bash + +cmd="$*" +setsid alacritty -e bash -c "omarchy-show-logo; $cmd; omarchy-show-done" diff --git a/config/waybar/config.jsonc b/config/waybar/config.jsonc index 7ff8c0e..b8c02f6 100644 --- a/config/waybar/config.jsonc +++ b/config/waybar/config.jsonc @@ -46,7 +46,7 @@ "custom/update": { "format": "", "exec": "omarchy-update-available", - "on-click": "alacritty --class Omarchy --title Omarchy -e omarchy-update", + "on-click": "omarchy-launch-terminal-with-presentation omarchy-update", "tooltip-format": "Omarchy update available", "interval": 3600 },