Adding Custom Scripts

Hello.

Does anyone know if there’s a way to add custom .sh bash scripts to the Tool Task list, App list, or anywhere else in muOS?

I managed to get one working in the App list by naming it mux_launch.sh , zipping it, renaming the .zip to .muxapp, and installing it as an app. I’m just wondering if there’s an easier or more direct method.

The tasks in task toolkit are just .sh script files. They are on the internal Linux partition so you would not be able to see them in Windows but you can can get to them through sftp /opt/muos/share/task/

Hmm would it be possible to keep them on my second sd card so they stay persistent though OS updates? I have a script that Turns on Tailacale, then turns on syncthing, Syncs, and does some checks, then turns TS and Syncthing off to save battery… I have it running at boot currently, and can run it from my app list, but I was looking for a clean way to share it with the community, it requires setting syncthing api key and folder ids.. so it needs to sit somewhere thats survives updates, but is still accessable to edit… or to even have a second file for credentials. The only other way I can think of is to install it as an app and then modify it through the applications folder after it’s installed. Would this be the best route to be able to share?

You can set storage to SD2 for user installed applications, just check the Storage Options under configuration.
Sharing a .muxapp installer is the best way to share it.
Also, you can run scripts from explore content, just set the core to External - Ports, as port launchers are .sh scripts.

If you wanna dive deeper on how user made apps work:

1 Like

Great thanks for the help/info!