AutoKey AutoKey tool for keyboard-driven desktop automation or reusable text expansion.
Overview AutoKey is an open-source desktop automation utility for Linux X11 sessions. It combines reusable text phrases with Python scripts, activated through abbreviations, hotkeys or menus. Its platform requirement is significant: the project warns that it does not function correctly when Wayland replaces Xorg.[1] [2]
Contents Text phrases and triggers A phrase can insert a block of text, while an abbreviation or key combination selects when it runs. Phrases can also contain dynamic placeholders for values such as the current date. Folders organize phrases and scripts, allowing one collection to serve repeated writing tasks across applications instead of duplicating snippets in each editor.[2]
Python automation Scripts are Python programs that can launch applications, manipulate windows and send keyboard or mouse input. AutoKey supplies APIs for common desktop interactions, while Python provides the broader programming environment. A shared script is consequently executable automation, not merely a text template, and its behavior depends on the code and available dependencies.[2] [3]
Sending text and filtering The engine API offers different phrase-delivery modes, including simulated typing and clipboard-based pasting. Window filters use regular expressions against titles or application class information, and a phrase can require confirmation before expansion. These options help adapt a snippet to the target application rather than assuming one insertion method works identically everywhere.[3]
Configuration migration The beginner guide describes each phrase or script as a body file plus associated metadata. Both parts need to move together to preserve the item and its trigger configuration. It also notes that configuration directories are not continuously rediscovered in the described workflow, so copying files alone may not immediately refresh the running application.[2]
Substitution considerations AutoKey can substitute for Espanso for reusable text and scripted expansions on Linux X11. It offers a Python-centered automation model and different configuration files. Espanso's other platforms and experimental Wayland path are outside that substitution, and existing snippet definitions require adaptation rather than being assumed directly compatible.[1] [3] [4] [5]
References AutoKey Linux X11 requirement; Wayland limitation; Python3; GPLv3
vendor · retrieved 2026-10-07 AutoKey beginner guide Phrases, Python scripts, hotkeys and body/metadata file pairs
vendor · retrieved 2026-10-07 AutoKey engine API Send modes; window filters; phrase creation and confirmation
vendor · retrieved 2026-10-07 Espanso Cross-platform text expansion; GPL3; search bar and scripts
vendor · retrieved 2026-10-07 Espanso Linux support Separate X11 and Wayland installation paths
vendor · retrieved 2026-10-07 Also included: 1 capabilities and 0 substitute relationships. Check substitutes in section 1 and capabilities in section 3.