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
+1
View File
@@ -45,6 +45,7 @@
"learn.bash": {"icon":"󱆃","label":"Bash","action":"omarchy-launch-webapp 'https://devhints.io/bash'"},
"learn.tmux-keybindings": {"icon":"","label":"Tmux","action":"omarchy-menu-tmux-keybindings"},
"learn.herdr-keybindings": {"icon":"","label":"Herdr","action":"omarchy-menu-herdr-keybindings"},
"learn.community": {"icon":"󰙯","label":"Community","action":"omarchy-launch-discord-community"},
// Trigger
"trigger.emoji": {"icon":"","label":"Emoji","aliases":["emoji","emojis"],"action":"omarchy-menu-emoji"},