macOS Cmd+Tab for Hyprland, in the Omarchy shell.
Most-recently-used order · One tap goes back · Vim and arrow navigation · Every workspace at once
An Omarchy shell overlay that lists every open window in the order you last used them, the way Cmd+Tab does on macOS. Hold SUPER and tap TAB to select the window you just came from, keep tapping TAB to go further back, then release SUPER to bring the selection to the front. Use h and l or the arrow keys to move through the icons, hover over an icon to select it, press Enter or click an icon to switch right away. Press 1 to show only the windows of the current workspace, and 1 again to show every window.
omarchy plugin add https://github.com/illegalstudio/omarchy-cmdtab.git --enableLoad the bundled Hyprland bindings from ~/.config/hypr/bindings.lua:
dofile((os.getenv("XDG_CONFIG_HOME") or os.getenv("HOME") .. "/.config")
.. "/omarchy/plugins/illegalstudio.omarchy-cmdtab/hyprland.lua")("SUPER")This replaces the default SUPER+TAB and SUPER+SHIFT+TAB workspace bindings. The bundled configuration creates a dedicated omarchy-cmdtab submap and enters it before launching the overlay. While switching, h, l, the left and right arrows, 1, Enter, Escape, Tab and modifier release belong to Cmdtab; unused keys are consumed. Normal Omarchy shortcuts resume when the switcher closes.
Remove the old Cmdtab binding block if upgrading, including the former global cancelOrMenu, vimNavigate, and modifier-release bindings. Keep your usual SUPER+H/L, SUPER+arrow, SUPER+RETURN and SUPER+ESCAPE bindings: they no longer need to call the plugin and are isolated while Cmdtab is open.
For ALT+TAB, pass "ALT" instead of "SUPER" to the same function. Modifier-release handling is configured automatically.
omarchy plugin disable illegalstudio.omarchy-cmdtab
omarchy plugin remove illegalstudio.omarchy-cmdtabThen remove the dofile call from ~/.config/hypr/bindings.lua and reload Hyprland to restore its default shortcuts.
Windows appear in a compact horizontal strip with large application icons, a rounded translucent background, and a highlight around the selection. Only the selected icon shows its application name beneath it. The strip scrolls when there are more windows than fit on screen.
Windows are ordered most recently used first across every workspace. The first icon is the current window, the second is the one before it. Hold SUPER, tap TAB, then release SUPER to switch back. Keep holding SUPER and tap TAB again to continue through the list. SHIFT+TAB moves backwards; h and l, or the left and right arrows, move left and right. Moving the mouse over an icon selects it the same way; a pointer that stays still never changes the selection. Enter or a click on an icon switches to that window immediately.
Icons and application names come from desktop entries, including Omarchy webapps launched through Brave, Chrome, Chromium, and Edge. An app installed while the shell is running gets its icon the next time the switcher opens, without restarting the shell: names the Qt icon theme does not resolve are looked up directly in the hicolor and pixmaps directories. The selected window receives focus and is explicitly raised above other windows, including in floating workspaces.
Press 1 while the switcher is open to keep only the windows of the active workspace, in the same most-recently-used order; press 1 again to show every window. A badge at the left end of the strip shows the scope, All windows or the workspace name, with a "Press 1 to toggle" hint. The highlighted window stays selected when it is in both lists; otherwise the highlight moves one step past the focused window, as a fresh SUPER+TAB would. The scope you leave the switcher in is kept for the next opening, so a quick SUPER+TAB stays on the current workspace until you press 1 again; restarting the shell resets it to all windows. With several monitors the active workspace is the one on the focused monitor.
The switcher has no text search. Unused keys are swallowed while the overlay is open.
| Key | Action |
|---|---|
Release SUPER |
Focus and raise the selected window. |
l, Right, Tab |
Next window, further back in time. |
h, Left, Shift+Tab |
Previous window. |
1 |
Show only the current workspace, or every window again. |
Enter |
Focus and raise the selected window. |
| Hover an icon | Select it, like the arrow keys. |
| Click an icon | Focus and raise that window. |
Esc (also with SUPER held) |
Cancel and close the switcher. |
Hyprland already ranks every client by how recently it held focus and reports it as focusHistoryID in hyprctl -j clients, where 0 is the focused window. The overlay sorts on that field, so the order always matches what the compositor itself believes, with no history of its own to drift or to lose across a shell restart.
The highlight starts one step past the focused window. When no window is focused at all, on an empty workspace for instance, row 0 is already the window you last used, so the highlight starts there instead of skipping it.
Hyprland builds that predate focusHistoryID still work: the list falls back to grouping by workspace and then by application name.
- Omarchy 4 or newer with the current shell plugin system.
- Hyprland Lua configuration with
hl.define_submapsupport. - A Hyprland that reports
focusHistoryIDinhyprctl -j clients; check withhyprctl -j clients | grep -m1 focusHistoryID. Developed against 0.56. Builds without it still list every window, just not in recency order.
The overlay uses the active Omarchy theme for its background, with a rounded macOS-style horizontal layout showing icons and the selected application's name. No configuration is required beyond the keybindings.
omarchy-shell shell call illegalstudio.omarchy-cmdtab cycle 1
omarchy-shell shell call illegalstudio.omarchy-cmdtab cycle -1
omarchy-shell shell call illegalstudio.omarchy-cmdtab release super
omarchy-shell shell call illegalstudio.omarchy-cmdtab confirm ""
omarchy-shell shell call illegalstudio.omarchy-cmdtab dismiss ""
omarchy-shell shell call illegalstudio.omarchy-cmdtab vimNavigate h
omarchy-shell shell call illegalstudio.omarchy-cmdtab vimNavigate lcycle opens the switcher or moves the highlight by the given step. An optional alt argument, for example cycle "1 alt", selects ALT release instead of SUPER release. release confirms only when its modifier matches. confirm activates the current selection and answers closed when the overlay is not up. A release received during the initial client query waits for the results before activating, so quick taps work too.
The bundled bindings append a gesture id to every call, for example cycle "1 super 1730000000-4" and release "super 1730000000-4". Hyprland runs each call as its own process, so a quick tap can deliver the release before the cycle that opens the switcher. The overlay keeps a release, confirm or dismiss that arrives first and applies it as soon as that gesture opens, and ignores late calls of a gesture that already closed. Calls without an id behave as described above.
The modifier release binding is universal, transparent and non-consuming: SUPER is pressed before the submap is entered, and Hyprland only runs release binds of the submap active at press time and shadows binds of keys still held. It does nothing outside a switcher gesture, and applications still receive the modifier.
vimNavigate accepts h or l (the arrow bindings send the same values) and only moves the selection while the overlay is open. Closing the overlay restores the default Hyprland submap; Escape, Enter and modifier release also reset it directly in the compositor so they still work if shell IPC fails.
From a local checkout, expose the repository through the user plugin directory. Do not modify the packaged Omarchy files under /usr/share/omarchy.
ln -s "$PWD" "$HOME/.config/omarchy/plugins/illegalstudio.omarchy-cmdtab"
omarchy plugin enable illegalstudio.omarchy-cmdtabValidate the manifest and run the test suite with:
make checkThe tests extract the overlay's pure functions from Cmdtab.qml and run them under Node against a recorded hyprctl clients payload. Lua tests load the actual hyprland.lua and verify scoped bindings, key consumption, and entry/exit ordering. Development checks require Node, Lua, Python, and Omarchy.
keepLoaded plugins are instantiated once and kept, so editing the QML is not picked up by the shell's hot reload. Apply changes with omarchy restart shell.
From a clean checkout synchronized with its tracked branch on origin, run:
make releaseThe script reads local and remote semantic version tags, proposes the next patch version, and lets you choose another MAJOR.MINOR.PATCH version. For the first release, it proposes the version already in manifest.json.
Before changing anything, it shows the manifest update, tag, branch, checks, commit, and publication plan and asks for confirmation. Cancelling leaves the checkout and remote unchanged.
After confirmation it updates the manifest if needed, runs make check, creates the release commit and an annotated tag, and pushes the tracked branch and tag atomically. GitHub Actions validates the tag and manifest, runs the tests, and creates the GitHub Release with generated notes. If the push fails, the local commit and tag are preserved for recovery.
The overlay runs hyprctl: -j activeworkspace, -j activewindow and -j clients to read, and eval to manage the keyboard submap and focus the window you picked. The QML overlay passes fixed argument arrays. The bundled Lua bindings call shell IPC with fixed method names and quoted arguments. Window addresses are validated as hexadecimal before interpolation into Lua. Application metadata and icons are read through Quickshell's desktop-entry index and icon lookup; for icon names that lookup misses, it runs a fixed sh script that only tests for files under the XDG data directories, with the names passed as arguments. The plugin writes no files.