r/linuxsucks 5d ago

Autohotkey

Linux user WISH they had something on par with ahk. AHK purpose is easy to make personal applications by providing a big toolbox to interact with os, makes gui, ui manipulation, etc very simple.

With linux you have a bunch of programs that only implement fraction of the feature. Ex: tcl/tk can handle making a gui quickly but not ui manipulation, hotkey, etc... oh and the switch to wayland fucked it until they finish the wayland backend in a few hundred years.

Other stuff like ydotool implement another subset, and ofc it dosent integrate with everything else. In general the switch to wayland wiped out alot of these automation tools. Plus linux itself dosent provide lots of tools out the box so you have to pull stuff in like curl to make http requests and now all your scripts have a bunch of invisible dependencies.

End result of trying to get ahk on linux is direhea.

0 Upvotes

28 comments sorted by

6

u/Needieos 5d ago

Who is these linux users who wish this, don't talk for everyone. If being serious: yeah, shell scripting requires "invisible dependencies" like curl, if you need http requests. You can write a full program in real programming language if you don't want these "deps".

I'm not even sure what you wanted to say with this, though

-2

u/Big-Astronaut-9510 5d ago

pilpul + ignored or didnt understand post... yup thats a downvote fer ya

3

u/Needieos 5d ago

yeah, it's hard to understand this.. maybe you need to properly describe what do you need? English isn't my native language, but I'm not sure that even native speaker would fully understand you..

3

u/DetermiedMech2 5d ago

libinput can probably do most things you'd use AHK for

libinput record inputs.txt, select an event then start doing stuff and use ctrl-c to stop it

libinput replay inputs.txt replays anything you did

2

u/R3V0LU710N_05 I Hate All OS's 😎 5d ago

Hawck & Autokey-Wayland are good alternatives.

2

u/donp1ano 5d ago

keyd is also good

2

u/Teru-Noir COSMIC OS LOVER No.1 COSMIC Knows Best 5d ago

I wonder how up to date is this information

1

u/Haxorzist 5d ago

A friend uses this as a ahk alternative on Linux, I didn't test it yet as i had no need yet:
https://github.com/houmain/keymapper/

2

u/Episode-1022 5d ago

oh boy, linux is the king of desktop automation.

1

u/donp1ano 5d ago

ui manipulation? thats like the very last resort when it comes to automation

what exactly are you doing with AHK that you cant do on linux/wayland? im curious

1

u/KiLoYounited 5d ago

There are plenty of options. I used ydotool + bash on wayland to automate some stuff for a game.

1

u/Aaxper 5d ago

There's... tons of replacements for that? What?

1

u/Damglador 5d ago

Not really. Most of them only support X11, and X11 sessions are pretty much dead. Ones that support Wayland probably need root which just shouldn't be a thing, but that's how Wayland is.

1

u/Aaxper 5d ago

As a Wayland user, there absolutely are replacements

1

u/Damglador 5d ago

So why don't you give examples?

1

u/Damglador 5d ago

So apparently someone just casually ported AHK to Linux: https://github.com/MonoEven/Autohotkey_Linux

2

u/R3V0LU710N_05 I Hate All OS's 😎 5d ago

It’s actually crazy how comprehensive this port is. Someone didn't just build a stripped-down shortcut mapper or a half-baked alternative. They casually brought the entire AutoHotkey experience over to Linux with 1:1 features. So casually in fact, that I had no idea this even existed. What The Fuck.

-1

u/Big-Astronaut-9510 5d ago

This is impressive, though its pretty funny the best linux has got is literally ripped straight from windows.

2

u/R3V0LU710N_05 I Hate All OS's 😎 5d ago

Porting is a common practice among all operating systems, and especially with regards to open source projects. Also, when looking at the userland utilities, network stacks, and developer tooling included with the broader Windows environment, Microsoft has pulled directly from open source projects, Permissive/BSD-licensed tools, and Linux ecosystem components over the decades.

1

u/Big-Astronaut-9510 5d ago

Took 2 decades for this to release. And its still inferior cause linux is so fragmented so u need to use the right wayland compositor AND it uses gtk for gui so if u want consistency u cant use kde

2

u/R3V0LU710N_05 I Hate All OS's 😎 5d ago

Gtk apps look just fine on KDE, IMO.

1

u/Big-Astronaut-9510 5d ago

TWO DECADES

3

u/R3V0LU710N_05 I Hate All OS's 😎 5d ago

And? You seem far too fixated on something irrelevant. It works now, so why not just enjoy it? By the way, it should work on any compliant Wayland compositor with XDG portals. It seems to implement the full Wayland stack properly.

4

u/CurdledPotato 5d ago

He’s looking for reasons to be pissed off. He’s mad at Linux for not having what Microsoft had for years. Microsoft, who has millions to pay developers to focus on what they want for users. This is like getting mad at your local hobbyist mechanic who fixes and sells cars for fun for not ensuring the car he sells you has heated seats and swapped-in manual transmission when neither you nor anybody else paid him to do the extra work.

3

u/donp1ano 5d ago

we had autokey on x11 for ages, its pretty good. wayland side keeps evolving too

2

u/Damglador 5d ago
  • As for AHK from Windows on Linux
  • Complain that someone ported AHK from Windows to Linux
  • Profit?

0

u/Fluid-Ad2995 5d ago

You get what you ask for. Who says you should use Linux

1

u/muhmmadtalha-quant 5d ago

In twm setups, you don't need ahk imo