mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-03 23:55:22 +00:00
Update cheatsheets
This commit is contained in:
34
tldr/linux/wtype
Normal file
34
tldr/linux/wtype
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, linux]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# 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 -`
|
||||
Reference in New Issue
Block a user