I have the app Locale setup to do this for me at night. But it only silences and opens clock. I still have to hit the dim clock button but it takes out most of the work.
Plus with the "all Volumes" plugin I can keep the alarm volume at full, notifications off, and the ringer on but very quiet.