Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

"dim" utility

Use this to dim your Mac screen when you plug in a monitor.

Connects a callback using CGDisplayRegisterReconfigurationCallback to dim the built-in screen down to zero only when an external monitor is plugged in.

I recommend registering this file as a daemon that starts when you log in. To do this, do the following:

$ cd path-to-dim-clone
$ make
$ mkdir -p ~/Library/LaunchAgents

Now, open local.dim.plist and edit the line underneath the Program key to point to the correct executible path. Then,

$ cp local.dim.plist ~/Library/LaunchAgents

Log out and log back in. The daemon will automatically run in the background.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages