EN
返回档案库

档案库 · 开发与企业工具 · 产品决策 · 2022

AHK_X11:Windows AutoHotkey 的个人 Linux 移植版找到受众

一位开发者重写了 2004 年版 AutoHotkey 以适配 Linux X11,发布当日即在 Hacker News 获 500 分,至今仍以单个 AppImage 分发。

AHK_X11 (phil294/AHK_X11)

它在赌什么从 Windows 转用 Linux 的 AutoHotkey 用户会接受 v1.0.24(2004 版)的精简移植,只要日常热键、热字符串和窗口命令能正常工作。已上线

做的是什么生意

AHK_X11 is a free open-source automation runtime that reimplements classic AutoHotkey for Linux X11, covering hotkeys, hotstrings, key remapping, mouse and window control, GUI dialogs and one-click script compilation in a single native binary.

起因

The developer phil294 wrote a ground-up reimplementation of AutoHotkey v1.0.24 (the 2004 spec) in Crystal for X11-based Linux, aiming to bring large parts of the Windows automation language to Linux with roughly 80% feature parity instead of chasing the full modern v1.1 or v2 spec. On 2022-08-30 he posted it to Hacker News as Show HN: AutoHotkey for Linux, calling it the first functional reimplementation of AutoHotkey for Unix-like systems he was aware of.

经过

The launch post drew 500 points and 183 comments. phil294 argued that complete AHK unifies what Linux splits across xbindkeys, xdotool, wmctrl and assorted GUI and popup tools, and that his context-menu, no-terminal workflow made the tool accessible to people migrating from Windows who could reuse their AHK skills; commenters compared it with Keysharp and IronAHK, debated xdotool equivalents, and asked whether automation could ever work under Wayland.

结果

As of 2026-09-05 the project is still live and maintained: the GitHub repo shows about 1,000 stars, 845 commits and 28 forks, releases ship as AppImages, and Arch AUR packages exist. It remains X11-only, with Wayland still listed as unsupported, and the README stays candid that scripts from modern Windows AutoHotkey usually need modifications.

背景

AHK_X11 是一个免费开源项目,用 Crystal 从零重写了 AutoHotkey v1.0.24(经典 2004 年规范),使其能在带 X11 显示的 Linux 上运行。开发者 phil294 一个人构建了单个原生 AppImage,涵盖热键、热字符串、按键重映射、鼠标和窗口控制、GUI 对话框和脚本编译,定位是把 Windows 最流行的自动化语言的一大部分带到 Linux。

2022-08-30 他在 Hacker News 上发布,称这是 AutoHotkey 在 Unix 系系统上的首个可运行重实现,并坦言尚有一半命令缺失,但重要的功能都已齐备。帖子获得 500 分和 183 条评论:作者认为,完整的 AHK 能统一 Linux 上分散的 xdotool、xbindkeys 及 GUI 工具,让 Windows 用户能迁移脚本和习惯;评论者比较了同类项目,质疑 Wayland 支持,并探寻 ControlClick 等差距。

方案的核心是,转向 Linux 的 Windows 高级用户会接受对经典规范的紧凑移植,而不是等待完整对等。截至 2026-09-05,仓库仍维护中,约 1,000 星和 845 次提交,依然只支持 X11,依然免费:是小众,但持久。

这件事要成立,得有什么

  • AutoHotkey 是 Windows 上高级用户离不开的脚本工具,Linux 上的替代品却分散在 xdotool、xbindkeys 和窗口工具中,没有能统一起来的方案,更谈不上 AutoHotkey 的易用性。
  • 锁定 2004 年的 v1.0.24 经典语法,意味着海量旧脚本都能部分迁移,这给转投者一个实实在在的理由,而不只是演示。
  • Windows 风格的功能,包括 GUI 安装向导、右键菜单、Window Spy 和编译为可执行文件,让用户觉得它就是自己熟悉的 AutoHotkey。
  • 已有热度佐证:2022-08-30 的 Show HN 获得 500 分和 183 条评论,2026-09-05 查看仓库约有 1,000 星和 845 次提交。

可借鉴之处

在熟悉的地盘迎接迁移用户:重新实现他们熟悉的旧工作流,比承诺完整的现代对等更有吸引力,因为肌肉记忆会带动采用。

后续进展

AHK_X11 从未发展成公司或收费产品:截至 2026-09-05,仍是单人开源项目,以 AppImage 免费分发,附带单页 HTML 文档站、Arch AUR 包和 Discord 频道。功能范围一直保持稳定——经典 v1 命令加上少量 AHK_X11 专有扩展,README 仍把 Wayland 和 ImageSearch 类功能列为未来事项。小众人群持久且仍在维护,但采用规模有限,完整的现代兼容仍遥不可及。

资料来源

发现哪里写错了?告诉我们。

轮到你了

你刚读完一家。说说你在做什么,看看谁在赌同一件事。

免费账号 · 3 次免费提问 · 不用绑卡

相关案例