I have some input field of printable ASCII characters, excluding whitespace, that I'd like to pass to
xdotool to type as if typed by keyboard.
echo "type lol lol" | xdotool -eats the space in the middle, so it types
echo "type 'lol lol'" | xdotool -correctly types
lol lol, but it cannot type
'in the middle. I.e.
echo "type 'lol ' lol'" | xdotool -doesn't type
lol ' lol, but rather types
- How to use
xdotoolto let it type arbitrary characters without the problem above?
- In case
xdotoolis not adequate, got any alternative tool that work better?
Update: reason I care about this is because I'm using it for a password manager that I'm implementing. I think it's better to type passwords by means of keyboard typing emulation, as opposed to copying-pasting via some shared clipboard, which other processes may look into to steal passwords.