LinuxAlternative
xdotoolLinux vs AutoHotkey (Linux port)Windows

xdotool, alternative Linux à AutoHotkey (Linux port)

Mis à jour le

Notre avis

xdotool is a solid choice for users who need basic input and window automation on Linux, especially if comfortable with shell scripting. It handles key presses, mouse actions, and window control reliably under X11. However, it lacks built-in text expansion, GUI automation, and persistent hotkey monitoring—features central to AutoHotkey. It's best suited for users already scripting in bash or combining it with tools like AutoKey or systemd user services. Not ideal for those wanting a single, all-in-one automation environment like AutoHotkey provides on Windows.

Couverture fonctionnelle60%
Licence
GPL-3.0
Prix
Gratuit
Dernière version
4.20260303.1
Note
—

Ce qui fonctionne pareil

  • Simulates keyboard and mouse input
  • Can move, resize, and focus windows
  • Supports modifier keys (Ctrl, Alt, Shift)
  • Allows automation via scripts
  • Can query and act on window properties

Ce qui change

  • No native hotkey daemon—requires external setup to trigger scripts
  • No built-in text expansion or snippet support
  • Limited GUI automation (no control over buttons or menus inside apps)
  • No persistent scripting environment—must be combined with other tools
  • Only works on X11, not Wayland

Ouvrir vos fichiers AutoHotkey (Linux port)

xdotool does not support AutoHotkey script files (.ahk). There is no direct conversion or import feature. AutoHotkey scripts would need to be manually rewritten as shell scripts or integrated via external tools like AutoKey, which can interpret some AutoHotkey-like logic. No known tools automate this translation reliably.

Passer de AutoHotkey (Linux port) à xdotool, étape par étape

  1. Install xdotool via your package manager (e.g., sudo apt install xdotool on Debian/Ubuntu)
  2. Rewrite key remapping and input simulation logic as shell scripts using xdotool commands
  3. Use a tool like AutoKey to trigger xdotool scripts via hotkeys or phrases
  4. Combine with wmctrl or sleep for advanced window or timing control
  5. Test scripts under X11; they will not work on Wayland without adaptation

Fonctionnalités clés de xdotool

  • Simuler les frappes clavier et les clics souris
  • Déplacer, redimensionner et focaliser les fenêtres
  • Envoyer des événements de fenêtre tels que fermer ou minimiser
  • Interroger les propriétés des fenêtres (taille, position, titre)
  • Attendre l'apparition ou la disparition d'une fenêtre
  • Exécuter des commandes après un délai
  • Prise en charge des modificateurs (Ctrl, Alt, Shift)
  • Intégration avec les scripts shell

Installer xdotool sous Linux

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

Questions fréquentes

Can xdotool run scripts when I press a hotkey?

Not directly. xdotool has no built-in hotkey listener. Use AutoKey or a desktop environment shortcut to run xdotool commands on keypress.

Does xdotool work on Wayland?

No. xdotool relies on X11 internals and does not function properly under Wayland. Consider alternatives like ydotool for Wayland support.

Can I remap keys permanently with xdotool?

Not easily. xdotool sends input but doesn’t remap keys at the system level. Use xmodmap, setxkbmap, or your desktop environment for persistent remapping.

4 autres alternatives à AutoHotkey (Linux port)

Toutes les alternatives à AutoHotkey (Linux port)

Notez xdotool

Soyez le premier à noter
Bon remplaçant de AutoHotkey (Linux port) ? 10