Skip to content
yonnockPublic

About

Close your MacBook lid and keep it running. lidon / lidoff for fish, bash and zsh.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

lidon

Close your MacBook lid and keep it running, on battery, without an external display. Wi-Fi stays connected.

Install

curl -fsSL https://raw.githubusercontent.com/yonnock/lidon/main/install.sh | sh

Works with fish, bash and zsh.

Use

lidon    # Mac stays awake when the lid is closed
lidoff   # back to normal sleep

Check the state with pmset -g | grep SleepDisabled (1 = stays awake).

Notes

  • Uses sudo pmset -a disablesleep, so you'll be asked for your password.
  • The setting stays active until you run lidoff or reboot.
  • Don't put the closed Mac in a bag while lidon is active. It can get hot.

Uninstall

lidoff
rm -f ~/.lidon.sh ~/.config/fish/functions/lidon.fish ~/.config/fish/functions/lidoff.fish

Then remove the .lidon.sh line from ~/.bashrc, ~/.bash_profile or ~/.zshrc.

License

MIT

About

Close your MacBook lid and keep it running. lidon / lidoff for fish, bash and zsh.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages