LinuxCommandLibrary

wtype

TLDR

Type text

$ wtype "[Hello World]"
copy
Type specific key
$ wtype -k [Left]
copy
Press modifier
$ wtype -M [shift|ctrl]
copy
Release modifier
$ wtype -m [ctrl]
copy
Delay between keystrokes
$ wtype -d [500] -- "[text]"
copy
Read from stdin
$ echo "[text]" | wtype -
copy

SYNOPSIS

wtype [OPTIONS] [TEXT]

DESCRIPTION

wtype simulates keyboard input on Wayland compositors, similar to xdotool type for X11. It can type text, press specific keys, and manage modifier states.
The tool is useful for automation, testing, and scripting on Wayland systems.

PARAMETERS

-k KEY

Type specific key by name
-M MOD
Press modifier key
-m MOD
Release modifier key
-d MS
Delay between keystrokes in milliseconds
-
Read text from stdin

CAVEATS

Wayland only. Requires appropriate permissions for input simulation. Some applications may not receive simulated input due to security restrictions.

SEE ALSO

ydotool(1), xdotool(1)

Copied to clipboard