newmarcel / newmarcel/KeepingYouAwake
Optional keep awake while lid closed option
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 6.9k
- Forks
- 266
- PR merge metrics
- No merged PRs in 30d
Description
It would be really great to have a built-in option to enable the device to stay awake even when the lid is shut.
Just a proxy to this command and the device won't sleep even when the lid is shut.
sudo pmset -a disablesleep 1
Turning it off is as easy as passing a 0 instead of a 1 to the command:
sudo pmset -a disablesleep 0
Enabling this feature would help many users who run autonomous agents or even just long build tasks on their MacBooks.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing keep-awake behavior and the macOS power-management integration, using the issue's pmset command as the behavioral reference. Add an optional setting that maps to disablesleep 1 when enabled and disablesleep 0 when disabled, then verify that lid-closed behavior follows the selected setting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- macos, objective-c
- Domain
- desktop, operating-systems
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100