Files
2026-02-21 08:54:28 +08:00

112 lines
3.9 KiB
TOML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ══════════════════════════════════════════════════════════
# 健康守护助手 · config.toml
# Health Guardian v0.4
# ══════════════════════════════════════════════════════════
# ── 全局设置 ──────────────────────────────────────────────
[settings]
# 日志文件保存目录
# 留空 = 系统默认目录:
# macOS : ~/Library/Application Support/health-guardian/
# Linux : ~/.local/share/health-guardian/
# Windows : C:\Users\<你>\AppData\Local\health-guardian\
#
# 自定义示例:
# log_dir = "/Users/yourname/Documents/health-logs"
# log_dir = "C:\\Users\\yourname\\health-logs"
log_dir = "./logs"
# 提醒音频文件路径(支持 .wav / .mp3
# 留空 = 内置合成蜂鸣(三声,每声 0.5s,频率 660 Hz
#
# 自定义示例:
# sound_file = "/Users/yourname/sounds/ding.wav"
# sound_file = "C:\\Users\\yourname\\sounds\\ding.mp3"
sound_file = ""
# ── 任务列表 ──────────────────────────────────────────────
# 每个 [[tasks]] 块定义一个独立的健康提醒任务。
# interval.unit 可选 "hours" 或 "minutes"。
# initial_delay_minutes程序启动后首次触发前的等待时间分钟
# sound是否为此任务播放声音true / false默认 true
[[tasks]]
name = "起立活动"
title = "🧍 起立时间到!"
body = "你已久坐 1 小时,请起立活动 5 分钟,做做肩颈伸展。"
initial_delay_minutes = 60
sound = true
[tasks.interval]
unit = "hours"
value = 1
[[tasks]]
name = "补水提醒"
title = "💧 喝水时间到!"
body = "请喝一杯温水(约 200ml保持良好的水分摄入。"
initial_delay_minutes = 30
sound = true
[tasks.interval]
unit = "minutes"
value = 30
[[tasks]]
name = "眼部放松"
title = "👁️ 远眺放松眼睛!"
body = "看向 20 英尺外的物体,持续 20 秒,保护视力。"
initial_delay_minutes = 20
sound = true
[tasks.interval]
unit = "minutes"
value = 20
[[tasks]]
name = "深呼吸"
title = "🌬️ 深呼吸练习"
body = "吸气 4 秒 → 屏气 4 秒 → 呼气 6 秒,重复 3 次。"
initial_delay_minutes = 120
sound = true
[tasks.interval]
unit = "hours"
value = 2
[[tasks]]
name = "手部拉伸"
title = "🤲 手部拉伸时间"
body = "握拳展开 10 次,顺逆时针旋转手腕各 10 次。"
initial_delay_minutes = 90
sound = false # 静音任务示例
[tasks.interval]
unit = "hours"
value = 2
# ── 扩展任务示例(默认注释,取消注释即启用) ──────────────
# [[tasks]]
# name = "正念冥想"
# title = "🧘 冥想时间"
# body = "停下手中工作,闭眼做 5 分钟正念呼吸,清空杂念。"
# initial_delay_minutes = 180
# sound = true
#
# [tasks.interval]
# unit = "hours"
# value = 3
# [[tasks]]
# name = "午后活力"
# title = "⚡ 午后提神小运动"
# body = "做 10 个深蹲或原地高抬腿 30 秒,赶走午后困倦!"
# initial_delay_minutes = 240
# sound = true
#
# [tasks.interval]
# unit = "hours"
# value = 4