-
Notifications
You must be signed in to change notification settings - Fork 1
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
Undo screensaver with volume keys #1
Comments
are those keys even recognised by mpv or are those global multimedia keys? you can test with |
should any other keys also remove the screensaver? like all the keys that change brightness, colour, etc? should it be done on any key press? |
recognized by mpv? what does it mean? pretty confusing wording but I use this:
I hope it answers your question
Uh, I didn't think of that to be honest, that's a great idea (even tho I removed any keys that change those things, so it's pretty useless to me) |
yeah that answers the question. though this might not be possible if not catching or reacting on all key presses. first of all, mpv doesn't have an api that can tell the script which key is bound to which function. in that case one can only react on the default key binding, which wouldn't help your case. the second limitation, i believe mpv's scripting api doesn't have a keybinding chaining mechanism. so one keybinding can only have one function bound to it. if i want to react on WHEEL_UP i would overwrite your binding instead. i believe this can't be implemented in a satisfactory way atm. |
What about your suggestion?
If it detects any key press (regardless of keybinding) = undo screensaver |
same, one would need to override any keybinding. |
Should I close this issue or keep it open? |
keep it open for now, i will look into it when i have some free time and maybe we can work around the limitation. |
I want to be able to undo the black screensaver with my volume keys the same way the script detects that I move my cursor
The text was updated successfully, but these errors were encountered: