cosmic-comp icon indicating copy to clipboard operation
cosmic-comp copied to clipboard

feat: Gesture configuration backend

Open ryanabx opened this issue 10 months ago • 1 comments

This is an implementation of a backend gesture configuration based on a gist I made a few weeks ago: https://gist.github.com/ryanabx/e18b70d58f651c1a6946a5bca7a11165

This method of configuration would allow the frontend settings to do whatever they'd like with the gesture configuration without having to do something complex (unless they wanted to!)

Basically, gesture configurations are split per finger count and can be one of two types:

  • Workspace dependent (depends on the direction of workspaces (horizontal/vertical) (for example, workspace switching gestures would need to be workspace dependent)
  • Directional (doesn't depend on the direction of workspaces) (for example, window focus switching gestures need to be workspace independent)

to-do:

  • [x] configurable gesture implementation in the input module
  • [x] config item for touchpad gestures
  • [ ] default configuration for touchpad gestures (I don't know how to do this, advice needed)

ryanabx avatar Apr 01 '24 00:04 ryanabx

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 avatar Apr 16 '24 20:04 ryanabx