If you wanted to do something fancy.. Something like this: https://launchpad.net/caffeine. Source: about 2 years ago