XDO(1)

okay bestie, welcome to the xdo manual page β€” XDO(1), section 1 of the Xdo Manual πŸ’–

πŸ’– NAME πŸ’–

xdo β€” perform actions on windows. periodt.

✨ SYNOPSIS ✨

xdo ACTION [OPTIONS] [WID ...]

that's the whole shape of it, no cap.

🌸 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 πŸ‘‘

okay so these are the moves you can pull, bestie:

  • close β€” close the window.
  • kill β€” kill the client.
  • hide β€” unmap the window.
  • show β€” map the window.
  • raise β€” raise the window.
  • lower β€” lower the window.
  • below β€” put the window below the target (see -t).
  • above β€” put the window above the target (see -t).
  • move β€” move the window.
  • resize β€” resize the window.
  • activate β€” activate the window.
  • id β€” print the window’s ID.
  • pid β€” print the window’s pid.
  • key_press, key_release β€” simulate a key press/release event.
  • button_press, button_release β€” simulate a button press/release event.
  • pointer_motion β€” simulate a pointer motion event.
  • -h β€” print the synopsis and exit.
  • -v β€” print the version and exit.

πŸŽ€ 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. got it? got it. πŸ’…

  • -r β€” distinct ID.
  • -c β€” same class.
  • -C β€” distinct class.
  • -d β€” same desktop.
  • -D β€” distinct desktop.
  • -n INSTANCE_NAME β€” the window has the given instance name.
  • -N CLASS_NAME β€” the window has the given class name.
  • -a WM_NAME β€” the window has the given wm name.
  • -t WID β€” the target window for the below and above actions.
  • -p PID β€” the window has the given pid.
  • -k CODE β€” use the given code for the key_press, key_release, button_press and button_release actions.
  • -x [Β±]PIXELS β€” window x coordinate (or delta) for the move and pointer_motion action.
  • -y [Β±]PIXELS β€” window y coordinate (or delta) for the move and pointer_motion action.
  • -w [Β±]PIXELS β€” window width (or delta) for the resize action.
  • -h [Β±]PIXELS β€” window height (or delta) for the resize action. yes bestie, -h is also the help action up in ACTIONS β€” context is everything πŸ’€
  • -m β€” wait for the existence of a matching window.
  • -s β€” handle symbolic desktop numbers.

🌈 EXAMPLES 🌈

vibe check: here are the exact moves, copy-paste ready.

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

Xdo 0.5.7, dated 09/18/2017 β€” XDO(1), signing off. mwah πŸ’–