1
 
 

Cross posted from https://sh.itjust.works/post/67860480

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
3
submitted 11 months ago by to c/linuxtips@lemmy.ca
 
 

My pc decided to have this shit happen as I was doing a file transfer to do an os swap

4
Alternative Shells (itsfoss.com)
submitted 1 year ago by to c/linuxtips@lemmy.ca
 
 

You don't need to stick with bash! There are many alternatives out there.

Not in the linked article are more popular alternatives like zsh, or the technicality of sh which exists everywhere yet is rarely used interactively.