Input/output of Keymapper virtual modifier state #103
Replies: 4 comments 2 replies
-
Agree. This was just an impulse reaction to an email notification from watching the repository.
With my little knowledge of DBus, it sounds like a sensible approach. To be honestly though, I just learned about what DBus is for after I started using DBus desktop notifications as a tool to debug my config. What followed was an ugly hack of piping and grepping An event based system would definitely be better than having to poll the values. For this to work (for my specific use case), it would be important for key release events to be sent out after a restart triggered by a config change. I could come up with use cases where it would be useful to be able to read the current state on demand without having to maintain it externally on a separate monitoring process. Monitoring and parsing the DBus events did seem somewhat "involved" for basic use cases though. After some searching, I came up with this list of existing tools that could potentially be useful for e.g. triggering shell scripts on events.
Do you have an equivalent system in mind to make this available on Mac and Windows, given the cross platform support? Personally I would not mind only Linux support though.
Not exactly. I was thinking it would allow some potentially interesting use cases if there would be an additional context modifier for varying keyboard mappings depending on an external state other than device or the currently focused app. But without a specific use case in mind, better keep things simple. The ability to toggle virtual modifier state would likely suffice. *) This sounds absurdly complicated means of doing this. I could have just just echo the stuff to a log file and tail if for the output. I was thinking of other use cases for this outside of debugging. Partly I blame lack of enough sleep. |
Beta Was this translation helpful? Give feedback.
-
@houmain Earlier this week I got an idea that'd be much cleaner if there would be a way to inject stateful information into the running Keymapper instance in one way or another. I've found myself going back and forth with Nordic and US layouts. There's a few annoying differences between the layouts (e.g. 1 key offset to get symbols I could probably work around this one by always switching the layout through Keymapper and toggling a virtual mod at the same time. I'd rather not do it in this way in case you're planning to add support for something that'd make it possible in a cleaner way. |
Beta Was this translation helpful? Give feedback.
-
Hi, I am thinking about making it possible to set/unset/toggle virtual keys by passing them to a new |
Beta Was this translation helpful? Give feedback.
-
With the introduction of |
Beta Was this translation helpful? Give feedback.
-
In order to correct my bad judgement of starting an off-topic discussion on issue #102, The start of the discussion below, I'll reply on a new message.
@ristomatti commented:
@houmain commented:
Beta Was this translation helpful? Give feedback.
All reactions