Skip to content

feat(quattro): user launch bindings override defaults instead of appending#6118

Open
felixzsh wants to merge 2 commits into
basecamp:quattrofrom
felixzsh:feat/o-bind-override-semantics
Open

feat(quattro): user launch bindings override defaults instead of appending#6118
felixzsh wants to merge 2 commits into
basecamp:quattrofrom
felixzsh:feat/o-bind-override-semantics

Conversation

@felixzsh

@felixzsh felixzsh commented Jun 21, 2026

Copy link
Copy Markdown
Contributor

without this, the user could define the same default bindings and make duplicated actions on the same keybinding, this overrides default bindings in favor of user config bindings

update: with the last commit, now this only affects launch bindings, not multi event or tiling events when multi behavior is expected

without this, the user could define the same default bindings and make
duplicated actions on the same keybinding, this overrides default
bindings in favor of user config bindings
Copilot AI review requested due to automatic review settings June 21, 2026 15:59

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts Omarchy’s Hyprland Lua binding helper so user-defined keybindings replace (rather than accumulate alongside) default bindings, aiming to prevent duplicated actions when a user redefines a default key.

Changes:

  • Track previously bound key strings inside o.bind() and automatically hl.unbind() before rebinding.
  • Prefer the most recently declared binding for a given key, enabling user overrides to take effect without manual unbind steps.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread default/hypr/helpers.lua Outdated
@felixzsh felixzsh marked this pull request as draft June 21, 2026 16:07
@felixzsh felixzsh marked this pull request as ready for review June 21, 2026 16:31
Copilot AI review requested due to automatic review settings June 21, 2026 16:31
@felixzsh felixzsh changed the title feat(quattro): user bindings override instead of append feat(quattro): user launch bindings override instead of append Jun 21, 2026
@felixzsh felixzsh changed the title feat(quattro): user launch bindings override instead of append feat(quattro): user launch bindings override defaults instead of appending Jun 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated 2 comments.

Comment thread default/hypr/helpers.lua
Comment thread default/hypr/helpers.lua
@felixzsh felixzsh marked this pull request as draft June 21, 2026 17:02
Restrict override to launch-command bindings so tiling duplicates
(ALT+TAB → cycle_next + bring_to_top) and multi-event bindings
(press + release on same key) are preserved.
@felixzsh felixzsh force-pushed the feat/o-bind-override-semantics branch from 9c50889 to d1048f9 Compare June 21, 2026 17:15
@felixzsh felixzsh marked this pull request as ready for review June 21, 2026 17:16
Copilot AI review requested due to automatic review settings June 21, 2026 17:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

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.

2 participants