如果您没有 Python 环境或不想手动安装依赖,可以前往 GitHub Actions 页面下载最新构建的可执行文件。双击 main.exe 即可运行。
Waity 支持通过命令行参数自定义启动行为。您可以组合使用 --countdown、--delay 和 --reminder 参数来满足不同需求。
| 参数 | 含义 | 单位 | 默认值 |
|---|---|---|---|
--countdown |
启动时的倒计时时长 | 秒 | 60 |
--delay |
点击“延迟”按钮增加的时长 | 秒 | 180 |
--reminder |
再次弹出提醒的时间点 | 秒 | 60 |
--show-in-taskbar |
是否在任务栏中显示图标 | - | 无(不显示) |
--no-beep |
禁用点击空白处的提示音 | - | 无(开启) |
--no-shake |
禁用点击空白处的抖动动画 | - | 无(开启) |
--force |
强制关机(使用 shutdown /s /f /t 0) |
- | 无(关闭) |
--hide-cancel |
隐藏“取消关机计划”按钮 | - | 无(关闭) |
--overwrite |
如果已有实例在运行,则覆盖旧实例 | - | 无(关闭) |
Important
--countdown,--delay,--reminder必须为大于 0 的整数。--reminder必须小于--delay。
Tip
以下样例使用可执行文件。使用 Python 解释运行同理。
.\main.exe --countdown 300 # 5 分钟后自动关机.\main.exe --delay 600 # 设置延迟选项为 “延迟 10 分钟”.\main.exe --countdown 600 --delay 300 --reminder 60
# 10 分钟后关机,延迟按钮加 5 分钟,最后 60 秒再次弹窗提醒.\main.exe --show-in-taskbar # 显示在任务栏中.\main.exe --no-beep --no-shake # 禁用点击空白处的提示音和抖动动画.\main.exe --hide-cancel # 隐藏取消按钮,防止通过该按钮取消关机.\main.exe --force # 使用强制关机模式本项目基于 GPL v3 开放源代码。
