On-demand Signal install

This commit is contained in:
David Heinemeier Hansson
2026-05-25 18:19:06 +02:00
parent 0ff8b5eece
commit 984f3368b4
5 changed files with 32 additions and 2 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# omarchy:summary=Install Signal and launch it.
# omarchy:requires-sudo=true
set -e
echo "Installing Signal..."
omarchy-pkg-add signal-desktop
echo "Opening Signal..."
setsid uwsm-app -- /usr/bin/signal-desktop >/dev/null 2>&1 &
echo ""
echo "Signal has been installed."
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# omarchy:summary=Launch Signal or start its installer when missing.
set -e
WINDOW_ADDRESS=$(hyprctl clients -j | jq -r '.[]|select((.class|test("\\bsignal\\b";"i")) or (.title|test("\\bsignal\\b";"i")))|.address' | head -n1)
if [[ -n $WINDOW_ADDRESS ]]; then
hyprctl dispatch "hl.dsp.focus({ window = \"address:$WINDOW_ADDRESS\" })" >/dev/null 2>&1 || hyprctl dispatch focuswindow "address:$WINDOW_ADDRESS"
elif [[ -x /usr/bin/signal-desktop ]]; then
exec setsid uwsm-app -- /usr/bin/signal-desktop
else
exec omarchy-launch-floating-terminal-with-presentation omarchy-install-service-signal
fi