Waybar icon indicating copy to clipboard operation
Waybar copied to clipboard

Add "enable-bar-scroll" to "hypr/workspaces"

Open Hubro opened this issue 1 year ago • 6 comments

sway/workspaces has an option called enable-bar-scroll that lets you scroll through workspaces anywhere on the bar, not just while hovering over the workspaces.

I have a very wide monitor, so I was a heavy user of this.

Could we have this option on hypr/workspaces as well?

Alternatively, would it be possible to add a on-scroll-{up|down} on the bar itself, so we could bind anything to it?

Hubro avatar Sep 16 '23 06:09 Hubro

I've made a simple patch for this. Could you test if it works with named and persistent workspaces since I only used numbered ones. my fork

VAWVAW avatar Feb 13 '24 17:02 VAWVAW

for everyone finding this Issue and if the fork is not yet merged: Waybar has a note on this topic in their wiki https://wiki.hyprland.org/Useful-Utilities/Status-Bars/#scrolling-through-workspaces I hope, you find it useful.

Spiegie avatar Feb 20 '24 19:02 Spiegie

I've made a simple patch for this. Could you test if it works with named and persistent workspaces since I only used numbered ones. my fork

Sorry for the slow reply, just tested this now and it seems to work! :grin:

I just checked if you had opened a PR and I happened to find this one from 2019: https://github.com/Alexays/Waybar/pull/322

It makes it sound like scrolling on the entire bar surface should already be working, strange :thinking:

Hubro avatar Mar 01 '24 10:03 Hubro

@Hubro that PR only has the hook implemented for Sway.

puffnfresh avatar Mar 01 '24 10:03 puffnfresh

@VAWVAW I rebased your patch: https://github.com/Craeckie/Waybar It seems to work. Would you be willing to create a PR?

Craeckie avatar Mar 29 '24 00:03 Craeckie

I opened #3088.

VAWVAW avatar Mar 29 '24 00:03 VAWVAW