# newmarcel/keepingyouawake

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/newmarcel-keepingyouawake).**

6,273 stars · 244 forks · Objective-C · mit

## Links

- GitHub: https://github.com/newmarcel/KeepingYouAwake
- Homepage: https://keepingyouawake.app
- awesome-repositories: https://awesome-repositories.com/repository/newmarcel-keepingyouawake.md

## Topics

`caffeine` `macos` `menubar` `objective-c` `utility`

## Description

KeepingYouAwake is a macOS menu bar utility that prevents a Mac from automatically entering sleep mode. It offers both manual and timed control, allowing users to keep their system awake with a single click from the menu bar or for a user-defined duration that automatically reverts upon expiry.

The utility distinguishes itself through battery-aware operation, automatically disabling sleep prevention when the battery level drops below a configurable threshold to conserve power. This combines with a lightweight menu bar interface that provides instant activation and deactivation of sleep prevention without opening a separate window.

The application integrates with macOS power management frameworks to assert or release sleep prevention locks, supporting both indefinite manual prevention and scheduled countdown timers. It continuously monitors battery levels via system APIs to trigger automatic deactivation when power runs low.

## Tags

### Operating Systems & Systems Programming

- [Sleep Inhibitors](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/system-power-utilities/sleep-inhibitors.md) — Prevents a Mac from automatically sleeping during a specific task or presentation, with manual or timed control. ([source](https://cdn.jsdelivr.net/gh/newmarcel/keepingyouawake@main/README.md))
- [Sleep Prevention Auto-Disablers](https://awesome-repositories.com/f/operating-systems-systems-programming/power-management/battery-power-optimization/sleep-prevention-auto-disablers.md) — Automatically deactivates sleep prevention when the battery level drops below a configurable threshold to conserve power. ([source](https://keepingyouawake.app))
- [Timed](https://awesome-repositories.com/f/operating-systems-systems-programming/system-administration-maintenance/system-power-utilities/sleep-inhibitors/timed.md) — Prevents sleep for a user-set period, then automatically allows the Mac to sleep again. ([source](https://cdn.jsdelivr.net/gh/newmarcel/keepingyouawake@main/README.md))
- [System Sleep Inhibitors](https://awesome-repositories.com/f/operating-systems-systems-programming/system-sleep-inhibitors.md) — Leverages macOS I/O Kit or Power Management framework to assert or release sleep prevention locks.
- [Timer-Based Inhibitors](https://awesome-repositories.com/f/operating-systems-systems-programming/system-sleep-inhibitors/timer-based-inhibitors.md) — Uses a system-level timer to prevent sleep for a set duration, automatically reverting after expiry.

### Part of an Awesome List

- [Menu Bar Utilities](https://awesome-repositories.com/f/awesome-lists/devops/menu-bar-utilities.md) — Runs as a lightweight menu bar app with a persistent icon and popover interface for quick activation.
- [System Automation](https://awesome-repositories.com/f/awesome-lists/productivity/system-automation.md) — Prevents the system from entering sleep mode.

### System Administration & Monitoring

- [Sleep Prevention Auto-Disablers](https://awesome-repositories.com/f/system-administration-monitoring/energy-management/home-battery-integrations/battery-aware-sleep-schedulers/sleep-prevention-auto-disablers.md) — Automatically disables sleep prevention when battery drops below a configurable threshold to conserve power.
- [Menu Bar Utilities](https://awesome-repositories.com/f/system-administration-monitoring/menu-bar-utilities.md) — A lightweight utility living in the macOS menu bar for instant activation and deactivation of sleep prevention.

### Development Tools & Productivity

- [One-Click Toggle Interfaces](https://awesome-repositories.com/f/development-tools-productivity/environment-setup-tools/shell-interface-setup/one-click-deployment-interfaces/one-click-toggle-interfaces.md) — Implements a one-click toggle on the menu bar icon to instantly start or stop sleep prevention without opening a window.

### Programming Languages & Runtimes

- [Countdown Timer Managers](https://awesome-repositories.com/f/programming-languages-runtimes/runtime-execution-environments/timer-schedulers/countdown-timer-managers.md) — Manages a countdown timer with user-defined duration, triggering sleep prevention activation and automatic deactivation on expiry.

### User Interface & Experience

- [Wakefulness Timers](https://awesome-repositories.com/f/user-interface-experience/countdown-timers/wakefulness-timers.md) — Sets a countdown timer to keep a Mac awake for a chosen duration, then automatically allowing sleep.
- [Wakefulness Timers](https://awesome-repositories.com/f/user-interface-experience/playback-controllers/playback-behavior-enhancements/sleep-timers/wakefulness-timers.md) — Keeps the Mac awake for a user-defined duration, then automatically allows sleep to resume.
