A versatile and user-friendly CLI tool for managing and launching your scripts and applications with custom arguments.
- 🚀 Launch multiple scripts or applications with a single command
- 🎨 Colorful and intuitive CLI interface
- ✏️ Quick edit functionality for scripts
- 🔧 Support for custom arguments for each script/app
- 🖥️ Opens each script in a new terminal window
- Python 3.6+
- Rich library (
pip install rich
)
-
Clone this repository:
git clone https://github.com/yourusername/script-launcher.git cd script-launcher
-
Install the required Python library:
pip install rich
-
Configure your scripts in
script_config.py
.
Edit the script_config.py
file to add your scripts and applications. Here's an example configuration:
SCRIPTS = [
{
"name": "My Python Script",
"path": "~/projects/myscript.py",
"working_dir": "~/projects",
"is_python": True,
"args": "-v --output result.txt"
},
{
"name": "Custom App",
"path": "~/apps/myapp",
"working_dir": "~/apps",
"is_python": False,
"args": "-t 0 -d 1 -gpu"
},
]
Run the script launcher:
python3 script_launcher.py
- Enter the numbers of the scripts you want to launch, separated by spaces.
- Append * to a number to open the script for editing instead of launching.
- Enter 'q' to quit the application.
Example:
1 2 3*
This will launch scripts 1 and 2, and open script 3 for editing.
To create a desktop shortcut:
-
Create a
.desktop
file namedscript-launcher.desktop
with the following content:[Desktop Entry] Version=1.0 Type=Application Name=Script Launcher Comment=Launch custom scripts Exec=/usr/bin/python3 /path/to/your/script_launcher.py Icon=/path/to/your/icon.png Terminal=true Categories=Utility;Development;
-
Replace
/path/to/your/script_launcher.py
with the actual path to your script. -
Choose an icon and replace
/path/to/your/icon.png
with its path. -
Make the file executable:
chmod +x script-launcher.desktop
-
Move the file to your desktop:
mv script-launcher.desktop ~/Desktop/
Contributions, issues, and feature requests are welcome! Feel free to check issues page.