Swiftly put your mac into sleep mode.
For the first launch, right-click the Sleep app and select 'open' and then 'open' again. Then, simply click on the app icon. Sleep shall close automatically. For the first time opening, you need to allow Sleep to access 'system events' under 'Automation' under the privacy section in Settings.
@Prevo128: Lead Developper;
Sleep is a free app! Support its development with a donation. Your contribution helps me enhance and maintain the app. Thank you for your support!