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

Action on mouse scroll/Knob like menu #796

Open
JaoPedroDev opened this issue Jan 23, 2025 · 1 comment
Open

Action on mouse scroll/Knob like menu #796

JaoPedroDev opened this issue Jan 23, 2025 · 1 comment
Labels
feature request New feature or request

Comments

@JaoPedroDev
Copy link
Contributor

Description

I think it would be really nice if we could have an menu item that triggers actions on mouse scroll, like a knob.

A simple example would be a volume control, that is also a sub-menu.
Image

The configuration could be like executing a command, and the "state" of the knob would be passed as an argument to de command:

amixer sset 'Master' {{state}}%

And there could be a option to switch between sending the command on each scroll or sending the command after clicking the menu item. This would allow to, for example, execute a script that paste a Lorem Ipsum that size depends on the Knob state.

Affected Desktop Environments

All

Additional Information

No response

@JaoPedroDev JaoPedroDev added the feature request New feature or request label Jan 23, 2025
@Schneegans
Copy link
Contributor

Schneegans commented Jan 24, 2025

Thanks for the suggestion! Custom item types have been already on the roadmap for Kando since the very beginning. So this will come! But it's much more complicated:

  • If we want to visualize the state, we also need a way to get the initial state. So at least two, maybe three scripts will be required (get_state, set_state, set_final_state (the latter is called only once when the item is closed)).
  • How does this work with touch input?
  • How does this work in marking or turbo mode?

Using a slider instead of a knob could help. With this, we could simply drag left and right (or up and down depending on the item's position) once we entered the item. This could solve the last to issues above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants