X11/Xorg automation
Last update
2018-08-23
2018-08-23
« — »
There two very useful tools to help you automate Xorg:
- xwit -- window interface tool:
iconifying the window, and apply it to several windows whose name begins with one of the given strings, or a particular window id given, or the window id found in the environment variable WINDOWID, or the window under the mouse cursor
1 | xwit -root -warp 640 512 # move mouse to X/Y position
|
- xdotool -- automation tool:
simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.
1 2 3 | xdotool key ctrl+alt+F1 # press this combination of keys xdotool click --delay 2 --repeat 1000 1 # left click 1000 times xdotool mousemove 500 500 # moves the mouse to (500,500) |