xte - Generates fake input using the XTest extension
xte [options] commands...
is a program that generates fake input using the XTest extension,
more reliable than xse.
A summary of options is included below.
- -i id
- XInput 2.x device to use. List devices with 'xinput list'.
- -x display
- Send commands to remote X server. Note that some commands may not work
correctly unless the display is on the console, e.g. the display is
currently controlled by the keyboard and mouse and not in the background.
This seems to be a limitation of the XTest extension.
- --help, -h
- Show summary of options.
- key k
- Press and release key k
- keydown k
- Press key k down
- keyup k
- Release key k
- str string
- Do a bunch of key X events for each char in string
- mouseclick i
- Click mouse button i
- mousemove x y
- Move mouse to screen position x, y
- mousermove x y
- Move mouse relative from current location by x, y
- mousedown i
- Press mouse button i down
- mouseup i
- Release mouse button i
- sleep x
- Sleep x seconds
- usleep x
- Usleep x microseconds
These keys are case sensitive.
Depending on your keyboard layout, the "Windows" key may be one of the
Super_ keys or the Meta_ keys.
was written by Steve Slaven <email@example.com>.
command doesn't support Unicode characters with more than two
bytes. Further, character composing sequences to generate special charactes
are limited to Multi_key plus two characters. The set of supported characters
depends on the current keyboard layout.