Live data from Hacker News

AutoHotKey V2 (Breaking Upgrade)

autohotkey.com

121–124 of 124 posts

Re: AutoHotKey V2 (Breaking Upgrade)

#121

Would a tool like Auto hotkey if it were implemented on Linux work with Wayland?

There are a lot of tools available which allow to generate/automate mouse and keyboard events within Wayland. Here's an example (I use another ydotool and another one, on another machine; don't even remember what it is called) [1]. It describes how they require a udev rule and use /dev/uinput

Examples I use: 3 finger swipe to left/right switches desktop in Sway, rebinding caps to esc.

[1] https://crates.io/crates/tfc

Re: AutoHotKey V2 (Breaking Upgrade)

#122
post #13

AHK is what keeps me on Windows

On MacOS there's a few options: Keyboard Maestro, BetterTouchTool, Karabiner, Hammerspoon. Most of them aren't free and I haven't found any of them to be better than AHK, but they do the job well enough that it's certainly not a reason to look back fondly to Windows despite my lack of enthusiasm for MacOS.

Its very easy to add a feature with Karabiner Elements as it can download scripts from a repo. Hammerspoon too, has a lot of snippets and scripts available (I haven't used BetterTouchTool as I avoided touchbar Macs). That's one of the strong points with AHK. I look up a syntax or example code and boom (and I am a lousy programmer so if it works for me, that says something).

But I got AHK running in Wine on Linux, and on another Linux machine with Wayland I got simple rebinds and simple scripts working with keyboard and mouse (which I could extend with say Python scripts from AutoKey?). Its more difficult on Linux, but its possible.

Re: AutoHotKey V2 (Breaking Upgrade)

#123
post #45
post #7

As someone who has been using Macs since 2006 and recently moved to Windows, I cannot recommend AHK enough.

I only have a single AHK script (I don't use windows much) and it specifically maps WinKey + Q to close a window and WinKey + H to hide a window. Windows is basically unusable for me without this convenience script!

Would you mind sharing this script?
Post reply on HN