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)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid