LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

wtype

Wayland keyboard input simulator

TLDR

Type text
$ wtype "[Hello World]"
copy
Type specific key
$ wtype -k [Left]
copy
Press and release a named key
$ wtype -P [Left] -p [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
-P KEY
Press a named key
-p KEY
Release a named key
-d MS
Delay between keystrokes in milliseconds
-s MS
Sleep before next option (for complex sequences)
-
Read text from stdin

INSTALL

sudo apt install wtype
copy
sudo dnf install wtype
copy
sudo pacman -S wtype
copy
sudo apk add wtype
copy
sudo zypper install wtype
copy
brew install wtype
copy
nix profile install nixpkgs#wtype
copy

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
Kai