-
Notifications
You must be signed in to change notification settings - Fork 395
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
Rule Editor Key to include only specific device selected #2067
Comments
The rule editor allows all possible keys and buttons. This is by design, as there is no guarantee that the rule will run with the same devices active as when the rule is entered. If you want to see the keys for a particular device you can use the main Solaar window. You have to use this window anyway as you also need to divert the key. Adding an option that would restrict the possible keys and buttons to those on a selected device is possible, but is not going to be a high priority. Contributions to Solaar are always welcome. If you can figure out a good way of providing this feature and can implement it, your code can be incorporated into Solaar. |
Ah ok, no worries. What exactly do you mean by you can see the keys in the main Solaar window? I'm looking at it, and yes I can edit some settings, but like for my mouse G502, I cannot see what keys would be for all the buttons, as on the mouse they are labeled G keys, and they go to G9. BUT, I can't even divert G keys for the mouse. Not sure if you can for other mouses, unless that is for Keyboards only or something. Is there a way to figure out what a button is on a device? like a log or CLI command? Because like I said, my mouse has a total of 9 or so buttons, but I can't even figure out how they would be labeled for the Rule Editor. |
You can't determine how many G keys there are in the GUI. I think there is a call to get the number, but Solaar doesn't use it. To determine the regular keys that can be diverted look at the left-hand box in the Key/Button Diversion setting. |
Mice generally don't divert the G keys. They don't generally have G keys. To see if any G keys can be diverted look for a Divert G Keys diversion setting. If any G key can be diverted they all can. |
This request seems to be mostly contained in my suggestions in #2267 and #2281. When both are well implemented, it shouldn't be necessary to tackle it on its own anymore. Most important for this is a rule editor, that's device dependent. The implementation already supports everything, only the UI needs adaption to make use of it. |
The best implementation of this request is proposed in #2267 for which I just discovered, that the rule key will need to become keys in the UI. So there‘s one entry per rule which supports a combination of keypresses. |
Information
solaar show
for the target device (if applicable):This suggestion isn't really to a specific device, but I thought I would include the "Solaar Show" anyway for my device.
Is your feature request related to a problem? Please describe.
When trying to figure out what a "key" is called, you either do not know, have to look it up, or go down the incredibly long list of options when you type a letter or word. And yet, still don't know what most of them are, or do.
Describe the solution you'd like
Kind of a similar approach to when under "setting" on the Rule Editor where you can use a "specific" device, and when you pick said device, it will show all the buttons/gestures/etc., that the device can use (e.g Mouse button 4, 5, G1-G5+/etc).
And possibly the ability to just push the key on the device and it'll show what you pressed, such as G3, or mouse button 5, etc.
Hope this is possible with what is pulled and/or read from the device. The G915 keyboard I have has G1-5, but when searching for it, I get G1-30 or whatever. I don't need all that extra ones. Now I get it that you could end up owning other devices and it's great to see everything the Solaar Rule Editor can do, but if you own only a few devices, so much of that does not apply to your device.
Describe alternatives you've considered
Or, an option under the CLI (or the GUI) that shows what is being pressed, what the name of that button that is being pressed, etc. To figure out what the exact name is when searching for the "key" button.
The text was updated successfully, but these errors were encountered: