Skip to content

Conversation

@ryanabx
Copy link
Contributor

@ryanabx ryanabx commented Apr 1, 2024

Depends on: pop-os/cosmic-settings-daemon#63

This PR has been updated as of 2024-12-23

This version of the gesture configuration backend is very simple to start, only supporting the gestures that are currently supported prior to this PR (i.e. next and previous workspace).

Using the custom_gestures configuration in cosmic-settings-daemon's config, you can specify custom gestures to override the default gesture configuration.

@ryanabx ryanabx force-pushed the input/gesture-config branch 3 times, most recently from f89023e to d42b6df Compare April 1, 2024 00:53
@ryanabx ryanabx force-pushed the input/gesture-config branch from d42b6df to 0eccd82 Compare April 15, 2024 03:23
@ryanabx ryanabx changed the title draft: gesture configuration backend feat: Gesture configuration backend Apr 15, 2024
@ryanabx ryanabx marked this pull request as ready for review April 15, 2024 03:25
@ryanabx ryanabx force-pushed the input/gesture-config branch from 0eccd82 to 38898bf Compare April 16, 2024 20:46
@ryanabx
Copy link
Contributor Author

ryanabx commented Apr 16, 2024

Rebased to include the RWLock changes. @Drakulix can you look at this at some point? I think this is a good direction to go for gesture configurations but I need to know if you and others agree

@ryanabx ryanabx force-pushed the input/gesture-config branch from 38898bf to 9319fe3 Compare April 20, 2024 04:44
@ryanabx ryanabx marked this pull request as draft December 17, 2024 19:09
@ryanabx
Copy link
Contributor Author

ryanabx commented Dec 18, 2024

Going to start working on this again. But it looks like actions and keybinds are defined in c-s-d, so I'm going to make the proper gesture type there first!

ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 20, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 20, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

Oftentimes, we want the gesture to be either absolute (i.e. ignoring
context such as workspace direction), or relative (if workspaces
are horizontal, forward would be right, backward would be left. if
workspaces are vertical, forward would be up, backward would be down).

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
@ryanabx ryanabx force-pushed the input/gesture-config branch from 9319fe3 to 316d95d Compare December 23, 2024 06:46
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Dec 23, 2024
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
@ryanabx ryanabx force-pushed the input/gesture-config branch from 316d95d to e48e352 Compare December 23, 2024 07:12
@ryanabx ryanabx marked this pull request as ready for review December 23, 2024 07:15
@ryanabx
Copy link
Contributor Author

ryanabx commented Dec 23, 2024

I think this should be ready now, pending pop-os/cosmic-settings-daemon#63

ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Jan 26, 2025
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request Mar 19, 2025
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
@ryanabx ryanabx force-pushed the input/gesture-config branch from e48e352 to f6bbac4 Compare March 19, 2025 18:26
@ryanabx
Copy link
Contributor Author

ryanabx commented Mar 19, 2025

CI failed because I was using Cargo 1.82.0 to generate the lock file. Thanks WSL/Ubuntu

edit: Maybe not, I don't know what it could be then :/

…aemon config

This commit adds very very simple configurable touchpad gestures, starting with next and previous workspace. We need to add support for more actions at some point, but this is a good start.

Signed-off-by: Ryan Brue <[email protected]>
@ryanabx ryanabx force-pushed the input/gesture-config branch from f6bbac4 to 39fed56 Compare March 19, 2025 18:32
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request May 24, 2025
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request May 24, 2025
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
ryanabx added a commit to ryanabx-contrib/cosmic-settings-daemon that referenced this pull request May 24, 2025
This commit adds a Gesture abstraction, which can define gestures by the
number of fingers used, and the direction the gesture is performed in.

The abstraction is modeled after the Binding type, and the resulting
Gestures type is similar to the Shortcuts type.

This is the first step in implementing configurable touchpad gestures
(pop-os/cosmic-comp#396)

Signed-off-by: Ryan Brue <[email protected]>
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.

2 participants