PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Scroll windows with mouse wheel

Open gavr123456789 opened this issue 5 years ago • 10 comments

How about a new feature of scrolling Windows(the same which I assume is now happening when scrolling with three fingers on the touchpad on Wayland) but when scrolling with the mouse wheel in the top bar?
I think it will greatly improve the usability of PaperWM when using only mouse.

gavr123456789 avatar Nov 29 '19 00:11 gavr123456789

Yeah, it could be nice. @olejorgenb made a prototype here https://github.com/paperwm/PaperWM/issues/113

The main issue is how it interacts with other elements that reacts to scroll in the topbar, eg. the workspace/activities button and the volume icon.

I've also been playing with showing all windows to the left/right, when interacting with the monitor edges.

hedning avatar Nov 29 '19 08:11 hedning

Was about to make a new issue for something similar.

My personal preference (which might suit someone) is:

  1. Using topbar to scroll workspace only (with this extension)
  2. And hold meta down to scroll windows left/right with mouse scroll wheel.

It would be great to have point 1 integrated. And point 2 might be a good compromise?

Another idea perhaps could be using "pressure" edge activation; the user mouses over to an edge and after using pressure movement (as in how the standard overview hotcorner works) triggers scrolling in that direction proportional to mouse movement. And it deactivates when they mouse away from it.

The pressure thing would be a requirement due to window scrollbars.

flukejones avatar Jan 16 '20 21:01 flukejones

Using topbar to scroll workspace only

We support scrolling on the workspace name to change workspace.

And hold meta down to scroll windows left/right with mouse scroll wheel.

Yeah, we'd like to do this, but it's unfortunately not supported by gnome-shell/mutter: https://gitlab.gnome.org/GNOME/mutter/issues/207

hedning avatar Jan 16 '20 22:01 hedning

Some sort of pressure thing could work (the reactive edge could for instance react to scroll-events).

hedning avatar Jan 16 '20 22:01 hedning

Using topbar to scroll workspace only

We support scrolling on the workspace name to change workspace.

Yeah I see that. Unfortunately it requires mousing alllll the way over there, and on an ultrawide (where this extension really shines) that can be tiring.

And hold meta down to scroll windows left/right with mouse scroll wheel.

Yeah, we'd like to do this, but it's unfortunately not supported by gnome-shell/mutter: https://gitlab.gnome.org/GNOME/mutter/issues/207

Bugger, that's unfortunate

flukejones avatar Jan 16 '20 22:01 flukejones

Yeah I see that. Unfortunately it requires mousing alllll the way over there, and on an ultrawide (where this extension really shines) that can be tiring.

Right, I can see that's a use-case. Will keep it in mind :)

hedning avatar Jan 16 '20 22:01 hedning

Man, the mouse would be awesome. Shame about that binding modifier issue! This extension is incredible btw, replaced my using i3. Very well done.

YoungElPaso avatar Feb 18 '20 19:02 YoungElPaso

Any news?

gavr123456789 avatar Jul 29 '20 19:07 gavr123456789

I found a way to enable scrolling through windows with super + scroll wheel with my user.js: https://github.com/christopher-l/dotfiles/blob/329fa77a1f37069696951c122e9eb3722a39de48/config/paperwm/user.js#L37-L91

christopher-l avatar Aug 08 '23 20:08 christopher-l

I found a way to enable scrolling through windows with super + scroll wheel with my user.js: https://github.com/christopher-l/dotfiles/blob/329fa77a1f37069696951c122e9eb3722a39de48/config/paperwm/user.js#L37-L91

Very cool! I've recently added workspace swapping on monitors (#588). I like the keybinds for just moving a workspace (and having the previously selected workspace on that monitor.

I might add official support for "moving" workspaces.

I'd also accept a PR for adding scrolling windows with mouse wheel (maybe as a toggleable option).

Nice work!

jtaala avatar Aug 30 '23 11:08 jtaala