by GD TheBarthoLi
Get Spotify or gp music to run (no change in flow needed) when you plug your earphones/headphones on! (only headphone jack, no Bluetooth by now). When you unplug, screen will lock!
For saving battery:
If not superuser, the music app bg will be terminated. If SU, the app package itself will be terminated.
Please choose only one of both flow beginnings!