This is a little tweak for toggling modes when power is connected
Configure options from Settings app
See larger Screenshots below..