---
title: "Keep Your Mac Awake During Coding"
slug: keep-mac-awake-during-coding
url: https://shakeiton.app/guides/keep-mac-awake-during-coding
category: "Use Case"
published: 2026-04-06
updated: 2026-04-06
---

# Keep Your Mac Awake During Coding

> Long builds, test suites, and CI pipelines can take hours. Shake It On keeps your Mac awake during coding by moving the mouse at regular intervals, with smart conditions so it only runs when you need it.

## The problem

Long builds, test suites, and CI pipelines can take hours. If you step away to grab coffee and your Mac sleeps, the process halts.

## Why it happens

Xcode, terminals running builds, and test runners don't always request sleep prevention. The idle timer counts time since your last mouse or keyboard input, not whether a process is actively running.

## The fix: Shake It On

**Shake It On** keeps your Mac awake by moving the mouse slightly at regular intervals. macOS sees real user activity and resets the idle timer. Set it up with the right conditions and it only runs when you're coding.

Recommended conditions for coding:

-   **Only Shake If CPU is above 20% (catches active builds)**
-   **Only Shake If a specific app is running (Xcode, Terminal)**

Tip

The CPU threshold condition is great here. It auto-activates when a build is compiling and stops when your Mac is idle.
