Add the Discord community to the Learn menu

Every other pointer at the community lives in an error path or a doc, so
there was no way to reach it from the menu. Prefer the Discord app when
it is installed, and fall back to the invite in a browser when it is not.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
David Heinemeier Hansson
2026-08-11 22:26:52 +02:00
co-authored by Claude Opus 5
parent 64e20f8f38
commit 96a50cf65e
2 changed files with 12 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/bash
# omarchy:summary=Open the Omarchy Discord community in the Discord app or a browser.
invite="https://discord.gg/tXFUdasqhY"
if omarchy-cmd-present discord; then
exec setsid uwsm-app -- discord --url -- "discord://-/invite/${invite##*/}"
else
exec omarchy-launch-webapp "$invite"
fi