XDO(1) | Xdo Manual | XDO(1) |
NAME¶
xdo - Perform actions on windows
SYNOPSIS¶
xdo ACTION [OPTIONS] [WID ...]
DESCRIPTION¶
Apply the given action to the given windows.
If no window IDs and no options are given, the action applies to the focused window.
ACTIONS¶
close
kill
hide
show
raise
lower
below
above
move
resize
activate
id
pid
key_press, key_release
button_press, button_release
pointer_motion
-h
-v
OPTIONS¶
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 focused window.
-r
-c
-C
-d
-D
-n INSTANCE_NAME
-N CLASS_NAME
-a WM_NAME
-t WID
-p PID
-k CODE
-x [±]PIXELS
-y [±]PIXELS
-w [±]PIXELS
-h [±]PIXELS
-m
-s
EXAMPLES¶
Close the focused window:
xdo close
Close all the windows having the same class as the focused window:
xdo close -c
Hide all the windows of the current desktop except the focused window:
xdo hide -dr
Activate the window which ID is 0x00800109:
xdo activate 0x00800109
Send fake key press/release events with keycode 46 to the focused window:
xdo key_press -k 46; sleep 0.2; xdo key_release -k 46
09/18/2017 | Xdo 0.5.7 |