AutoKey, a desktop automation utility for Linux and X11.

8 days ago by babysmokesalot to c/linux4noobs

AutoKey, a desktop automation utility for Linux and X11. - autokey/autokey

Important: This is an X11 application and, as such, will not function correctly when Wayland is in use instead of Xorg.

Python script in AUTOKEY program

import concurrent.futures
import subprocess
import os


# Change the current working directory
os.chdir('/home/user/Documents/VideoDownloader') #change to your working directory not where autokey stores scripts (/home/user/.config/autokey/data/Start_Up_Scripts/
with concurrent.futures.ProcessPoolExecutor() as executor:
    proc1 = executor.submit(subprocess.run, ['./downloader.sh'])
    proc2 = executor.submit(subprocess.run, ['./onlinedownloader.sh'])

proc1.result()
proc2.result()

Example of a bash script in ( /home/user/Documents/VideoDownloader ) or where ever.





1. downloader.sh
------------------------------------------------------------
#!/bin/bash

./Open.Video.Downloader_3.2.0_amd64.AppImage # You can start up appimages 

------------------------------------------------------------


2. onlinedownloader.sh
------------------------------------------------------------

#!/bin/bash

librewolf https://4get.ca/   # Open Webpages

------------------------------------------------------------

Then with the push of a button using a cheap chinese macros tied to a key combo and blam. Magic.

https://linuxvox.com/...

rimu 4 points 8 days ago

If anyone knows of a Wayland equivalent I will be grateful.

path: 0 26187646, hotness: undefined, score: 4, children: 3
majster 3 points 8 days ago

This feature is considered harmful. First find a compositor & app combo that agree on protocol for this feature. Then proceed to wait until the protocol gets standardized and adopted by other compositors, or wait until the end times, whichever comes first.

path: 0 26187646 26187805, hotness: undefined, score: 3, children: 1
rimu 1 point 8 days ago

haha yes that's what I expected :)

I know someone who absolutely loves AutoKey and will switch DEs to anything still using X11, just for this app. If I can save them the disruption that'd be nice.

path: 0 26187646 26187805 26188343, hotness: undefined, score: 1, children: 0
tea 2 points 5 days ago

I was a big autohotkey user on windows. I now use a bunch of bash scripts, aliases, and hot keys, and a couple of one off tools to do the same things. Embrace bash imo.

path: 0 26187646 26239883, hotness: undefined, score: 2, children: 0
Auster 1 point 8 days ago

From what I played around with it a few years back, iirc AutoHotKey scripts can be converted to AutoKey. However, AHK uses its own scripting language, and AutoKey uses Python.

path: 0 26187309, hotness: undefined, score: 1, children: 0
linux4noobs
linux4noobs

@programming.dev

login for more options
4500
307
83

linux4noobs


Noob Friendly, Expert Enabling

Whether you're a seasoned pro or the noobiest of noobs, you've found the right place for Linux support and information. With a dedication to supporting free and open source software, this community aims to ensure Linux fits your needs and works for you. From troubleshooting to tutorials, practical tips, news and more, all aspects of Linux are warmly welcomed. Join a community of like-minded enthusiasts and professionals driving Linux's ongoing evolution.


Seeking Support?
  • Mention your Linux distro and relevant system details.
  • Describe what you've tried so far.
  • Share your solution even if you found it yourself.
  • Do not delete your post. This allows other people to see possible solutions if they have a similar problem.
  • Properly format any scripts, code, logs, or error messages.
  • Be mindful to omit any sensitive information such as usernames, passwords, IP addresses, etc.

Community Rules

  • Keep discussions respectful and amiable. This community is a space where individuals may freely inquire, exchange thoughts, express viewpoints, and extend help without encountering belittlement. We were all a noob at one point. Differing opinions and ideas is a normal part of discourse, but it must remain civil. Offenders will be warned and/or removed.
  • Posts must be Linux oriented
  • Spam or affiliate links will not be tolerated.

go to feed...