Skip to content

Add optional Hermes desktop integration - #6644

Closed
okurmustafa wants to merge 5 commits into
omacom:quattrofrom
okurmustafa:agent/add-hermes-desktop
Closed

okurmustafa wants to merge 5 commits into
omacom:quattrofrom
okurmustafa:agent/add-hermes-desktop

Conversation

@okurmustafa

@okurmustafa okurmustafa commented Aug 8, 2026 •

Copy link
Copy Markdown

Summary

  • add Hermes to Install > AI as an opt-in application, using the same AI icon as Ollama and LM Studio
  • reserve Super + Shift + H for an install-or-launch flow matching Omarchy's Signal behavior
  • install the official Hermes backend and native desktop app, then register a terminal-free desktop entry
  • request sudo approval before the long-running install and keep it alive for Electron sandbox configuration
  • set a 10–15 minute first-install expectation and distinguish Python/voice dependency setup from the desktop build
  • install all 22 bundled Quattro palettes as Hermes Desktop themes and CLI/TUI skins
  • add an Omarchy System theme that hot-reloads whenever the Omarchy theme changes, including when Desktop uses a remote Hermes backend
  • keep the stable theme bundle separate from the live system palette so ordinary theme switches only rewrite one small plugin

Why

Hermes supports Linux, but its official desktop installer currently builds the Electron application and provisions the Python backend locally. Launching it manually leaves users managing a terminal command, while the late Electron sandbox approval can make the installer appear stalled.

Hermes Desktop also owns its application palette rather than inheriting GTK colors automatically. This integration generates Hermes themes directly from Omarchy's shipped colors.toml palettes, avoiding a network dependency or a separately maintained list of third-party theme packages. The Desktop theme bundle is installed as a client-local runtime plugin, so it remains available when Hermes connects to a remote backend.

Generating all 22 named themes on every Omarchy theme change added unnecessary latency. Installation now creates the stable bundle once, while subsequent switches update only the 2.4 KB Omarchy System plugin. Existing installations using the earlier combined plugin format migrate automatically on their next theme sync.

This keeps Hermes optional while making installation, launching, and appearance behave like other Omarchy applications.

User impact

Hermes is not preinstalled. Users can install it from Install > AI > Hermes or press Super + Shift + H. Once installed, the shortcut and app launcher focus or launch Hermes Desktop without opening a foreground terminal.

Hermes receives every official Quattro palette plus Omarchy System. The latter follows subsequent Omarchy theme changes in the running Desktop app, while matching generated skins are available to Hermes CLI/TUI users. On the test system, ordinary Hermes palette generation dropped from 1.92 seconds to 0.095 seconds.

Validation

  • bash test/shell.d/hermes-test.sh
  • bash test/shell.d/hyprland-default-config-test.sh
  • ./test/cli
  • bash -n on the changed shell scripts and tests
  • git diff --check
  • automated coverage verifies all themes are contributed, the combined-plugin format migrates, and ordinary sync leaves the named bundle untouched
  • manual clean-install check: after removing Hermes and restarting, Super + Shift + H opened the installer and the completed install launched Hermes Desktop
  • manual Desktop theme check: selected Omarchy System, switched Omarchy from Tokyo Night to White and back, and verified Hermes repainted live with readable contrast both ways
  • manual performance check: Hermes sync completed in 0.095 seconds; complete White and Tokyo Night switches completed in 0.734 and 0.751 seconds
  • ./test/all: the CLI suite and Hermes coverage pass; the aggregate shell suite retains environment-only failures because Quickshell cannot access Wayland/runtime directories in the test sandbox and the optional omarchy-pkgs checkout is absent

@okurmustafa
okurmustafa marked this pull request as ready for review August 8, 2026 18:42
Copilot AI balanced review requested due to automatic review settings August 8, 2026 18:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds optional Hermes desktop installation, launch/focus integration, and desktop registration.

Changes:

  • Adds Hermes installer, launcher, desktop entry, and AI menu option.
  • Reserves Super + Shift + H for Hermes.
  • Adds integration and binding tests.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 6 out of 8 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
bin/omarchy-install-ai-hermes Installs and registers Hermes Desktop.
bin/omarchy-launch-hermes Focuses, launches, or installs Hermes.
default/applications/hermes.desktop Defines the desktop launcher.
default/hypr/bindings/applications.lua Adds the Hermes shortcut.
default/omarchy/omarchy-menu.jsonc Adds Hermes under Install › AI.
docs/file-layout.md Documents installer-only desktop templates.
test/shell.d/hermes-test.sh Tests installation and launch flows.
test/shell.d/hyprland-default-config-test.sh Tests shortcut availability.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread default/omarchy/omarchy-menu.jsonc Outdated
"install.terminal.ghostty": {"icon":"","label":"Ghostty","when":"! omarchy-pkg-present ghostty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal ghostty'"},
"install.terminal.kitty": {"icon":"","label":"Kitty","when":"! omarchy-pkg-present kitty","action":"omarchy-launch-floating-terminal-with-presentation 'omarchy-install-terminal kitty'"},
"install.ai.dictation": {"icon":"","label":"Dictation","when":"! omarchy-pkg-present voxtype-bin","action":"omarchy-launch-floating-terminal-with-presentation omarchy-voxtype-install"},
"install.ai.hermes": {"icon":"󱚤","label":"Hermes","when":"[[ ! -x \"$HOME/.hermes/hermes-agent/apps/desktop/release/linux-unpacked/Hermes\" ]]","action":"omarchy-launch-floating-terminal-with-presentation omarchy-install-ai-hermes"},
Copilot AI review requested due to automatic review settings August 8, 2026 18:54

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 8 changed files in this pull request and generated no new comments.

Suppressed comments (1)

test/shell.d/hermes-test.sh:103

  • This assertion races the detached launch started by the installer. The installer returns immediately after setsid ... &, so the mock may not have appended to the log when this grep runs, causing intermittent failures. Poll briefly as the existing detached-launch tests do before failing.
grep -Fxq 'launch:uwsm-app -- gtk-launch hermes' "$HERMES_TEST_LOG" ||
  fail "Hermes installer opens the desktop app after installation"

Copilot AI review requested due to automatic review settings August 8, 2026 21:05

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 8, 2026 21:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated no new comments.

Resolve test/cli conflict: keep the make_tmpdir refactor from quattro and
the new Hermes theme-sync tests from this branch.
Copilot AI review requested due to automatic review settings August 11, 2026 21:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 11 changed files in this pull request and generated no new comments.

@omarchybot

Copy link
Copy Markdown
Collaborator

Closing in favour of #7469, which covers the install, removal and menu entries for Hermes Desktop.

On the theming half specifically: @teknium1 is adding a system-matching theme option to Hermes, the way Claude Code and Codex already have one. That is the right place for it — Omarchy carrying a 355-line omarchy-theme-set-hermes that writes skins and a desktop plugin would be duplicating something the app is about to do for itself, and would then have to track its plugin format.

One piece here isn't in #7469 and isn't replaced by that: the SUPER + SHIFT + H binding. If you still want it, it's a small standalone PR against quattro and worth having on its own.

Thanks for this — the desktop integration landed on much the same shape you had.

@omarchybot omarchybot closed this Aug 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants