Introducing a new way to review your PRs.

Read the announcement

omacom / omarchy

Beautiful, Modern & Opinionated Linux

View on GitHub

29 documents · Updated Nov 23, 2026

docs / dictation-backends-and-lifecycle

Dictation backends and lifecycle

Dictation gives Omarchy one voice-input interface while allowing the user to choose between Superwhisper, Voxtype, and Hex. The selected backend receives start, stop, or toggle requests, while Omarchy owns the shared desktop keys, the saved choice, and the install and removal flow.

See also Dictation and voice input and Package management and curated installs.

Operating model

Dictation command path

The bin/omarchy-dictation command is the common entry point for voice input. It reads the saved backend name, checks that the matching adapter is available, and passes start, stop, or toggle to that adapter. The command does not choose a provider at record time.

The built-in adapters map the common actions to each provider's own recording controls. This keeps bindings and user scripts stable when the selected provider changes. The Hex adapter also returns its transcript to Omarchy so the common path can paste it into the focused input.

The request path is:

flowchart LR
    A[Desktop key or user command] --> B[omarchy dictation action]
    B --> C[Saved backend choice]
    C --> D[Backend adapter]
    D --> E[Superwhisper, Voxtype, or Hex]
    E --> F[Transcribed text in focused input]

References: bin/omarchy-dictation• L3-26 bin/omarchy-dictation-superwhisper• L3-17 bin/omarchy-dictation-voxtype• L3-16 bin/omarchy-dictation-hex• L3-50

Backend selection

The selected backend is stored as one backend name in ~/.config/omarchy/defaults/dictation, or in the equivalent XDG_CONFIG_HOME location. A fresh setup starts with Superwhisper. If no choice exists, Omarchy refuses to record and leaves the dictation keys unused.

omarchy default dictation reports the saved choice. Supplying a backend name starts that backend's setup flow; setup saves the choice only after it succeeds. Switching from one backend to another first stops the old backend. A failed stop keeps the old choice so that a working backend is not silently replaced.

References: config/…/dictation• L1 bin/omarchy-default-dictation• L3-37 bin/omarchy-dictation-use• L3-33

Backend lifecycle

Superwhisper installation

Superwhisper is the default provider for new users and can use cloud or local processing through its own settings. Its setup installs the provider, prepares its user profile, and aligns its native shortcuts with Omarchy's shared keys. Omarchy keeps a separate native toggle for Superwhisper so the provider still has a recording shortcut without taking over the push-to-talk keys.

After setup, the installer saves Superwhisper as the default and reloads the desktop bindings. A normal setup shows a ready notice and opens the provider settings. Background setup skips those user-facing actions. A setup or shortcut failure leaves the previous backend selected.

References: bin/omarchy-install-dictation-superwhisper• L3-40 test/…/dictation-test.sh• L139-153

Hex installation

Hex provides a provider service and a speech model for dictation. Its setup installs the package, downloads the model, enables the user service, and starts Hex before saving Hex as the selected backend.

The Hex adapter starts Hex when a recording request finds no running session. When recording stops, it asks Hex for the transcript and sends that text through Omarchy's paste path. This supports focused inputs that do not accept Hex's bare paste action directly.

References: bin/omarchy-install-dictation-hex• L3-16 bin/omarchy-dictation-hex• L6-38

Voxtype installation

Voxtype provides local dictation through a user service and a speech model. Its setup asks for consent before installing the provider and its base model, creates a user configuration when none exists, enables the service, and then saves Voxtype as the default.

The setup can be run again to finish an incomplete model or service setup. Existing Voxtype configuration remains in place, so a retry does not replace the user's model choices.

References: bin/omarchy-install-dictation-voxtype• L3-36 bin/omarchy-voxtype-model• L1-8 bin/omarchy-voxtype-config• L1-8 test/…/dictation-test.sh• L155-175

Backend removal

Removal stops the provider service, removes the provider package, and reloads the desktop state. It also clears the saved choice only when the removed provider is the selected backend. Omarchy does not select a replacement automatically, so the user must install or select another backend before dictation works again.

Superwhisper removal also removes package-owned desktop links while preserving user data and independently managed links. Voxtype removal removes its provider configuration and data as part of uninstalling it. Hex removal leaves its settings, history, and downloaded models in place while removing the package and service.

References: bin/omarchy-remove-dictation-superwhisper• L3-40 bin/omarchy-remove-dictation-voxtype• L3-28 bin/omarchy-remove-dictation-hex• L3-18 test/…/dictation-test.sh• L347-402

Desktop activation

Dictation bindings

The shared Hyprland bindings activate the selected backend through the common command. Super + Ctrl + X toggles recording. Holding F9 or Right Alt starts recording on press and stops it on release. The bindings load only when a valid backend is configured, which keeps those keys available when dictation is not ready.

Right Alt can act as AltGr on some keyboard layouts. The F9 binding remains available for those layouts, and Right Alt is also supported in modifier chords through its separate keysym handling.

References: default/…/dictation.lua• L1-7 manual/11-text-extraction-dictation.md• L15-21

Backend desktop integration

The selected provider may add optional desktop integration without changing the user's main Hyprland configuration. Omarchy reads the selected backend, checks that its adapter is installed, and loads that backend's shortcut bridge when one exists. A missing or broken optional bridge does not prevent the rest of the desktop configuration from loading.

References: default/…/dictation-backend.lua• L1-24 test/…/dictation-test.sh• L250-295

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep the backend name consistent across the saved default, adapter command, installer, removal command, and optional desktop integration path.
  • Preserve the rule that setup saves a backend only after package, model, service, and provider-specific shortcut work succeeds.
  • Keep backend switching safe: stop the old provider before replacing the saved choice, and keep the old choice when stopping fails.
  • Keep the generic desktop bindings independent from provider-specific native shortcuts, especially when a provider uses Right Alt.
  • If the default-file location or format changes, update command lookup, desktop integration lookup, removal cleanup, and upgrade migration together.

Important failure modes

TriggerConsequenceGuard
No backend is savedDictation commands fail and shared bindings are not added.Choose a backend through setup or omarchy default dictation <backend>.
The saved adapter is missingThe common command cannot start recording.Install the matching backend before selecting it.
The current backend cannot stop during a switchThe old backend remains selected.Fix the provider state, then retry the switch.
Provider setup or native shortcut setup failsThe previous backend remains selected.Retry setup after correcting the provider failure.
The selected backend is removedDictation has no automatic fallback.Install and select another backend.

Key files

FileWhy to read it
bin/omarchy-dictationShows the common command path and adapter contract.
bin/omarchy-default-dictationShows how the saved backend is read and how setup is launched.
bin/omarchy-dictation-useShows safe switching and atomic default updates.
bin/omarchy-install-dictation-superwhisperShows the Superwhisper setup, native shortcut alignment, and background mode.
bin/omarchy-install-dictation-hexShows Hex model and user-service setup.
bin/omarchy-install-dictation-voxtypeShows the Voxtype model and user-service setup.
bin/omarchy-remove-dictation-superwhisperShows Superwhisper cleanup and preservation of user-owned data.
bin/omarchy-remove-dictation-hexShows Hex service and package cleanup while retaining user data.
bin/omarchy-remove-dictation-voxtypeShows Voxtype service, package, and configuration removal.
default/hypr/bindings/dictation.luaDefines the shared keyboard controls.
default/hypr/dictation-backend.luaLoads optional integration for the selected backend.
config/omarchy/defaults/dictationDefines the fresh-install default.