atx / wtype

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

Document stdin input #23

Closed sternenseemann closed 3 years ago

sternenseemann commented 3 years ago

This would be useful for using wtype for things like passmenu where you would automatically fake type in a stored password via wtype instead of copying it to the clipboard.

Currently it'd need to be passed via argv which means leaking it to the process list.

atx commented 3 years ago

This has been added in #11. It is not yet documented in the manpage though. Done simply via wtype -.

sternenseemann commented 3 years ago

Oh thanks, missed that!

albsch commented 3 years ago

When I execute echo "hello" | wtype -, I expect hello to be typed and be equivalent to wtype hello. Instead, using stdin results in an extra RETURN key to be used after the input ends, equivalent to wtype hello -P RETURN. Is this intended? Edit: Nevermind, some commands introduce new lines at the end. Disabling the newline (e.g. echo -n "hello") fixes this.