From e7f7d022ea6f18cb737149d3727d4feb76158f22 Mon Sep 17 00:00:00 2001 From: Krish Rakesh Dave <116882111+KrishDave1@users.noreply.github.com> Date: Wed, 9 Oct 2024 22:05:49 +0530 Subject: [PATCH] wtype: add page (#14078) Co-authored-by: Wiktor Perskawiec --- pages/linux/wtype.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 pages/linux/wtype.md diff --git a/pages/linux/wtype.md b/pages/linux/wtype.md new file mode 100644 index 0000000000..26ed17488d --- /dev/null +++ b/pages/linux/wtype.md @@ -0,0 +1,29 @@ +# wtype + +> Simulate keyboard input on Wayland, similar to `xdotool type` for X11. +> See also: `ydotool`. +> More information: . + +- 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 -`