LinuxCommandLibrary

Input

Copy to clipboard

$ xclip -sel clip [file]
copy
$ uname -a | xclip -sel clip
copy

Read clipboard

$ xclip -o -sel clip
copy

Move mouse absolute

$ xdotool mousemove [x] [y]
copy
$ ydotool mousemove --absolute [x] [y]
copy

Move mouse relative

$ xdotool mousemove_relative [x] [y]
copy
$ ydotool mousemove [x] [y]
copy

Click mouse

$ xdotool click 1
copy
$ ydotool click left
copy

Type text

$ xdotool type "Hello world"
copy
$ ydotool type "Hello world"
copy
$ wtype "Hello world"
copy

Type keystroke

$ xdotool key Escape
copy
$ ydotool key Escape
copy
$ wtype -k Escape
copy
Copied to clipboard