简单、通俗易懂的 macOS 防休眠工具,封装自原生 caffeinate 命令。
一行命令,让你的 Mac 保持清醒。
A simple macOS no-sleep wrapper around caffeinate.
- 🇨🇳 全中文提示,直观易懂
- ⏱ 支持 s/m/h/d 以及小数时间
- 👻 后台模式允许黑屏省电
- 🚀 命令跟随模式
- ♻️ 支持升级更新
- 🔌 默认/定时模式保持系统不休眠、网络不断;bg 允许黑屏但系统不休眠
curl -fsSL https://raw.githubusercontent.com/ThinkPeace/NoSleep/main/scripts/install.sh | bashbrew install thinkpeace/tap/nosleepnosleep update
# or
curl -fsSL https://raw.githubusercontent.com/ThinkPeace/NoSleep/main/scripts/update.sh | bashcurl -fsSL https://raw.githubusercontent.com/ThinkPeace/NoSleep/main/scripts/uninstall.sh | bashnosleep
nosleep 90m
nosleep 1.5h
nosleep bg 3h
nosleep status
nosleep stop 1
nosleep run ./backup_script.sh