Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
6.67k stars 708 forks source link

Module group with click toggle option #2649

Open AdsonCicilioti opened 1 year ago

AdsonCicilioti commented 1 year ago

For group module woulf be better if had an option to trigger revealer by click instead hover. So we can set a simple custom module containing a icon or text that will be a click toggler.

Syndelis commented 12 months ago

That would be tricky, because most modules handle on-click by themselves. Given that, what should you expect when the group leader is clicked:

  1. The group is revealed/hidden away and the leader's on-click gets called;
  2. The group is revealed/hidden away and the leader's on-click gets ignored.

Since both actions would have users confused, I could see another request to make it configurable as well. And then another request to make it configurable whether it's the right, left or middle mouse button that triggers the group revealing.

I'm definitely not against this, though, I just raised these concerns because it would be best to define the expected behavior beforehand.

alonso-herreros commented 4 months ago

I would love to have this, using a dedicated module whose only function on left click is to hide/reveal the rest of the group, or maybe have it configurable with something like a toggle-button configuration (left/right/middle/any)