LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ydotool

Simulate input on X11 and Wayland

TLDR

Start daemon
$ ydotoold
copy
Left click
$ ydotool click 0xC0
copy
Right click
$ ydotool click 0xC1
copy
Press Alt+F4
$ ydotool key 56:1 62:1 62:0 56:0
copy

SYNOPSIS

ydotool COMMAND [OPTIONS]

DESCRIPTION

ydotool simulates keyboard and mouse input on Linux. Unlike xdotool, it works on both X11 and Wayland by using the kernel uinput module.Requires the ydotoold daemon to be running.

PARAMETERS

click CODE

Simulate mouse click (0xC0=left, 0xC1=right, 0xC2=middle)
key KEYCODE:STATE...
Simulate key press/release (1=press, 0=release)
type TEXT
Type text string
mousemove X Y
Move mouse to position

INSTALL

sudo dnf install ydotool
copy
sudo pacman -S ydotool
copy
sudo zypper install ydotool
copy
nix profile install nixpkgs#ydotool
copy

CAVEATS

Requires ydotoold daemon running. Needs access to /dev/uinput. Key codes are hardware scancodes, not X11 keysyms.

SEE ALSO

xdotool(1), wtype(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