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?

  • Zucca@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    3
    ·
    6 hours ago

    Interesting…

    I’ve created another xkb layout (of which syntax is cryptic)… Then modified window manager hotkeys. Then there’s completely other configuration for virtual terminals. sigh

    keyd looks promising tool.

    • pathief@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      2 hours ago

      If you want to create keyboard layouts, keyd is very good for that. You can create several keyboard layers and use whatever key you want as a modifier.

      I use it to mimic the windows “US International with dead keys” layout that I’ve grown used to but it can do so much more.

  • vjurt6@lemmy.world
    link
    fedilink
    arrow-up
    13
    ·
    11 hours ago

    Hello, I had the same need. The best alternative I found is keymapper : https://github.com/houmain/keymapper You have tons of examples on the main page. The syntax is somehow similiar compared to ahk.

    I have yet to master mouseclick (issue with ydotool on KDE/wayland maybe), but everything else is working.

    I think this is the tool you are looking for, let us know what you tried :)

    • xuv@lemmy.blahaj.zone
      link
      fedilink
      arrow-up
      2
      ·
      6 hours ago

      I was just today looking for an AHK alternative for a new Ubuntu Studio system I recently set up, somehow I didn’t come across this one. It’s exactly what I need, specifically the support for application-aware and input-device-aware mappings. The cross platform support using the same scripts is also intriguing. I will be trying this out soon, thanks for suggesting it!

  • manxu@piefed.social
    link
    fedilink
    English
    arrow-up
    6
    arrow-down
    1
    ·
    12 hours ago

    KDE has a very powerful key binding subsystem. It’s a little complicated, but it allows for great freedom.

  • asciimage@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    edit-2
    13 hours ago

    Afaik you won’t find a single alternative, bit you’ll have to find multiple projects for specific features you’re looking for.

    For example: Kanata for key remaps, text expansion, mouse input and a whole bunch of other keyboard stuff.

    Most automation is done with shell scripts and command line utilities. So stuff like batch renaming you can do this way.

    Window automation is DE/WM specific.

    So if you could list your DE/WM and the specific kinds of automation, it will be easier to give suggestions.

  • Sivilian@lemmy.zip
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    9
    ·
    13 hours ago

    I would see what you could vibe code or just check if Linux can just do the automation your looking for built in. It depends on the desktop environment but I know KDE is very powerful if you are willing to put in the time.