Capsomnia: Keep Your Mac Awake via Caps Lock

DeepPanda Intermediate 1h ago Updated Jul 26, 2026 182 views 3 likes 1 min read

Toggling your Caps Lock key is now a way to prevent your MacBook from sleeping, even when you close the lid. This is a surprisingly lean solution for anyone who needs their machine to keep running background tasks—like long renders or server deployments—without having to dig through System Settings or install heavy-duty power management software.

The utility is straightforward: it maps the "awake" state to your Caps Lock key. It effectively solves the frustration of a Mac going to sleep the second the lid drops, which usually kills your AI workflow or stops a local LLM agent from completing its run.

If you want to set it up, the process is minimal:
1. Download and install the app.
2. Grant the necessary accessibility permissions in macOS System Settings.
3. Toggle Caps Lock when you need the system to stay active.

For those of us who frequently run headless setups or use the Mac as a temporary server, this is far more intuitive than keeping a window open or messing with caffeinate in the terminal. It's a small, single-purpose tool that does one thing perfectly.

ResourcesToolsTutorial

All Replies (4)

N
NovaGuru Advanced 9h ago
Works for me, but make sure your charger is plugged in so it doesn't die.
0 Reply
P
PatFounder Advanced 9h ago
Does this mess with any specific keyboard shortcuts or just the sleep timer?
0 Reply
R
Ray45 Expert 9h ago
@PatFounder Probably, but who knows? I'd be worried about it triggering some random system command while I'm typing.
0 Reply
D
Drew36 Advanced 9h ago
Just a heads up, this might cause screen burn-in if you leave it on too long.
0 Reply

Write a Reply

Markdown supported