xdotool como alternativa Linux a AutoHotkey (Linux port)
Actualizado el
Nuestra opinión
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.
- Licencia
- GPL-3.0
- Precio
- Gratis
- Última versión
- 4.20260303.1
- Valoración
- —
Lo que funciona igual
- 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
Lo que cambia
- 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
Abrir tus archivos de 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.
Pasar de AutoHotkey (Linux port) a xdotool, paso a paso
- Install xdotool via your package manager (e.g., sudo apt install xdotool on Debian/Ubuntu)
- Rewrite key remapping and input simulation logic as shell scripts using xdotool commands
- Use a tool like AutoKey to trigger xdotool scripts via hotkeys or phrases
- Combine with wmctrl or sleep for advanced window or timing control
- Test scripts under X11; they will not work on Wayland without adaptation
Funciones clave de xdotool
- Simular pulsaciones de teclado y clics del ratón
- Mover, redimensionar y enfocar ventanas
- Enviar eventos de ventana como cerrar o minimizar
- Consultar propiedades de la ventana (tamaño, posición, título)
- Esperar la aparición o desaparición de una ventana
- Ejecutar comandos después de un retardo
- Soporte para modificadores (Ctrl, Alt, Shift)
- Integración con scripts de shell
Cómo instalar xdotool en Linux
sudo apt install xdotoolsudo apt install xdotoolsudo dnf install xdotoolsudo pacman -S xdotoolsudo zypper install xdotoolPreguntas frecuentes
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.