Skip to content

Xwei1645/waity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Waity Icon

Waity

基于 QFluentWidgetsPySide6 的自动关机提醒工具。

软件截图

主界面

开始使用

无 Python 环境

如果您没有 Python 环境或不想手动安装依赖,可以前往 GitHub Actions 页面下载最新构建的可执行文件。双击 main.exe 即可运行。

有 Python 环境

展开...

环境要求

  • Python >= 3.10
  • Windows

安装依赖

使用 uv 包管理器(推荐):

uv sync

运行

uv run main.py

进阶操作

使用参数启动

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 开放源代码。

About

基于 QFluentWidgets 和 PySide6 的自动关机提醒工具。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages