RetroFed Forum
Your home away from modern life.
In linux open two things at once using python plus bash scripts via autokey and a cheap macros keyboard.
Post Reply
AuthorMessage
babysmokesalot sh.itjust.works babysmokesalot@sh.itjust.works
Joined: 2026-05-06
Quote

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/blog/create-bash-script-linux/

-2   Original
Godort lemmy.ca Godort@lemmy.ca
Joined: 2025-06-04
#2 · Quote Reply

Wait, when did Autohotkey get a Linux build?

I used to use it all the time for text expansion in Windows and ended up switching to Espanso. KDE's keyboard shortcut system replaced the rest.

2
babysmokesalot sh.itjust.works babysmokesalot@sh.itjust.works
Joined: 2026-05-06
#3 · Quote Reply

Wait, when did Autohotkey get a Linux build? I used to use it all the time for text expansion in Windows and ended up switching to Espanso. KDE's keyboard shortcut system replaced the rest.

Dangit I got confused https://github.com/autokey/autokey

3
Post Reply
Back to top