Xdotool

From Free Knowledge Base- The DUCK Project: information for everyone
Jump to: navigation, search

Lowercase: xdotool

apt install xdotool
export DISPLAY=:0.0
xdotool key A

If you use the "key" it sends a single key stroke, if you use "type" it sends multiple

xdotool type Some words.

Refresh Google Chrome web browser on a remote computer via this command in ssh shell

xdotool search --class Chrome windowactivate --sync %1 key F5 windowactivate $(xdotool getactivewindow)

You can easily discover the key name by using

xev