this post was submitted on 13 Apr 2024
459 points (97.3% liked)

Technology

34975 readers
123 users here now

This is the official technology community of Lemmy.ml for all news related to creation and use of technology, and to facilitate civil, meaningful discussion around it.


Ask in DM before posting product reviews or ads. All such posts otherwise are subject to removal.


Rules:

1: All Lemmy rules apply

2: Do not post low effort posts

3: NEVER post naziped*gore stuff

4: Always post article URLs or their archived version URLs as sources, NOT screenshots. Help the blind users.

5: personal rants of Big Tech CEOs like Elon Musk are unwelcome (does not include posts about their companies affecting wide range of people)

6: no advertisement posts unless verified as legitimate and non-exploitative/non-consumerist

7: crypto related posts, unless essential, are disallowed

founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
[–] Dymonika@kbin.social 2 points 7 months ago* (last edited 7 months ago) (3 children)

@tsonfeir But Linux does not have AutoHotkey. This is the biggest deal-breaker for me by far. AutoKey seems be the closest thing, but it's such a massive pain to even try to use by comparison.

[–] golden_zealot@lemmy.ml 5 points 7 months ago (1 children)

Depending on your usage, perhaps this re-implementation of AHK for Linux might be of use to you.

https://github.com/phil294/AHK_X11

[–] Dymonika@kbin.social 2 points 7 months ago* (last edited 7 months ago)

Interesting, thanks. I think ultimately, seeing this port's adherence to AHK v1 syntax, I'd just have to bite the bullet and learn Python or something, though...

Never mind, I've since stumbled across xdotool!

[–] themoonisacheese@sh.itjust.works 3 points 7 months ago (1 children)

I doesn't have auto hotkey because for the most part, you can control Linux from the command-line without someone having to invent a new scripting language from scratch to control it.

I heavily recommend you familiarize yourself with bash and the system commands you'll need to send key presses, move windows, spawn and kill programs, etc.

[–] Dymonika@kbin.social 1 points 7 months ago* (last edited 7 months ago) (1 children)

Hmm, thanks. Can it simulate mouse-clicks?

Apparently, xdotool can! I guess the next thing would be generating GUIs. I think the final issue is that this would cause quite the fragmentation given how I use the same scripts on my Windows-only work laptop... but I'll think about this more...

[–] themoonisacheese@sh.itjust.works 1 points 7 months ago

An alternative is python, it can do GUIs easily, and it does have mouse-control facilités as well and it is cross plaform. That being said generally on Linux you don't even need to automate mouse click, as almost all of it can be controllers with straight up commands.

[–] Contend6248@feddit.de 2 points 7 months ago (1 children)

Fuck me, there is no worse way automating things

[–] Dymonika@kbin.social 1 points 7 months ago* (last edited 7 months ago)

Do you have any as-convenient alternative? It's way easier to use than Python or anything else, and it's sped up some of my work procedures by, like, 7x. I use it for dozens of text expansion strings, autocorrect, address typers, mouse-clickers, etc.

Never mind, I've since stumbled across xdotool! I suppose this may be doable after all...