stdin command to allow freeform keyboard input #229
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for creating
ydotool
, it has been very helpful to me! Background on my use case: I have a raspberry pi attached to a touchscreen, sitting on my desk next to my regular computer. The touchscreen works fine for mouse input but I don't have space for a second keyboard for the pi, and the on-screen keyboard is painful and something like Synergy seems pretty heavy. I recently switched to Wayland.I know ydotool is typically more targeted at scripting, but I found it worked pretty well to just accept keyboard input from stdin. It's not 100% 1:1 mapping (you can't currently send ctrl-c to wayland, there are probably some other edge cases) but it works well enough for how I use it: I ssh to the pi and start
ydotool stdin
to use my main keyboard to type on the pi.I completely understand if this isn't a direction you want to go with the project, but wanted to mention it in case you or others found it useful.
todo
tool_type
and could probably be merged together