xdotool
Command-line automation for X11. More information: <https://manned.org/xdotool>.
Install
- All systems
-
curl cmd.cat/xdotool.sh
- Debian
-
apt-get install xdotool - Ubuntu
-
apt-get install xdotool -
Alpine
-
apk add xdotool - Arch Linux
-
pacman -S xdotool - Kali Linux
-
apt-get install xdotool - Fedora
-
dnf install xdotool - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install xdotool - OS X
-
brew install xdotool - Raspbian
-
apt-get install xdotool - Docker
-
docker run cmd.cat/xdotool xdotoolpowered by Commando
Command-line automation for X11. More information: <https://manned.org/xdotool>.
-
Retrieve the X-Windows window ID of the running Firefox window(s):
xdotool search --onlyvisible --name firefox -
Click the right mouse button:
xdotool click 3 -
Get the ID of the currently active window:
xdotool getactivewindow -
Focus on the window with ID of 12345:
xdotool windowfocus --sync 12345 -
Type a message, with a 500ms delay for each letter:
xdotool type --delay 500 "Hello world" -
Press the enter key:
xdotool key KP_Enter
© tl;dr; authors and contributors