Replies: 1 comment 3 replies
-
|
Hi Hibryda,
Couldn't you move verbosity into a macro? Maybe you could show some more of your configuration.
Sorry, I could not reproduce any delay. I tried it with the following configuration and "On" and "Off" notifications appear instantaneously:
You should not have to poll the virtual key state. Your script could repeatedly call:
and read the result code or monitor the output of something like the following:
I have not thought about monitoring multiple keys with a single instance. I will make the parameter of
which would output 0 or 1 for each virtual key whenever one is toggled. BTW you could give your Virtual keys meaningful names using aliases. e.g. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm likely trying to break through the open door, but here are my attempts/ideas.
I have Orbweaver keyboard as secondary for left hand. I'd love to be able to switch multiple "layers" of settings using virtual keys/modifiers. Yet, in order to have it working, I need to be sure which modifiers are on. And here's the lack of control, as it seems to me that such a syntax:
Z >> !Virtual1 !Virtual2 Virtual3 mod_clear[3]is a bit cumbersome.So, I decided to use the provided
keymapperctlin a script that cancels all modifiers and sets the triggered one to ON. And here I got a surprise, as the time needed to clear one modifier is for some reasons very long. At least on my PopOS Linux - it takes ~100ms.So, here is my first idea - make modifiers, working in the same context optionally cancel all the others in this context. It can be done with, for instance
@Virtual1or alike. This would ensure switching leaving active only this one. It's important, as usually there's no visual clue on the mode.Another improvement would be to speed up this
--releasetime which is quite large.But that's not all. I actually built the script I mentioned to provide me with a visual clue on modifiers. It now looks like below, as a prototype it still needs more icons and stuff.

It's an overlay, that stays atop showing active modifiers.
Anyway, development of this little tool shown me some issues with respect to modifiers. I can't easily determine their current state otherwise than either placing calls to some scripts in
keymapper.confor asking repeatedlykeymapperctl --is-pressed VirtualX(which is faster, yet slow as well). Then, the idea is that keymapper could expose the current map of Virtual keys as a device of sorts in/dev/xxxortempto be monitored and read on changes by some other software. Of course, in order to retain safety of this software it could only be created and available on some switch inkeymapperd(which requires admin rights to manipulate).Beta Was this translation helpful? Give feedback.
All reactions