Repository navigation
Open launchers typed on the MacBook keyboard on the MacBook screen - #593
Merged
Merged
Conversation
Hyprland 0.56 binds can be scoped to named keyboards and every bind matching a press runs in the order it was added. On Apple Silicon each launcher bind gets a bind ahead of it, scoped to the built-in keyboard, that focuses the enabled built-in panel. External keyboards and clamshell keep opening on the focused screen.
This was referenced Sep 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ticket 91. With an external monitor attached, Super+Space and other launchers pressed on the MacBook's own keyboard now open on the MacBook screen; an external keyboard keeps opening them on the focused screen.
How: Hyprland 0.56 binds accept
device = { list = ... }, and every bind matching a press runs in the order it was added. On Apple Silicon,o.bindputs a bind scoped to the built-in keyboard (apple-spi-keyboardon M1,apple-mtp-keyboardon M2+) ahead of each launcher (menus, shell panels,{ omarchy/launch/webapp/tui }apps, calculator, agent picker). It focuses the enabledeDP-*monitor if it isn't focused already, which also moves the pointer there. No input is read outside Hyprland's own bind matching. Clamshell/mirror: disabled or mirrored panels aren't inhl.get_monitors(), so nothing changes. Toggles, captures, tiling and locked binds are untouched; the extra binds have no description, so the keybindings menu hides them. Manual note in 33-monitors.Tests: new
hyprland-builtin-keyboard-screen-test.sh(bind order and scope, non-launchers, off-Apple, focus in external/built-in-only/clamshell layouts); binding-conflicts test now treats keyboard-scoped binds like release halves and checks the Apple set. Allhyprland-*and keybinding tests pass on the M1 Pro; the config loads withHyprland --verify-config(0.56.2). Full shell suite on the M1 Pro: only env failures (no node, no omarchy-pkgs checkout) plussnapshot-restore-mac-testhanging there, unrelated.Second review: found missed bar-panel/agent launchers (fixed) and the pointer warp (documented); the rest checked out against Hyprland source.
Needs an owner check on the M2 with an external monitor (steps in the ticket report).