Here you will find a fully-native way to do this on a Mac without any third party apps. It takes like 5 minutes to set up (all steps below), and let's you enable an intelligent No Sleep Mode with just a single click. No other menus, no fiddling around, no third party security threats. It just does exactly what it needs, nothing more, nothing less.