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

[Feature] Notification Center Touch gestures #367

Open
System64fumo opened this issue Jan 5, 2024 · 2 comments
Open

[Feature] Notification Center Touch gestures #367

System64fumo opened this issue Jan 5, 2024 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@System64fumo
Copy link
Contributor

Please read through the README and the Man pages before submitting
Please also make sure that there isn't any prior issue describing this feature

Is your feature request related to a problem? Please describe.
Not a problem, More of a difficult suggestion.

Describe the solution you'd like
It would be nice to have touch gestures for opening/closing the panel.

Describe alternatives you've considered
I've tried using touch gestures from other programs (lisgd, ect) to open/close the notification center,
But that doesn't follow the finger properly, It just pops into place and feels very off.

Additional context
I'm not sure if this is even possible but this is how i'm thinking this could work,
Have the panel be invisible and be very thin on the side, Then if a touch input (and only touch input) is dragging the panel more than x amount of pixels start revealing the panel.

Perhaps a carousel could be used here?
Please let me know.

@ErikReider
Copy link
Owner

Not sure how feasible this is due to how we capture input. This would be a compositor feature if I'm not mistaken.

I'll keep the issue open just in case anyone else has an implementation idea

@ErikReider ErikReider added enhancement New feature or request help wanted Extra attention is needed labels Feb 10, 2024
@System64fumo
Copy link
Contributor Author

@ErikReider I've written something similar to this in sysmenu
Tho with my implementation it's a little buggy (if used with a mouse) and spans the whole width of the monitor.

In a nutshell:
keep the window open
have a small box on the edge you want to swipe from
change width according to how far you've moved from the starting point
on release check if it's more than half of the nc's width or height then set it's width or height to max or min

Feel free to take a look at it see if you can port this over to swaync. (I'm not that good with vala, sorry)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants