Repository navigation
Mac-style window switcher: hold Super, tap Tab #20888
kr3t3n
started this conversation in
Suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Alt + Tab cycles focus without showing where you're going, and there's no way to see all open windows across workspaces. I built a small overlay plugin that works like Cmd + Tab on macOS and wanted to suggest something like it for Omarchy.
What it does
How it works
overlayplugin (OverlayWindow, styled with themenucolor tokens) readshyprctl clients -jonce per open and snapshots the list sorted byfocusHistoryID.SUPER + TAB/SUPER + SHIFT + TABsummon it with{"dir": 1|-1}on every press; a release bind onSuper_L/Super_R(transparent, non-consuming, ignore_mods, gated by a Lua flag likeo.bind_hold) callscommit.hl.dsp.focus({window = hl.get_window("address:…")})followed byhl.dsp.window.bring_to_top()so floating windows come forward.WlrKeyboardFocus.Noneand leaves all keys to Hyprland binds.In my setup it replaces Super + Tab's "next workspace" (I moved that to Ctrl + Tab), so the default binding would need some thought. Happy to open a PR if there's interest.
Tested on Omarchy 4.5.0-3 (Asahi, MacBook Pro M3 Pro).
All reactions