Skip to content
fiveanglePublic

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ClamUp — Clamshell Sleep Toggle

A lightweight macOS AppleScript utility that prevents your MacBook from sleeping when the lid is closed.

What It Does

On launch, ClamUp checks whether clamshell mode is currently on or off and presents a simple dialog with a toggle button.

  • Turn On: Sets pmset -a disablesleep 1, preventing sleep when the lid is closed.
  • Turn Off: Sets pmset -a disablesleep 0, restoring normal sleep behavior.

Toggling requires your admin password (macOS prompts automatically).

Building

With just the Makefile and ClamUp.applescript, run:

make

This compiles ClamUp.applescript into ClamUp.app using osacompile.

Other Targets

make run        # Build (if needed) and launch the app
make install    # Copy ClamUp.app to /Applications
make uninstall  # Remove ClamUp.app from /Applications
make clean      # Delete the built .app bundle
make help       # Show available targets

Running

Double-click ClamUp.app, or from the terminal:

open ClamUp.app

Reverting Manually

If needed, you can reset sleep behavior directly:

sudo pmset -a disablesleep 0

Requirements

  • macOS 10.12 or later
  • Admin account

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages