跳转到内容
加入社区

awake

Keep your Mac awake with the lid closed - safe by default, built for humans and agents

CCrisCore

awake keeps a Mac running with the lid closed. It wraps pmset -a disablesleep 1 with a timer and narrow permissions, for people and coding agents that need a laptop to keep working through a long task.

  • awake on keeps the Mac awake for 1 hour by default and restores normal sleep on its own through a launchd agent; awake on 3h or --forever change that.
  • awake setup installs a sudoers rule limited to the two disablesleep commands, and awake setup --uninstall removes it.
  • A SwiftUI menu bar app shows a sun icon with a live countdown and notifies you when the auto-off fires.
  • Every command supports --json with a stable envelope and meaningful exit codes.
  • awake status shows the timer and warns when the Mac is on battery.

Try it: clone the repo, run bun install, bun run link:global and awake setup. More at https://awake.crafter.run.

创作者

CCris@camilocbarreraCore

Probably Statistician ~

查看主页

更新

每次发布和改动,最新的在前。

暂无更新。新的版本和改动会显示在这里。

轮到你了

你的项目也可以上墙。

发布只需几分钟,选一种适合你的方式。

发布你的作品