The main barrier for me transitioning to Linux as my main OS is finding a suitable alternative to AutoHotKey (AHK) on windows. I use AHK for all kinds of automation but haven’t found a usable alternative in Wayland.

Thought I’d check here to see if anyone has any suggestions?

  • med@sh.itjust.works
    link
    fedilink
    arrow-up
    1
    ·
    3 days ago

    I’m on hyperland, and I’ve configured ydotool to do some of this work. It can move the mouse, enter keyboard shortcuts and do a bunch of things that autohotkey can, however it is by no means a complete solution, or one that comes with sensible defaults. It’s just a daemon and client, and you’ll need to set it up to do what you want.

    As far as I know there’s no record and replay function, though you could likely script one.

    Also, for triggering the scripts, you’ll need to set your Desktop’s keybindings to point to them.

    For me, it filled the requirements that it was launchable by systemd unit, as the user on login.

    I use it for a vairiety of tasks, but the primary one is typing out my clipboard as if I had pasted something. I rebound alt + shift + p to that, so I can paste windows login passwords or whatever in to Teamviewer/other stuff that doesn’t accept a paste command.