#AHK_X11

meΒ·taΒ·phil, dermetaphil@chaos.social
2023-10-17

πŸ’‘ #TIL there's another effort going on to bring inglorious

#AutoHotkey to 🐧 GNU/‬#Linux!
(#X11, that is.)

Meet #AHK_X11 πŸ₯³

🌐 github.com/phil294/AHK_X11
πŸ“– phil294.github.io/AHK_X11

☝️ Caveat: It only supports legacy #AHK 1.1 syntax and does not aim for 100% feature parity/compatibility, but should enable you to use most of your #hotkeys and #hotstrings #crossplattform! (Sync on your own).

#scripting #automation #DesktopAutomation #KeyboardWarriors #xdotool #gtk #AutoIt #AutoKey #AlternativeTo

A Microsoft Windows 95 themed message box titled "AutoHotkey for Linux" with text "AHK_X11" and an OK buttonExcerpt from the AHK_X11's README:

HK_X11 is a very basic but functional reimplementation AutoHotkey v1.0.24 (2004) for Unix-like systems with an X window system (X11), written from ground up in Crystal, with the eventual goal of 80% feature parity, but most likely never full compatibility. Currently about 80% of work of getting there is done, but even at 100%, because of the old version of the spec (at least for now), many modern AHK features are missing, especially expressions (:=, % v), classes, objects and functions, so you probably can't just port your scripts from Windows. More to read: Project goals

This AHK is shipped as a single executable native binary with very low resource overhead and fast execution time. You can use AHK_X11 to create stand-alone binaries with no dependencies, including full functionality like Hotkeys and GUIs. (just like on Windows)

Please also check out Keysharp, a WIP fork of IronAHK, another complete rewrite of AutoHotkey in C# that tries to be compatible with multiple OSes and support modern, v2-like AHK syntax with much more features than this one. In comparison, AHK_X11 is a lot less ambitious and more compact, and Linux only.

Features:

βœ“ Hotkeys
βœ“ Hotstrings
βœ“ Key remappings
βœ“ Window management
βœ“ Send keys
βœ“ Control mouse
βœ“ File management
βœ“ GUIs
βœ“ One-click compile script to portable stand-alone executable
βœ“ Scripting: labels, flow control: Loop, IfWinExists, etc.
βœ“ Window Spy
βœ“ Context menu and compilation just like on WindowsAnother screenshot of the applications README showing code snippets for AutoHotkey syntax examples

Client Info

Server: https://mastodon.social
Version: 2025.04
Repository: https://github.com/cyevgeniy/lmst