atx / wtype

xdotool type for wayland
MIT License
385 stars 13 forks source link

Actions from stdin #42

Closed johngebbie closed 2 years ago

johngebbie commented 2 years ago

I ended up happy with ydotool for what I'm working on but I had a thought for wtype. I feel it should read the actions from stdin. That way you could have an ongoing process without the "modifiers get released automatically once the program terminates" problem and sleeping wouldn't need built in (the -s option).

Here's similar with xdotool:

{ echo keydown shift+a; sleep 2; echo key exclam; } | xdotool -

For an example of an ongoing process, I'm making voice control input for people with limited/no use of their hands.

Just passing through but maybe that's useful.

johngebbie commented 2 years ago

I actually ended up writing dotool that uses this idea: https://sr.ht/~geb/dotool

All the best. I'll close this.