xdotool icon
xdotool icon

xdotool

 17 likes

This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.

xdotool screenshot 1

Cost / License

  • Free
  • Open Source

Since

  • Since 2015

Platforms

  • Linux
  • X11
17likes
0articles
Save

Features

Features

Highlights All activities

xdotool News & Activities

Recent activities

Comments and Reviews

   
ab1
0

These commands will report pid for active window every 1 second without errors. Only active window switch and not mouse hover! These commands will not capture actions that are faster than the delay.

while true; do sleep 1; xdotool getactivewindow getwindowpid 2/dev/null; done

John Chaney
0

Definitely does not come close to what AHK does. It does do a lot of window-related stuff but falls VERY short in the hotkey-specific things. xbindkeys combined with this helps, but still reaches nowhere near the level of AHK.

Review from a new or low-activity account — shown here, but not counted in the app rating.
metaphil
2

sleek, nifty and powerful utility that (when used in scripts) makes up for the lack of AutoHotkey icon AutoHotkey under Linux.

Official Links

Install from the command line

  • brew install xdotool

Be careful what you paste into a terminal. Check what a command installs before running it.

What is xdotool?

This tool lets you simulate keyboard input and mouse activity, move and resize windows, etc. It does this using X11's XTEST extension and other Xlib functions.

Additionally, you can search for windows and move, resize, hide, and modify window properties like the title. If your window manager supports it, you can use xdotool to switch desktops, move windows between desktops, and change the number of desktops.

xdotool information

AlternativeTo Categories

Office & Productivity, OS & Utilities

Our users have written 3 comments and reviews about xdotool, and it has gotten 17 likes.

xdotool was added to AlternativeTo by Viaken on and this page was last updated .