Skip to content

Add global shortcuts and IPC to open the launcher on a root filter - #107

Open
warfl0p wants to merge 1 commit into
typecraft-dev:mainfrom
warfl0p:feat/open-with-filter
Open

warfl0p wants to merge 1 commit into
typecraft-dev:mainfrom
warfl0p:feat/open-with-filter

Conversation

@warfl0p

@warfl0p warfl0p commented Nov 17, 2026

Copy link
Copy Markdown

Adds a way to open the launcher on a specific root filter, so omacast can cover both of Omarchy's launcher keys: Super+Space for everything and Super+Alt+Space for apps. Closes #104.

  • Global shortcuts: omacast:toggle-all, omacast:toggle-applications and omacast:toggle-commands.
    • Pressed while omacast is closed, they open it on that filter.
    • Pressed while another filter or view is showing, they switch to it.
    • Pressed again while that filter is showing, they close it.
  • omacast:toggle is unchanged. It still reopens on the filter you left.
  • IPC: toggleFilter(filter) and showFilter(filter). An unknown filter name returns unknown-filter.
  • CLI: omacast toggle [filter] and omacast show [filter].

The filter travels in the payload summon() already passes to LauncherWindow.prepare(), and popToRoot() accepts it too. RootSearch.isFilter() validates the name. The README documents the shortcuts with a binding example.

o.bind("ALT + SPACE", "omacast", hl.dsp.global("omacast:toggle-all"), { submap_universal = true })
o.bind("SUPER + ALT + SPACE", "omacast apps", hl.dsp.global("omacast:toggle-applications"), { submap_universal = true })

Testing

  • node --test tests/*.test.js passes, with one new test for isFilter().
  • omarchy plugin validate . passes.
  • Live in omarchy-shell, as a development checkout:
    • All 7 omacast:* global shortcuts register in Hyprland.
    • Each toggle-<filter> shortcut opens the launcher on its filter (checked by screenshot), switches to it from another filter, and closes the launcher when pressed again.
    • Plain toggle reopens on the last filter.
    • toggleFilter bogus returns unknown-filter.
    • The shell log shows no QML errors from omacast.

I didn't update site/public/launcher.js, because the website demo has no global hotkeys.

🤖 Generated with Claude Code

omacast:toggle-all, omacast:toggle-applications and omacast:toggle-commands
open the launcher on that root filter, so omacast can cover both of
Omarchy's keys (Super+Space for everything, Super+Alt+Space for apps).
Pressed while another filter or view is showing, they switch to it;
pressed again, they close it. The same is available over IPC
(toggleFilter / showFilter) and the CLI (omacast toggle <filter>).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018pJceMMwc1Cgj279fSphjU
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.

Allow opening the launcher on a specific root filter (All / Applications / Commands) via IPC and global shortcuts

1 participant