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 builtin actions #59

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

add builtin actions #59

wants to merge 2 commits into from

Conversation

taj-ny
Copy link
Owner

@taj-ny taj-ny commented Feb 5, 2025

This adds the ability to create hard-coded actions, which can then be easily configured and assigned to a gesture.

More actions and configuration will be added.

touchpad:
  gestures:
    - type: swipe
      fingers: 3
      direction: up
      
      builtin:
        id: maximize
        instant: true
        
    - type: swipe
      fingers: 4
      direction: any
      
      builtin:
        id: drag_window

@taj-ny
Copy link
Owner Author

taj-ny commented Feb 5, 2025

Proof of concept window maximization gesture:

2025-02-05.18-54-38.mp4

The gesture is cancelled if the minimum delta (not threshold) isn't reached and fingers are lifted, otherwise the gesture ends.

Right now it just resizes the window, but proper smooth animation will be added (if possible).

@taj-ny
Copy link
Owner Author

taj-ny commented Feb 6, 2025

First proper 1-to-1 gesture: close window

2025-02-06.18-56-59.mp4

Is that how it's supposed to work? I've never used those before.

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.

1 participant