1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-06-08 23:26:00 +02:00
tldr/pages/linux/wtype.md
Managor 79b8d3e3b8
*: replace … with individual dots and refresh pages (#16368)
Co-authored-by: Darío Hereñú <magallania@gmail.com>
Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com>
2025-05-04 10:20:26 +03:00

482 B

wtype

Simulate keyboard input on Wayland, similar to xdotool type for X11. See also: ydotool. More information: https://manned.org/wtype.

  • Simulate typing text:

wtype "{{Hello World}}"

  • Type a specific key:

wtype -k {{Left}}

  • Press a modifier:

wtype -M {{shift|ctrl|...}}

  • Release a modifier:

wtype -m {{ctrl}}

  • Wait between keystrokes (in milliseconds):

wtype -d {{500}} -- "{{text}}"

  • Read text from stdin:

echo "{{text}}" | wtype -