Linux
Command
Library
Basics
Tips
Commands
Input
Copy to clipboard
$
xclip
-sel clip [file]
$
uname
-a |
xclip
-sel clip
Read clipboard
$
xclip
-o -sel clip
Move mouse absolute
$
xdotool
mousemove [x] [y]
$
ydotool
mousemove --absolute [x] [y]
Move mouse relative
$
xdotool
mousemove_relative [x] [y]
$
ydotool
mousemove [x] [y]
Click mouse
$
xdotool
click 1 # 1=left 2=middle 3=right
$
ydotool
click left # left, right
Type text
$
xdotool
type "Hello world"
$
ydotool
type "Hello world"
$
wtype
"Hello world"
Type keystroke
$
xdotool
key Escape #
keylist
$
ydotool
key Escape
$
wtype
-k Escape
Copied to clipboard