Here's a script that I wrote, to detect a) if chumby is playing any audio and b) the screen is set to low brightness or night mode, and in that case, sleeps for 60 minutes (confugrable) and automatically decreases the volume gradually down to zero, and then stop the music. It'd be useful if you listen to music or podcast at night with chumby, and want it to auto-stop when you're in sleep. Save thi