Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for using a different amount of fingers for swiping. #315

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

MagneFire
Copy link

This removes the hardcoded prerequisite of using three fingers to use the swipe gesture. Instead one can configure it by setting gesture-swipe-fingers in the input section.

A working example is:

input {
    gesture-swipe-fingers 4
}

This removes the hardcoded prerequisite of using three fingers to use the swipe gesture.
Instead one can configure it by setting `gesture-swipe-fingers` in the `input` section.

A working example is:
```
input {
    gesture-swipe-fingers 4
}
```

Signed-off-by: Darrel Griët <dgriet@gmail.com>
@YaLTeR
Copy link
Owner

YaLTeR commented May 3, 2024

Sorry for taking a while to respond. The reason is that I was thinking of different ways to configure this that don't impact future extensibility. For example, I'm thinking of possibly adding a different swipe gesture that will use 4 fingers, in addition to the current gestures using 3.

What's your use case for this, why do you want to change it?

@MagneFire
Copy link
Author

Sorry for taking a while to respond. The reason is that I was thinking of different ways to configure this that don't impact future extensibility. For example, I'm thinking of possibly adding a different swipe gesture that will use 4 fingers, in addition to the current gestures using 3.

Hehe, no worries. I'm thankful for you giving the time to respond 😄

I thought about this too, as in creating a Gesture struct to store all gesture related configuration (not too dissimilar to Hyprland https://wiki.hyprland.org/Configuring/Variables/#gestures).

But as this struct would only contain one option decided to keep it simple and perhaps discuss this in this PR 😉

What's your use case for this, why do you want to change it?

I'm currently using fusuma to have the three finger horizontal gesture setup for previous and next actions (alt+Right and alt+Left). The vertical gesture is used for volume control. The four fingers gesture is setup for workspace related gestures.

This works well for me with GNOME and Hyprland, which is why I wanted the same thing for niri.

@YaLTeR YaLTeR mentioned this pull request May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants