Skip to content

Clamshell 0.1.0

Pre-release
Pre-release

Choose a tag to compare

@Bagilov Bagilov released this 17 Oct 20:46
· 15 commits to main since this release

First pre-release.

Superseded by 0.1.1.
This build has a bug: the menu bar app prevents system sleep for as long as it
runs, because it opted out of App Nap with an option that also disables idle
sleep. Upgrade to 0.1.1.

macOS sleeps as soon as the lid closes unless sleep is disabled, and on Apple Silicon neither caffeinate nor ordinary keep-awake apps can override that. Clamshell wraps the only working switch, pmset disablesleep, in a root-owned helper with a narrow NOPASSWD sudoers rule.

  • clamshell on / off / status / battery
  • --for SPAN restores sleep after a duration
  • --battery PERCENT restores sleep at a battery floor, applied only while unplugged
  • --darken blanks the display immediately
  • Menu bar app with a live countdown, battery floor selection, display toggle and surfaced CLI errors

See CHANGELOG.md for details.