omarchy icon indicating copy to clipboard operation
omarchy copied to clipboard

4.5.0-rc1: new SUPER+M / SUPER+I defaults stack on existing user binds with no warning

Open Heineck66 opened this issue 1 month ago • 2 comments

Update: both binds do run. On a floating workspace SUPER+M mutes and minimizes in one press; see the follow-up comment. The "only mutes" observation below couldn't be reproduced.

System details

Omarchy 4.5.0rc1-1 (upgraded from 4.0.6-1), Hyprland 0.56.2-4

What's wrong?

4.5.0-rc1 adds two new default binds:

  • default/hypr/bindings/tiling.lua:33: o.bind("SUPER + M", "Minimize window to the dock", "omarchy-hyprland-window-minimize")
  • default/hypr/bindings/input-method.lua:19: o.bind("SUPER + I", "Switch input language", "omarchy-input-method cycle")

Neither chord is bound by default in 4.0.6. My ~/.config/hypr/bindings.lua was written before the RC and already used both chords, with no hl.unbind because at the time there was no default to remove:

o.bind("SUPER + M", "Mute microphone", "omarchy-audio-input-mute", { locked = true })
o.bind_toggle("SUPER + I", "Toggle touchpad", "touchpad")

After upgrading, each chord has two binds registered, and nothing during the update says so.

Steps to reproduce

  1. On 4.0.6, add personal binds on SUPER + M and SUPER + I to ~/.config/hypr/bindings.lua without hl.unbind (anything works, e.g. the two lines above).
  2. Upgrade to 4.5.0-rc1 and log in again.
  3. Run hyprctl binds -j and open the Super+K menu (or omarchy menu keybindings --print).

Expected: Either the upgrade warns that a new default collides with a user bind on the same chord, or the user bind replaces the default. Either way, the Super+K list should show which action(s) the chord actually runs.

Actual:

hyprctl binds -j, filtered to modmask 64 (SUPER), keys M and I:

I  "Switch input language"        dispatcher __lua  locked=false
M  "Minimize window to the dock"  dispatcher __lua  locked=false
M  "Mute microphone"              dispatcher __lua  locked=true
I  "Toggle touchpad"              dispatcher __lua  locked=false

omarchy menu keybindings --print shows both rows for each chord, the default first:

SUPER + I    → Switch input language
SUPER + I    → Toggle touchpad
SUPER + M    → Minimize window to the dock
SUPER + M    → Mute microphone

