Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document stdin input #23

Closed
sternenseemann opened this issue Jun 11, 2021 · 3 comments
Closed

Document stdin input #23

sternenseemann opened this issue Jun 11, 2021 · 3 comments

Comments

@sternenseemann
Copy link

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
Copy link
Owner

atx commented Jun 11, 2021

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

@atx atx changed the title Support reading text to type from stdin Document stdin input Jun 11, 2021
@sternenseemann
Copy link
Author

Oh thanks, missed that!

@albsch
Copy link

albsch commented Jul 22, 2021

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.

@atx atx closed this as completed in f240771 Aug 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants