Update cheatsheets

This commit is contained in:
ivuorinen
2024-10-10 00:17:00 +00:00
parent 8fdd4c7ea2
commit 08e6a26f5e
7 changed files with 101 additions and 4 deletions

34
tldr/linux/wtype Normal file
View 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 -`