xbindkeys como alternativa Linux ao X-Mouse Button Control
Atualizado em
Nossa avaliação
xbindkeys is a solid replacement for X-Mouse Button Control if you're comfortable with command-line configuration and scripting. It handles remapping mouse buttons and triggering actions system-wide, including running commands and simulating keystrokes. While it lacks built-in GUI tools and per-application profiles, its text-based config is powerful and persistent. It works well for users who want lightweight, reliable mouse button remapping on X11. Not ideal for those who prefer point-and-click setup, but excellent for tinkerers and minimalists.
- Licença
- GPL-2.0
- Preço
- Grátis
- Versão mais recente
- 1.8.7
- Avaliação
- —
O que funciona igual
- Both allow remapping of mouse buttons to different actions
- Support triggering commands or simulated keystrokes
- Work across reboots with saved configuration
- Support multiple input devices
- Allow use of modifiers like Ctrl, Alt, Shift in bindings
O que muda
- xbindkeys has no GUI; configuration is done manually in a text file
- X-Mouse Button Control offers per-application profiles; xbindkeys requires scripting to achieve similar behavior
- xbindkeys only works on X11, not Wayland
- No built-in preview or testing interface in xbindkeys
- X-Mouse Button Control supports more advanced mouse hardware features out of the box
Abrindo seus arquivos do X-Mouse Button Control
xbindkeys does not support importing X-Mouse Button Control configuration files. The two programs use entirely different formats and approaches. There is no known converter or tool to automatically translate .cfg or .xml files from X-Mouse Button Control into xbindkeysrc format. You must manually recreate bindings based on the logic of the original setup.
Trocando o X-Mouse Button Control pelo xbindkeys, passo a passo
- Install xbindkeys using your distro's package manager (e.g., sudo apt install xbindkeys)
- Generate a default config with xbindkeys --defaults > ~/.xbindkeysrc
- Use xbindkeys -k to detect mouse button codes
- Edit ~/.xbindkeysrc to map buttons to commands or key simulations
- Add xbindkeys to your desktop session startup
- Test and adjust bindings as needed
Principais recursos do xbindkeys
- Vincular qualquer tecla ou botão de mouse a um comando shell
- Simular sequências de teclas e pressionamentos
- Suporta modificadores como Ctrl, Alt, Shift e Super
- Configurável via um arquivo de texto simples
- Funciona com servidores de exibição X11
- Baixo consumo de recursos
- Pode disparar scripts ou aplicativos instantaneamente
Como instalar o xbindkeys no Linux
sudo apt install xbindkeyssudo apt install xbindkeyssudo dnf install xbindkeyssudo pacman -S xbindkeyssudo zypper install xbindkeysPerguntas frequentes
Can xbindkeys distinguish between different mice?
Yes, xbindkeys can differentiate between multiple mice by using device-specific identifiers in conjunction with tools like xinput or udev rules, though it requires manual setup.
Does xbindkeys work with laptops or touchpads?
It works with any input device recognized by X11, but is best suited for external mice. Touchpad remapping is possible but often better handled by libinput or xinput.