Nothing in the list indicates that both actions are active on the same chord, so it reads as if SUPER+I switches the input language. When I press it, what I see is the touchpad toggling (see below: it's unclear whether the default also runs).

What I observed when pressing the keys (a window focused, one keyboard layout configured):

  • SUPER+M on a tiled dwindle workspace mutes the microphone. The window is not minimized.
  • SUPER+M on a workspace switched to floating with SUPER+L also only mutes the microphone. The window is not minimized and nothing goes to the dock.
  • SUPER+I toggles the touchpad. Nothing visible happens to the input method.

The tiled result alone doesn't show that only one of the two binds runs. The Hyprland binds docs say that for multiple binds on one key, "The keybinds will be executed top to bottom, in the order they were written." On a tiled workspace, both defaults are also expected to do nothing in my setup: omarchy-hyprland-window-minimize exits early unless the workspace layout is floating ("Only floating workspaces have the dock to bring a window back from"), and, as far as I can tell, cycling the input method with only one layout has nothing to switch to. That explains the tiled case. On the floating workspace, though, minimize should have worked, and it didn't. So either only one of the two binds actually runs here, despite the docs, or minimize fails on its own. I haven't yet run omarchy-hyprland-window-minimize directly on a floating workspace to tell those apart, or tested SUPER+I with two or more layouts. One difference does exist: my mute bind is locked = true and the default minimize is not, so on the lock screen only the mute would run.

Scope

  • This can affect anyone whose personal binds use a chord that a later release claims as a default, and who didn't already unbind or o.rebind it. The template comment in my bindings.lua (from before the RC) says to unbind defaults before replacing them, and the RC's packaged template now recommends o.rebind. Neither alerts an existing additive bind to a newly added default. Using o.rebind up front would have prevented this, but users can't be expected to guess which chords a future release will take.
  • I found no automatic user/default chord collision detection or warning in the installed migrations and commands (grep -RniE 'unbind|conflict|collid' over migrations/ and bin/ finds nothing about Hyprland user/default chord collisions; the matches are tmux key tables, the trackpad-driver reset, package conflicts, CLI route collisions, a specific Superwhisper Right Alt shortcut fix and similar). The one migration that touches hypr/bindings.lua only replaces known stock versions by hash. o.rebind() in default/hypr/helpers.lua (unbind, then bind) exists, but only helps if the user knew to use it.
  • On the menu side, omarchy-menu-keybindings dedupes only identical records (awk '!seen[$0]++'), and nothing groups records that share a chord, so two binds on one chord with different descriptions show up as two unrelated rows. Related: #12404 (descriptions are load-bearing, give binds a stable id) and #13790 (user binds missing from the menu's Lua scan; closed as a duplicate of the still-open PR #13276). User binds do appear in the menu on rc1, so that isn't the problem in this report.

Possible directions (any one would help, maintainers know better)

  • On upgrade (migration) or in omarchy-menu-keybindings, detect chords where a user bind shares the chord with a default, and warn once with a pointer to hl.unbind / o.rebind.
  • In the Super+K list, group binds that share a chord and mark which is the user's and which is the default, so the list makes the collision visible.
  • For new defaults specifically, have the release migration add hl.unbind("<chord>") above a colliding user bind, or skip registering a new default when the user's file already binds that chord.

Workaround: add hl.unbind("SUPER + M") and hl.unbind("SUPER + I") above the personal binds, or switch them to o.rebind (keep { locked = true } on the mute bind so it still works on the lock screen; for the touchpad bind, pass "omarchy-toggle-touchpad", since the bare "touchpad" name is only expanded by o.bind_toggle).

Happy to send a PR for the Super+K grouping (the second direction above) if that direction works for you.

Heineck66 avatar Oct 22 '26 01:10 Heineck66

Follow-up on the open question above: both binds run. Three more tests in the same login session, with no config changes other than the one in step 2:

  1. On a workspace switched to floating with two windows open, I ran sleep 3 && omarchy-hyprland-window-minimize from a terminal, then focused the other window before it fired. The focused window went to the dock and focus moved back to the terminal, so the script works.
  2. I commented out only my SUPER + M mute line, ran hyprctl reload (hyprctl binds -j then listed only the default "Minimize window to the dock" on SUPER+M), and pressed SUPER+M on the floating workspace. The focused window minimized to the dock.
  3. I restored my mute line and ran hyprctl reload again (both binds registered, same order as in the report). Pressing SUPER+M once on a floating workspace now both toggles the mic and minimizes the focused window to the dock. On a tiled workspace it only toggles the mic, as expected, since minimize exits early on non-floating layouts.

So SUPER+M runs both actions, as the Hyprland docs describe for multiple binds on one key. My earlier floating observation (mute only, nothing minimized) came from before these reloads, and I couldn't reproduce it, so please disregard that part of the report. SUPER+I wasn't re-tested this way.

That still leaves the problem from the report: after the upgrade, one keypress silently does two unrelated things on floating workspaces, and the Super+K list shows two separate rows for SUPER+M without saying both run.

Heineck66 avatar Oct 22 '26 01:10 Heineck66

Thanks for the follow-up test; it settles that both binds fire, as Hyprland documents for several binds on one key.

What was checked: the report and follow-up against quattro. default/hypr/bindings/tiling.lua:33 binds SUPER + M to minimize and default/hypr/bindings/input-method.lua:19 binds SUPER + I to cycle the input method, and nothing on upgrade looks for a user bind already on either chord. The packaged config/hypr/bindings.lua template recommends o.rebind, which is hl.unbind followed by o.bind in default/hypr/helpers.lua, but that only helps a bind written after the template changed. No other open or closed issue reports the same collision; the nearest are #13349 (SUPER + C on existing configs), #12404 and #7627.

The classification is unsettled, so this has no type label yet. Two models classified it separately: Claude Opus 5.5 read it as a bug, since an upgrade makes one existing keypress silently run two unrelated actions, and Codex at medium effort read it as an enhancement, since stacking is documented Hyprland behaviour and every direction proposed here (a warning, grouping in the Super+K list, a migration that unbinds) is new behaviour. Nothing was run on a worker, because which of those it is decides what a fix would even be.

Next: this waits on the maintainer to decide whether it is a defect in the upgrade or a feature request, and if a feature, which direction they want. The workaround in the report (o.rebind, keeping { locked = true } on the mute bind) is correct as written.

omarchybot avatar Oct 23 '26 13:10 omarchybot