ydotool as a Linux alternative to BetterTouchTool
Updated
Our verdict
ydotool is not a direct replacement for BetterTouchTool, but a critical component in a modular Linux alternative. It handles raw input simulation—mouse movement and key presses—but lacks the GUI, gesture recognition, and window management features BetterTouchTool provides. You will need to pair it with tools like Input Remapper or custom scripts to achieve similar results. It is best suited for advanced users comfortable with the command line who want precise, low-latency control over input devices without a heavy desktop environment overhead.
- License
- GPL-3.0
- Price
- Free
- Latest version
- 1.0.4
- Rating
- —
What works the same
- Simulates mouse and keyboard input
- Supports global automation triggers via scripting
- Low-latency input handling
- Open-source and free
What is different
- No graphical user interface for configuration
- Lacks native trackpad gesture recognition
- No built-in window management or tiling features
- Requires manual scripting for complex logic
- No plugin system or community repository
Opening your BetterTouchTool files
ydotool does not support opening or exporting BetterTouchTool configuration files. Since BetterTouchTool uses a proprietary format for its profiles and scripts, there is no direct migration path. You will need to manually recreate your automations using ydotool commands and shell scripts.
Switching from BetterTouchTool to ydotool, step by step
- Install ydotool via your package manager
- Identify the key sequences or mouse actions you want to simulate
- Write shell scripts using ydotool commands for each task
- Bind these scripts to global shortcuts using a tool like xbindkeys or Input Remapper
- Test the scripts to ensure low-latency execution
- Iterate on the scripts to refine timing and accuracy
Key features of ydotool
- Send arbitrary key sequences
- Simulate mouse movement and button clicks
- Support for relative and absolute mouse coordinates
- Works with standard input devices via uinput
- Can be called from shell scripts
- Lightweight binary with no heavy dependencies
How to install ydotool on Linux
sudo apt install ydotoolsudo dnf install ydotoolsudo pacman -S ydotoolsudo zypper install ydotoolFrequently asked questions
Can ydotool handle trackpad gestures?
No, ydotool only simulates input. It does not interpret gestures. You need a separate tool like Input Remapper to detect gestures and trigger ydotool commands.
Is ydotool easy to use for beginners?
Not really. It is a command-line tool with no GUI. You must be comfortable writing shell scripts and understanding Linux input devices.
Does ydotool work with Wayland?
Yes, ydotool uses uinput, which works with both X11 and Wayland. However, some Wayland compositors may restrict input simulation for security reasons.