PaperWM icon indicating copy to clipboard operation
PaperWM copied to clipboard

Automatically scroll on hover

Open lime-desu opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. Not really, I don't have any problems using the Tiling WM

Describe the solution you'd like When hovering the mouse at the end side of the screen, instead of having a preview and clicking that to go through the next window display, It would be nice for the window manager have an option to automatically scrolls to that next window upon hovering.

Describe alternatives you've considered There's an existing gesture settings for touchpad users though. (swipe tiling windows options)

Additional context image

lime-desu avatar Feb 10 '24 06:02 lime-desu

Am open to this. Would you expect it to scroll after a brief delay once the previous shows?

jtaala avatar Feb 20 '24 10:02 jtaala

Hm, that resembles #765 but active all the time

Ideally we could also pick up cursor movement against the edge of the screen (i.e. cursor won't move further right but mouse/trackpad still is) and make it immediately perform a workspace scroll, and the hover approach would be limited to monitor boundaries, as I can imagine forgetting the cursor near screen edge could cause unwanted behavior.

Thesola10 avatar Mar 09 '24 22:03 Thesola10

Just as food for thought as I'm personally not interested in this feature:

In the past I saw some kind of "pressure" system implemented for stuff like this. I.e. you move you mouse to the edge, it shows the preview only, you move it further into the edge it starts to scroll.

But to be honest I'm not sure if that can be implemented in gnome, since you need to know that the mouse was moved further into the edge, without the actual cursor being moved (since it is bounded to the edge).

Lythenas avatar Mar 10 '24 08:03 Lythenas

Hey all, Gnome (actually Meta) has a pressure barrier element that is designed for just this.

@Lythenas is right - we did have this previously for this approach, but I removed it (as part of a simplification effort - but that was more the actual implementation at the time wasn't great - not that the concept/approach wasn't good).

I'm happy to look at this as I've been tripped the previews a bit and sometimes they get stuck on, which I've been planning to fix at some point).

jtaala avatar Mar 31 '24 04:03 jtaala

One of niris best and the biggest missing features in paperwm for me.

jdamboeck avatar May 03 '24 06:05 jdamboeck

Am open to this. Would you expect it to scroll after a brief delay once the previous shows?

Configurable would be the best. I would prefer instant reaction. At least only a very slight delay.

jdamboeck avatar May 03 '24 06:05 jdamboeck

Evening all,

I've now added this option (plus some related options for edge tiling previews), see #848.

Please give this a test and let me know how it feels:

git clone https://github.com/paperwm/PaperWM.git
cd PaperWM
git checkout improve-edge-previews2
./install.sh

then logout / login.

Thanks!

jtaala avatar May 04 '24 14:05 jtaala