So I have what seems like a simple request - I want the "Keep screen on" option that works only when the phone is charging. In the car I basically have the phone docked to a DAC, where dealing with a lock screen can be annoying.
My current options are having the setting on, which can severely drain the battery if I forget it, having the "stay awake" from developer options, which is not ideal when charging in public places, or making a workaround with Tasker, which is not too elegant or reliable.