Note on using keyboard as input machine #1470
Unanswered
user202729
asked this question in
Plugin Support
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I recently switch to installing Qwerty-like mode on Georgi. Some notes.
• I modified the source code to implement first-up chord send and filter to take only input from Georgi.
Should write proper input plugin some day.
• On X, Plover calls set keyboard map when the Unicode character is not on the map; however when there are 2 physical keyboards it seems that xmodmap is independent, so it's possible that Plover sets xmodmap for one keyboard (the physical keyboard) then do the output with the other keyboard (xtest).
Maybe something to do with XKB not beingsupported (*), so supporting it would be the best option; however the documentation of
python-xlib
is less than ideal (should I look at the C API documentation and figure out?)See discussion in #1164 (and some linked issues).
Reattaching like mentioned in #1030 apparently (seems to) fix the Unicode output error, but it's not permanent. I should also figure out how to listen for new keyboard connect/etc. and patch accordingly (*).
Anyway, looking around a bit ("where is the documentation?") I figured out roughly how Python-xlib + C libx11 + xserver + the communication protocol works
https://github.com/python-xlib/python-xlib/pull/57
ext.shape
being automatically generated, and Benoit's generating scriptEither way, sticking to subprocess.run() should be good for now.
Documentation links and miscellaneous
https://unix.stackexchange.com/questions/146287/monitoring-events-keyboard-mouse-in-x
→ need to listen for HierarchyChanged events (can)For now, I implement a source code patch in user202729@8ab18b4 .
Beta Was this translation helpful? Give feedback.
All reactions