karousel icon indicating copy to clipboard operation
karousel copied to clipboard

[Feature] Gesture to change focus, rather then scroll

Open BeeFox-sys opened this issue 6 months ago • 3 comments

I would really like a gesture to automatically change focus and bring the window into view, rather then a raw scrolling gesture. This could be an option in the touch pad scrolling mode.

BeeFox-sys avatar Jun 15 '25 12:06 BeeFox-sys

This could also be done by scrolling moving the focus

BeeFox-sys avatar Jun 15 '25 12:06 BeeFox-sys

I'll just note here that I'm currently doing this with libinput-gestures, with this config: https://github.com/AndydeCleyre/dotfiles/blob/master/.config/libinput-gestures.conf

AndydeCleyre avatar Jun 15 '25 13:06 AndydeCleyre

For others use, i am using lisgd for this for touch screen gestures.

BeeFox-sys avatar Jun 16 '25 08:06 BeeFox-sys

I've opened a PR that fixes this issue in #142

Grafcube avatar Dec 05 '25 05:12 Grafcube

how does it handle multiple windows being equally visible at the end of the gesture? I would assume it changes as you do it but you said it changes at the end of the gesture. if that's the case then wouldn't you have issues when you have two that are both fully on screen (for example, two 50% size windows). if you just pick the end or center one it might make it hard to keep multiple windows fully visible at once since you'd have to center one or position based off of some arbitrary point that puts the right windows in the right places but might not actually put focus in the right place.

@this-username-system-sucks-ass my patch focuses the leftmost fully visible window, so if there are multiple windows it will focus the one to the left. I also tried making it scroll the window into view at the end of the gesture if that's configured but I couldn't figure out how to make it work and after a while I realised that could make it annoying to focus windows to the right.

I have been using my patch ever since I made it and so far it has been very convenient. If I'm in a situation where the window I want isn't focused, that's fine because I've already used the touchpad to scroll to the window and I can just click it to actually focus it. But that only happens with windows that are fullscreen since they cover most of the screen and only reliably autofocus if they're at one of the ends (I can't be bothered to be precise with my scrolling and overshoot sometimes). Every other window focuses every time without any issues.

Grafcube avatar Dec 16 '25 13:12 Grafcube