xdo - Perform actions on windows
xdo ACTION [OPTIONS] [WID ...]
Apply the given action to the given windows.
If no window IDs and no options are given, the action applies to
the focused window.
Close the window.
Kill the client.
Unmap the window.
Map the window.
Raise the window.
Lower the window.
Put the window below the target (see -t).
Put the window above the target (see -t).
Move the window.
Resize the window.
Activate the window.
Print the window’s ID.
Print the window’s pid.
Simulate a key press/release event.
Simulate a button press/release event.
Simulate a pointer motion event.
Print the synopsis and exit.
Print the version and exit.
When options are provided, the action applies to all the children of the root
window that match the comparisons implied by the options in relation to the
The window has the given instance name.
The window has the given class name.
The window has the given wm name.
The target window for the below and above
The window has the given pid.
Use the given code for the key_press,
key_release, button_press and button_release
Window x coordinate (or delta) for the move and
Window y coordinate (or delta) for the move and
Window width (or delta) for the resize
Window height (or delta) for the resize
Wait for the existence of a matching window.
Handle symbolic desktop numbers.
Close the focused window:
Close all the windows having the same class as the focused
Hide all the windows of the current desktop except the focused
Activate the window which ID is 0x00800109:
Send fake key press/release events with keycode 46 to the focused
xdo key_press -k 46; sleep 0.2; xdo key_release -k 46