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 comments(Mind you, this would be a good deal harder to implement in Wayland, where possible at all, since Wayland is predicated around a security model where this kind of thing is deliberately not supported. You can either go with something compositor-specific, and I don’t know if this is possible for all compositors, though I get the impression that it should be possible for at least wlroots; or work more the way ydotool does, where possible, in basically providing a fake input device.)
You touched a good point. The one and only metric to measure success in software is the number of active users. However, i do not know of any statistics Xorg vs. Wayland users. Personally, i have no reason to switch away from X11. In contrary, it was and is a loyal companion now already for decades. I trust the Lindy effect that X11 will stay relevant for a very long time. So kudos for the OP for creating this!
Continue this thread — 2 replies
If we figure out that this kind of automation is impossible on Wayland, I think it should still be possible to hook into the raw keyboard events with kbd and such, no? Requires root though.
At the moment, Wayland is used only by a minority of users, and most are still on X11. Sure, distros may often default to Wayland, yet almost no distro has switched the user's default upon upgrading.
Most users aren't new users or installing on new systems, and even for new users X is occasionally still default (e.g. every existing BSD, some KDE distros).
I estimate it's another 5 years before another new computer cycle and Wayland maturing will make X less relevant. 15-25-more years before we could even consider removing support.
I get some terrible screen tearing on X, especially when using OBS. On Wayland it's solid. With X/Wayland the best thing it can do is be invisible.
Continue this thread — 1 reply
1. Not everyone knows what AutoHotkey is and what it does. I had to google it.
2. Not everyone speaks english. Diving into a description that includes words like "fault tolerant, extensible, high availability" so infuriatingly confusing.
Look the words up in a dictionary. It's ok not to know and to learn but you shouldn't expect everyone to adapt to your lack of knowledge.
Continue this thread — 1 reply
But then again I would add (3) they're just buzzwords that don't actually tell you anything...
2. Those words aren't in the Readme so I'm a bit confused. I guess these were just examples though. I am not a native speaker either though... if you really think there's uncommon words to be found, I would welcome a PR.
Continue this thread — 3 replies
how do HNers make Windows not evil/terrible? Like, it tries to force you into creating a Microsoft account to install Windows, I hear it has ads in the OS, forces reboots when you don't want them, and appears to generally treat its users with contempt and as a resource to exploit.
Do you need an MSDN subscription to get LTSC? Any third-party tools that try to fix the horror show?
Such a shame to have a solid platform run for evil motives.
- WSL for command line stuff, python, rust
- bleachbit for clean up of files, be careful and pay attention obviously
- Immediately switch over to firefox (from Edge) and have brave installed as a backup
- I just don't use the microsoft store at all unless I need to
- malwarebytes for nightly scans, avira free as a virus program instead of defender
- Shutup10++ to turn off most of the privacy invasion antifeatures of windows
- Make notepad++ or gvim default editor
- You can delay or turn off updates in the settings. I just live with the reboots though. I have a fast machine and most programs will have session save features anyway.
That's mostly enough to make it a decent environment.
For things that are relatively useful to keep like Windows Explorer, I try the numerous registry tweaks that remove features I don't like (for example, OneDrive integration). Couple this with Tron and similar scripts.
Installing an LTSC edition would obviously be nice, but it's hard and expensive to get to get (see [1] - the general consensus seems to be that you need to go through a VAR, and then buy an LTSC license alongside some cheap shopping basket fillers to get above the minimum number of licenses limit). When it's available, it makes the above "paving over" process much easier than a retail/pro edition.
[0]: https://github.com/dremin/RetroBar
[1]: https://answers.microsoft.com/en-us/windows/forum/all/how-do...
All comments shown.
Couldn't load more comments. Check your connection and try again.