xbindkeys as a Linux alternative to BetterTouchTool
Updated
Our verdict
xbindkeys is a poor direct replacement for BetterTouchTool, covering only a fraction of its functionality. It handles basic global keyboard and mouse button bindings to commands, but lacks gesture support, window management, and visual automation triggers. It is suitable only for users who need simple, static hotkey bindings on X11 and do not require the complex, context-sensitive workflows that define BetterTouchTool. For a true alternative, you must combine multiple tools like Input Remapper for gestures and a tiling window manager for layout control.
- License
- GPL-2.0
- Price
- Free
- Latest version
- 1.8.7
- Rating
- —
What works the same
- Global keyboard shortcut remapping
- Binding input events to shell commands
- Low-latency input handling for basic keys
- Configuration via text files or scripts
What is different
- No support for trackpad or mouse gestures
- Lacks window management and tiling capabilities
- No context-sensitive automation triggers or UI
- Does not support complex scripting or plugin ecosystems
- X11 only, no Wayland support
Opening your BetterTouchTool files
xbindkeys does not support importing or exporting BetterTouchTool configuration files. There is no native mechanism to convert BetterTouchTool profiles into xbindkeys text format. You will need to manually recreate your shortcuts and commands in the xbindkeysrc file, mapping each BetterTouchTool action to a corresponding shell command or key sequence.
Switching from BetterTouchTool to xbindkeys, step by step
- Install xbindkeys from your distribution's package manager.
- Generate a default configuration file using 'xbindkeys -d > ~/.xbindkeysrc'.
- Edit the configuration file to map desired key combinations to shell commands.
- Test bindings using 'xbindkeys --verbose' to verify event capture.
- Launch xbindkeys in the background or add it to your session startup scripts.
- Implement additional tools like Input Remapper for gesture support.
Key features of xbindkeys
- Bind any key or mouse button to a shell command
- Simulate key sequences and key presses
- Supports modifiers like Ctrl, Alt, Shift, and Super
- Configurable via a simple text file
- Works with X11 display servers
- Low resource consumption
- Can trigger scripts or applications instantly
How to install xbindkeys on Linux
sudo apt install xbindkeyssudo apt install xbindkeyssudo dnf install xbindkeyssudo pacman -S xbindkeyssudo zypper install xbindkeysFrequently asked questions
Does xbindkeys work on Wayland?
No, xbindkeys relies on X11 input handling and does not function on Wayland compositors. You would need to use a Wayland-compatible alternative like ydotool or Input Remapper.
Can xbindkeys handle mouse gestures?
No, xbindkeys only binds specific mouse buttons and keys. It cannot interpret drag gestures or multi-touch trackpad movements. You need a dedicated gesture tool for that.
Is xbindkeys active and maintained?
Yes, xbindkeys is active and packaged in major distributions like Debian, Fedora, and Arch. While development is slow, it remains stable for its specific use case.