Auto Clicker for Linux

Linux auto clickers split into two categories based on your display server: X11 tools and Wayland tools. Most Linux desktops still default to X11, but Ubuntu 22.04 and many newer distributions use Wayland by default. The tools are not interchangeable, so knowing which you are running is the first step.

Check Your Display Server

Open a terminal and run the command below. If the output is "x11", use the X11 tools. If the output is "wayland", use the Wayland tools.

echo $XDG_SESSION_TYPE

X11 Auto Clickers

xdotool (Command-Line)

xdotool is the standard X11 automation tool. It simulates mouse clicks, keyboard presses, and window focus changes. Available in every major Linux distribution's package manager.

# Install on Ubuntu/Debian
sudo apt install xdotool
# Basic auto-click loop
while true; do xdotool click 1; sleep 0.1; done

This clicks the left mouse button (button 1) every 0.1 seconds indefinitely. Press Ctrl+C to stop. Replace "0.1" with your desired interval in seconds.

XClicker (GUI)

XClicker is an open source GUI auto clicker for X11 Linux desktops. Set your click interval, position, and click type with a graphical interface similar to OP Auto Clicker on Windows. Available on GitHub.

  • Install: Download from GitHub - search "XClicker Linux auto clicker"
  • Compatible with: Ubuntu, Fedora, Arch, Debian (X11 only)

AutoKey (Keyboard + Mouse Macros)

AutoKey is a Python-based macro tool for Linux that handles both keyboard and mouse automation. Available in apt and pip. Good for users who need keyboard + click combinations, not just simple mouse clicking.

sudo apt install autokey-gtk

Wayland Auto Clickers

ydotool

ydotool is the Wayland equivalent of xdotool. It uses the Linux kernel's uinput interface to inject input events at a level below the display server. This means it works on both X11 and Wayland.

# Install (Ubuntu 22.04 and later)
sudo apt install ydotool
# Basic left click
ydotool click 0xC0
# Auto-click loop
while true; do ydotool click 0xC0; sleep 0.1; done
# Add user to input group if needed
sudo usermod -aG input $USER

Note: ydotool may require adding your user to the "input" group (see last command above). Log out and back in after running it.

Download XClicker (GUI Auto Clicker for Linux)

XClicker is a free, open source GUI auto clicker for X11 Linux desktops. Download releases from GitHub - no command line needed for basic use.

You will be taken to github.com

GUI vs. Command-Line

Command-Line (xdotool, ydotool)

More flexible and scriptable. Better for complex automation. Requires basic terminal comfort.

GUI (XClicker)

Easier for simple interval clicking. No scripting knowledge needed. X11 only.

On other platforms? See our guides for Windows, Mac, and Chromebook, or browse every option in the auto clicker directory. To verify your setup fires at the interval you configured, point it at the clicker counter.

Frequently Asked Questions