mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-23 18:15:28 +02:00
wtype: add page (#14078)
Co-authored-by: Wiktor Perskawiec <git@spageektti.cc>
This commit is contained in:
parent
2048769fd9
commit
e7f7d022ea
1 changed files with 29 additions and 0 deletions
29
pages/linux/wtype.md
Normal file
29
pages/linux/wtype.md
Normal file
|
@ -0,0 +1,29 @@
|
|||
# wtype
|
||||
|
||||
> Simulate keyboard input on Wayland, similar to `xdotool type` for X11.
|
||||
> See also: `ydotool`.
|
||||
> More information: <https://github.com/atx/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 -`
|
Loading…
Add table
Reference in a new issue