mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-01 20:28:16 +02:00
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
|
||||
@@ -10,7 +10,7 @@ o.bind("SUPER + SHIFT + M", "Music", { omarchy = "spotify" })
|
||||
o.bind("SUPER + SHIFT + ALT + M", "Music TUI", { tui = "cliamp", focus = true })
|
||||
o.bind("SUPER + SHIFT + N", "Editor", { omarchy = "editor" })
|
||||
o.bind("SUPER + SHIFT + D", "Docker", { tui = "lazydocker" })
|
||||
o.bind("SUPER + SHIFT + G", "Signal", { launch = "signal-desktop", focus = "^signal$" })
|
||||
o.bind("SUPER + SHIFT + G", "Signal", { omarchy = "signal" })
|
||||
o.bind("SUPER + SHIFT + O", "Obsidian", { launch = "obsidian", focus = "^obsidian$" })
|
||||
o.bind("SUPER + SHIFT + W", "Typora", { launch = "typora --enable-wayland-ime" })
|
||||
o.bind("SUPER + SHIFT + SLASH", "Passwords", { launch = "1password" })
|
||||
|
||||
@@ -173,6 +173,7 @@
|
||||
"install.service.1password": {"icon":"","label":"1Password","keywords":"password","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-1password"},
|
||||
"install.service.dropbox": {"icon":"","label":"Dropbox","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-dropbox"},
|
||||
"install.service.spotify": {"icon":"","label":"Spotify","keywords":"music","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-spotify"},
|
||||
"install.service.signal": {"icon":"","label":"Signal","keywords":"messenger chat","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-service-signal"},
|
||||
"install.service.tailscale": {"icon":"","label":"Tailscale","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-tailscale"},
|
||||
"install.service.nordvpn": {"icon":"","label":"NordVPN [AUR]","keywords":"vpn","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-nordvpn"},
|
||||
"install.service.once": {"icon":"","label":"ONCE","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-once"},
|
||||
|
||||
@@ -106,7 +106,6 @@ ruby
|
||||
rust
|
||||
satty
|
||||
sddm
|
||||
signal-desktop
|
||||
slurp
|
||||
socat
|
||||
starship
|
||||
|
||||
Reference in New Issue
Block a user