wjvalue/dsh-mac-keep-awake ↗★ 0

dsh-mac-keep-awake

在会话进行时防止macOS系统进入空闲休眠。 macOS用户专属,适合运行耗时较长的后台任务,避免因电脑休眠导致任务中断。

包名
dsh-mac-keep-awake
兼容性
待验证
版本
1.4.1
许可证
MIT
最近更新
2026年10月2日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:wjvalue/dsh-mac-keep-awake

配置

在 profile 的 cordis.patch.yml 里覆盖这一行的 config:

- id: keep-awake
  name: 'dsh-mac-keep-awake'
  config:
    enabled: true            # 总开关
    preventDisplaySleep: false  # true = 屏幕也不息屏(加 -d)
    maxHours: 0              # >0 = 兜底超时(小时),到点自动释放
    reconcileSeconds: 60     # 对账间隔;0 = 关闭对账
    executable: /usr/bin/caffeinate