wtype
Wayland keyboard input simulator
TLDR
Type text
$ wtype "[Hello World]"
Type specific key$ wtype -k [Left]
Press and release a named key$ wtype -P [Left] -p [Left]
Press modifier$ wtype -M [shift|ctrl]
Release modifier$ wtype -m [ctrl]
Delay between keystrokes$ wtype -d [500] "[text]"
Read from stdin$ echo "[text]" | wtype -
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
sudo dnf install wtype
sudo pacman -S wtype
sudo apk add wtype
sudo zypper install wtype
brew install wtype
nix profile install nixpkgs#wtype
CAVEATS
Wayland only. Requires appropriate permissions for input simulation. Some applications may not receive simulated input due to security restrictions.
