From Lousy Elephant, 3 Years ago, written in Plain Text.
Embed
  1. ## Optimus Manager ./run
  2. #!/bin/sh
  3. python3 -u -m optimus_manager.hooks.pre_daemon_start
  4. python3 -u -m optimus_manager.hooks.pre_xorg_start
  5. exec python3 -u -m optimus_manager.daemon
  6.  
  7. ## Optimus Manager ./finish
  8. #!/bin/sh
  9. python3 -u -m optimus_manager.hooks.post_daemon_stop
  10.  
  11. ## GDM (or any other DM, make sure it _CONFLICTS_ with the usual gdm script)
  12. #!/bin/sh
  13. sv check optimus-manager || exit 1
  14. # (...) The rest of the usual GDM script here
captcha