Repository navigation
Conversation
A drawer opens either on hover or, with click-to-reveal, on click, never both. The new click-to-pin drawer option keeps hover and lets a left click keep the drawer open after the pointer leaves, until the next left click. The group box carries the pinned CSS class while pinned. Clicks that a grouped module handles itself do not pin the drawer. The option has no effect together with click-to-reveal. Document the option and the class in waybar(5), and cover hover, pin and unpin in the smoke interaction tier.
This was referenced Nov 25, 2026
brcha
added a commit
to brcha/nixos_configuration
that referenced
this pull request
Nov 25, 2026
…117) Name the upstream pull request for the local Waybar click-to-pin patch in home/apps/AGENTS.md, and say when the patch goes. Commits: * docs: note the upstream Waybar pull request for the drawer pin patch The click-to-pin patch is proposed upstream as Alexays/Waybar#5526 with the same option name and CSS class. Say in home/apps/AGENTS.md that the patch and its overrideAttrs go once a Waybar release containing it reaches nixpkgs-unstable. Closes #116 Closes #116
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.
What does this PR do?
A drawer opens either on hover or, with
click-to-reveal, on click; it cannot do both. This adds aclick-to-pindrawer option that keeps hover and adds a click on top:pinnedCSS class, so a pinned drawer can be styled apart from one that will close on leave.click-to-reveal, modules with their ownon-clickkeep it; only clicks they do not handle reach the group and pin it.click-to-revealset, the option has no effect. Groups that do not set it behave as before.This is useful for drawers that you want to keep open while the pointer is elsewhere, for example while a tray item's menu is open, or to keep values in view.
The man page documents the option next to
click-to-revealand the class next to.expanded. The smoke interaction tier gets a section that checks hover open/close, pin, and unpin through the virtual pointer; the config fuzzer picks the option up from the man page.This touches the same handlers as #5482 (touch) and the GTK4 port in #5454; I am happy to rebase onto whichever lands first.
Related issues
Related to #3256, which asked for a toggleable drawer and was closed by
click-to-reveal(which drops hover). #4043 adds a signal to toggle a group, which is complementary.Checklist
clang-formatninja -C build)man/)