Show HN: AutoHotkey for Linux (opens in a new tab)github.com
500 pointsthis is the first functional reimplementation of AutoHotkey [1] for Unix-like systems, as far as I am aware. Half the commands are still missing, but everything important is done, as I have worked a lot on it over the past two months. Converting scripts into stand alone binaries is also supported. Hope this will find some adoption eventually. :-) - This implementation focuses on v1.0-like classic syntax from 2004 (!). This is a significant subset of the popular current v1.1 syntax from Windows (AHK_L). The reason this does not (yet?) target the full Windows spec is how complex it is. Notably, there's also another ongoing project which targets v2 called KeySharp [2].
If you are not aware of what AHK is, it is an easy but capable scripting language for automation and Hotkeys, and all sorts of visual things like GUIs.
If you want to learn more, there plenty of info on the repo, the docs html, and there's an active AHK Discord too, and I am personally also checking the forums and HN of course.
[1] https://www.autohotkey.com/
[2] https://bitbucket.org/mfeemster/keysharp/
Comments (183) 43 threads
Earlier commentsI've always looked for software similar for Linux but nothing comes close.
The documentation is second to none as well.
Anyway I'm really happy to see this, well done I hope it all goes well.
https://www.dcmembers.com/skrommel/downloads/
And here is my script file (10+ years in the making!), some are the same as from your site (like toggle on top) but with minor improvements:
https://gist.github.com/raveren/bac5196d2063665d2154
One neat feature is that you can bundle a bunch of scripts with the runtime into a single file binary for easy distribution. If AutoHotkey runs on multiple operating systems, maybe combining this with cosmopolitan libc into an 'αcτµαlly pδrταblε εxεcµταblε' would let you bundle a script and use it across different OSes. That'd be pretty fun.
[1] https://github.com/tinku99/ahkx
Half of these crap can be solved with xdotool/wmctrl and some scripts. Everything else it's maked to be scripted. Cron, package managers, X11 events, notifications...
One guy posted here an smart automation menu sequence to create a jar from a class within Eclipse. Any competent Unix programmer would create that for Scite, Gvim, Emacs or whatevers with an external script (man java and man javac, FFS) in seconds.
All comments shown.
Couldn't load more comments. Check your connection and try again.