LinuxAlternative
xinputLinux vs X-Mouse Button ControlWindows

xinput als Linux-Alternative zu X-Mouse Button Control

Aktualisiert am

Unser Fazit

xinput is a solid replacement for X-Mouse Button Control if you're comfortable with the command line and don't need a GUI. It lets you remap mouse buttons, apply changes per device, and persist configurations via scripts. However, it lacks built-in window-specific rules — you’ll need external tools like wmctrl or xdotool to match X-Mouse’s context-aware behavior. It works well across reboots when scripted properly and supports multiple mice. Best suited for users who want lightweight, scriptable control without a GUI, but it won’t satisfy those wanting point-and-click configuration or per-application profiles out of the box.

Funktionsabdeckung65%
Lizenz
MIT
Preis
Kostenlos
Aktuelle Version
1.6.4
Bewertung
—

Was gleich funktioniert

  • Both allow remapping of mouse buttons to different functions
  • Support configuration for multiple connected mice
  • Can modify input behavior at runtime without rebooting
  • Enable persistent changes through startup scripts
  • Work at the system level, affecting all applications

Was anders ist

  • xinput has no GUI; all configuration is command-line based
  • No native support for triggering actions based on active window or app
  • Does not support simulating keystrokes or running commands by itself
  • Relies on external scripting for complex logic and persistence
  • Less accessible for users unfamiliar with shell scripting

Ihre X-Mouse Button Control-Dateien öffnen

xinput does not support importing or exporting configuration files from X-Mouse Button Control. The two tools use entirely different formats and approaches. There is no known converter or compatibility layer. You must manually translate button mappings and conditions into xinput commands and shell scripts. Window-specific rules in X-Mouse require additional tools like xdotool or devilspie to replicate on Linux.

Von X-Mouse Button Control zu xinput wechseln – Schritt für Schritt

  1. Identify your mouse with 'xinput list' and note its ID or name
  2. Use 'xinput get-button-map' to view current button layout
  3. Remap buttons using 'xinput set-button-map [id] [mapping]'
  4. Test window-specific behavior using xdotool to detect active window
  5. Write a startup script to reapply settings on boot
  6. Use udev rules or desktop autostart for full persistence

Wichtige Funktionen von xinput

  • Auflistung aller von X11 erkannten Eingabegeräte
  • Anzeige detaillierter Eigenschaften eines bestimmten Geräts
  • Änderung von Geräteeigenschaften (z. B. Tastenzuordnung, Beschleunigung)
  • Aktivieren oder Deaktivieren von Geräten zur Laufzeit
  • Interaktives Testen von Geräteereignissen
  • Unterstützung für Multitouch und erweiterte Eingabegeräte
  • Skriptfähig für Automatisierung und Nutzung beim Start

xinput unter Linux installieren

Ubuntu / Mintsudo apt install xinput
Debiansudo apt install xinput
Fedorasudo dnf install xinput
Arch / Manjarosudo pacman -S xorg-xinput
openSUSEsudo zypper install xinput

Häufige Fragen

Can xinput remap buttons differently depending on which app is active?

Not directly. xinput applies system-wide changes. To change mappings per app, you need to combine it with a window watcher script using xdotool or similar tools.

Does xinput support simulating keystrokes like X-Mouse Button Control?

No. xinput only remaps buttons. To simulate keystrokes, use xdotool or xte alongside xinput in scripts.

Will my xinput settings survive a reboot?

Only if you add the commands to your startup scripts. Use ~/.xprofile, ~/.xinitrc, or desktop environment autostart entries to restore settings.

2 weitere Alternativen zu X-Mouse Button Control

Alle Alternativen zu X-Mouse Button Control

xinput bewerten

Als Erste(r) bewerten
Guter Ersatz für X-Mouse Button Control? 9