On-demand Signal install
This commit is contained in:
Executable
+15
@@ -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."
|
||||
Executable
+15
@@ -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
|
||||
Reference in New Issue
Block a user