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

Dropdown menu for bindings should include media keys, F13-F24, etc #567

Open
HelmicNewciv opened this issue Sep 2, 2020 · 3 comments
Open

Comments

@HelmicNewciv
Copy link

Is your feature request related to a problem? Please describe.
I cannot bind a mouse button to mute, increase or decrease volume, play/pause tracks, et cetera and it's hard to find information how how to do so through ratbagctl.

Describe the solution you'd like
Options to bind keyboard buttons like F13-F24, Play/Pause, Mute, etc from the GUI to make it easier if the user doesn't physically have those keys on their keyboard to press or doesn't know how to bind them directly through ratbagctl.

Describe alternatives you've considered
A wiki page showing how to bind these buttons through ratbagctl, or binding these functions in Windows. The former would be useful if it could be easily found but it would obviously be better to be able to do everything through Piper, the latter is obviously what we're trying to avoid by using Piper/libratbag in the first place.

Being able to type in button codes or whatever manually rather than recording a macro would be similarly useful through the GUI for more precise macros and to cover esoteric buttons that won't all fit into the dropdown menu.

Additional context
Screenshot_20200902_123349
The ↕ symbol preceding the media keys aren't easily typed. All the current keys are leftover from when I bound them in Windows years and years ago. Mute showed up as [ ] originally before I rebound it to test the application, but now I'm unable to rebind it to mute.

@staticssleever668
Copy link
Member

(from another issue: #683 (comment))
For now you can do this with some mice with ratbagctl:

# Will be available in libratbag v0.18 and higher (so basically if you compile from sources right now):
ratbagctl "<device name>" button "<button index>" action set key KEY_VOLUMEUP
ratbagctl "<device name>" button "<button index>" action set key KEY_PLAYPAUSE
ratbagctl "<device name>" button "<button index>" action set key KEY_F13

# Or as a macro with older libratbag versions or if the mouse doesn't support key actions:
ratbagctl "<device name>" button "<button index>" action set macro KEY_VOLUMEUP
ratbagctl "<device name>" button "<button index>" action set macro KEY_PLAYPAUSE
ratbagctl "<device name>" button "<button index>" action set macro KEY_F13

@KarlOfDuty
Copy link

This would be very nice if it could be implemented, it's a very common use case.

@Klubas
Copy link

Klubas commented Jun 26, 2023

I'm too using @staticssleever668 solution, having the option to do it via UI would be great.

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

No branches or pull requests

4 participants