You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+10
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,15 @@ To press/release modifiers, `-M`/`-m` can be used respectively.
25
25
wtype -M ctrl c -m ctrl
26
26
```
27
27
28
+
To alter delay between keystrokes, `-d`.
29
+
30
+
```
31
+
# delay of 0 when typing "foo", 120ms on "bar"
32
+
wtype foo -d 120 bar
33
+
34
+
# also applied on stdin
35
+
echo everything | wtype -d 12 -
36
+
```
28
37
29
38
To press/release a named key (as given by [xkb_keysym_get_name](https://xkbcommon.org/doc/current/group__keysyms.html)),
30
39
`-P`/`-p` can be used.
@@ -33,6 +42,7 @@ To press/release a named key (as given by [xkb_keysym_get_name](https://xkbcommo
33
42
# Press and release the Left key
34
43
wtype -P left -p left
35
44
```
45
+
36
46
Note that when wtype terminates, all the pressed keys/modifiers get released, as the compositor destroys the associated
37
47
virtual keyboard object. To help performing a more complicated sequence of key presses, `-s` can be used to insert delays into the stream of key events.
0 commit comments