I'm looking for an autoclicker or a program that can record mouse behavior on Linux. I found xclicker on Flathub, but it was labeled as potentially unsafe. Does that mean it might be malicious, or is it just a standard warning? I'm cautious about installing unknown apps since I've had some bad experiences in the past. Any suggestions for alternative programs or advice on using xclicker?
5 Answers
The "potentially unsafe" label is probably because xclicker can emulate user input across applications, which is typical for autoclickers. Just a heads up, xclicker only works with the older X11 windowing system. If you're using X11, you should be fine, but if you’re on Wayland, xclicker might not interact with all your apps. Look for autoclickers that specifically mention Wayland support if that’s your setup.
I’ve used xclicker and it functions well for me, so it might still suit your needs!
Why not consider using a physical autoclicker? They’re available on places like Amazon for just a couple of bucks!
You could opt for a simple terminal command like `while true; do xdotool click 1; done`, but make sure you're aware that this is primarily for X11 environments.
Just a warning, that's likely an X11 solution too; it won’t work with Wayland.
If you don’t mind scripting, you can use a language model to create a bash script that acts as a wrapper for xdotool. I did this to get through some grinding in Oblivion! Would love to find a simple autoclicker as an alternative, though.
I currently use xdotool on X11. If you're on Wayland, check out ydotool; it should work under that environment.
If you're comfortable with Python, you might want to try using the 'pynput' library. It can handle mouse clicks and is pretty straightforward to set up.

I'm on Wayland too—thanks for the heads up! I'll make sure to find an autoclicker that works with it.