dsh-shutdown-idle

会话全部结束、后台任务也安静下来后自动执行电源动作(关机 / 重启 / 休眠 / 睡眠 / 锁定 / 注销):插件每秒采样进程内会话,运行中的会话始终算「在忙」;后台任务检测是可配置项 considerJobs(默认开启,设置页直接显示当前计数);确认窗口后进入可取消倒计时,右下角浮窗卡片显示当前阶段与剩余秒数并支持拖动;开关不会随宿主重启保留(重启后一律回到关闭),任何会话新启动或点取消都会中止倒计时;拿不到 agents 服务时一律按「在忙」处理,绝不触发。仅支持 Windows(使用系统自带 shutdown / rundll32),其他平台除 none 外均降级为 none。

插件介绍

会话全部结束、后台任务也安静下来后自动执行电源动作(关机 / 重启 / 休眠 / 睡眠 / 锁定 / 注销):插件每秒采样进程内会话,运行中的会话始终算「在忙」;后台任务检测是可配置项 considerJobs(默认开启,设置页直接显示当前计数);确认窗口后进入可取消倒计时,右下角浮窗卡片显示当前阶段与剩余秒数并支持拖动;开关不会随宿主重启保留(重启后一律回到关闭),任何会话新启动或点取消都会中止倒计时;拿不到 agents 服务时一律按「在忙」处理,绝不触发。仅支持 Windows(使用系统自带 shutdown / rundll32),其他平台除 none 外均降级为 none。

安装方式

从 GitHub 安装

dsh plugin --profile web add github:liaoyuqing/dsh-shutdown-idle

Installing from GitHub runs the project's build script, which pnpm blocks until you allowlist it — run the command once and pnpm prints the exact key to add under `allowBuilds` in ~/.dsh/profiles/web/pnpm-workspace.yaml.

版本兼容情况

兼容性待确认。可前往项目文档查看支持版本。

安装提示

  • 可能调用终端命令