## Optimus Manager ./run #!/bin/sh python3 -u -m optimus_manager.hooks.pre_daemon_start python3 -u -m optimus_manager.hooks.pre_xorg_start exec python3 -u -m optimus_manager.daemon ## Optimus Manager ./finish #!/bin/sh python3 -u -m optimus_manager.hooks.post_daemon_stop ## GDM (or any other DM, make sure it _CONFLICTS_ with the usual gdm script) #!/bin/sh sv check optimus-manager || exit 1 # (...) The rest of the usual GDM script here