Skip to content
IqyRilyPublic

About

A lightweight macOS menu bar utility to keep your Mac awake

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DontDoze logo

DontDoze

Platform Architecture License


Download Latest Release


A lightweight macOS menu bar utility to keep your Mac awake, prevent sleep on lid close, control Intel Turbo Boost, and manage power settings from a single menu bar icon.

Table of Contents

About

macOS's built-in caffeinate prevents idle and display sleep, but it cannot stop your Mac from sleeping when you close the lid without an external monitor. DontDoze combines caffeinate, pmset (SleepDisabled & power management flags), Intel Turbo Boost control, and optional app suspension into a minimal native menu bar app.

DontDoze Menu

Getting Started

Prerequisites

  • macOS 12 Monterey or newer (Universal Binary: Intel x86_64 & Apple Silicon arm64)
  • Xcode Command Line Tools (swiftc) if building from source:
    xcode-select --install
  • (Optional, Intel Macs only) DisableTurboBoost.64bits.kext placed in resources/ or /Applications/Turbo Boost Switcher.app

Installation

Option 1: Download Prebuilt App

  1. Download DontDoze-macOS.zip from Releases.
  2. Unzip and move DontDoze.app to /Applications.
  3. Open DontDoze.app (if macOS warns about an unidentified developer, right-click → Open).

Option 2: Build from Source

git clone https://github.com/IqyRily/DontDoze.git
cd DontDoze
chmod +x build.sh
./build.sh
open DontDoze.app

Usage

  • Left-Click Icon: Quickly toggle Keep Device Awake / Allow Device Sleep (runs caffeinate -d -i -m -s and sets pmset -a disablesleep 1/0 when the Helper is installed).
  • Right-Click Icon: Open the menu:
    • Turbo Boost Status (Intel x86_64 only): Switch between Always Enabled, Disable When Lid Close, or Always Disabled.
    • Preferences:
      • Launch at Login: Start DontDoze automatically via ~/Library/LaunchAgents/com.rizki.DontDoze.plist.
      • Advanced Mode: Unlocks independent Keep Display Awake (caffeinate) and Keep System Awake on Lid Close (pmset -a disablesleep) toggles, Suspend Running Apps (SIGSTOP/SIGCONT on lid close + ~/Library/Logs/DontDoze.log), and Power Management (standby, autopoweroff, hibernatemode, disksleep, powernap, womp, proximitywake, tcpkeepalive, ttyskeepawake, plus Reset to Defaults...).
      • Install / Remove Helper...: One-time /etc/sudoers.d/dontdoze setup (prompted only when using features that need sudo, such as pmset or Turbo Boost), plus clean uninstallation.
      • Menu Bar Icon: Choose Default (Zzz), MacBook, or Coffee Cup.
      • Language: Follow System, Indonesia, or English.

Note on Turbo Boost: macOS requires third-party kernel extensions to be authorized once in System Settings → Privacy & Security (click Allow and restart) before kextload can load DisableTurboBoost.64bits.kext.

Built Using

  • Swift — Compiled directly into a Universal (x86_64 + arm64) binary via swiftc & lipo
  • AppKit / Cocoa — Native NSStatusBar & NSMenu UI
  • IOKit — Clamshell / lid state detection (AppleClamshellState)
  • macOS caffeinate & pmset — Display, idle, disk, and system sleep management

Authors

Acknowledgements

License

Distributed under the MIT License. See LICENSE for more information.

About

A lightweight macOS menu bar utility to keep your Mac awake

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages