How can I change screen timeout based on whether my phone is/not charging? I'd like my screen to stay lit while charging but have a timeout when just on battery. Is ther any way to do this?
There's an option to keep your screen lit while charging, try:

Settings -&gt; Developer Options -&gt; Stay Awake