LinuxAlternative

Linux · Accessories

AutoKey

AutoKey is a desktop automation tool for Linux that lets you create scripts and hotkeys to automate repetitive tasks.

Open sourceFree
Be the first to rate
License
GPL-3.0
Latest version
0.96.0

What is AutoKey?

AutoKey was first released in 2011 and has been steadily maintained by a small community of developers. It uses Python for scripting, which means you can write complex automation sequences with a language many users already know. The tool has reached a mature state, with frequent updates and a stable API.

It targets power users who want to automate keyboard shortcuts, text expansion, and simple macros. Unlike Windows PowerToys, which bundles many utilities, AutoKey focuses solely on scripting and hotkeys, so it stays lightweight.

Compared to PowerToys, AutoKey feels more flexible but requires a bit more setup. You write Python scripts and bind them to keys, whereas PowerToys offers a GUI wizard for most tasks. Once you get used to the script editor, the workflow is very efficient.

Best for: Users who need advanced keyboard automation and are comfortable writing Python scripts.

Key features of AutoKey

  • Python-based scripting engine
  • Global hotkeys and key sequences
  • Text expansion and clipboard management
  • Script grouping and tagging
  • Integration with X11 and Wayland
  • Run scripts on startup or on demand

Pros

  • Free and open source
  • Highly customizable via Python
  • Active community and documentation
  • Works on multiple Linux distributions

Cons

  • Learning curve for Python scripting
  • No built-in GUI for script creation
  • Limited support for Wayland in some versions

Windows programs AutoKey replaces

How to install AutoKey on Linux

Ubuntu / Mintsudo apt install autokey
Debiansudo apt install autokey
Fedorasudo dnf install autokey

Tips for Windows users

When moving from PowerToys to AutoKey, note that PowerToys’ text expansion files (.txt) can be imported as AutoKey scripts by wrapping the text in a simple Python function. Hotkey assignments are defined in AutoKey’s GUI, but you’ll need to re‑map any custom shortcuts. Workflow changes: PowerToys runs in the background; AutoKey scripts are launched via hotkeys or the system tray icon. Keep your scripts in the ~/.config/autokey directory to preserve settings across upgrades.

AutoKey: frequently asked questions

Is AutoKey compatible with Wayland?

AutoKey works with Wayland on recent distributions, but some keybinding features may require XWayland. Check the documentation for the latest compatibility notes.

Can I use AutoKey to automate GUI applications?

Yes, AutoKey can send keystrokes and mouse events to any window, but complex GUI automation may need additional libraries like pyautogui.

How do I update AutoKey on Debian?

Use your package manager: sudo apt update && sudo apt upgrade autokey-gtk or autokey-qt depending on your desktop environment.

Does AutoKey support scripting in languages other than Python?

No, AutoKey’s scripting engine is Python only; other languages are not supported.

Updated