aboutsummaryrefslogtreecommitdiffstats
path: root/window-switcher
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-09-13 14:02:05 +0200
committerDanilo M. <danix@danix.xyz>2026-09-13 14:02:05 +0200
commit9fc6ca0d9a9cdba9d5808951ce290e559a9e8554 (patch)
treefab4f7bb606b38efaf00e22937c3c5a0f5cc0f57 /window-switcher
parent87cd101eb3c55d0ad7e8f2142fcce90865da7d39 (diff)
downloadquickshell-9fc6ca0d9a9cdba9d5808951ce290e559a9e8554.tar.gz
quickshell-9fc6ca0d9a9cdba9d5808951ce290e559a9e8554.zip
feat(mail-overview): show mail-watcher health in the drawer
The watcher already writes ~/.local/state/mail-watcher.heartbeat every 60s, so the drawer reads it and shows a dot: green when idling, yellow when a folder gave up, red when the heartbeat is stale or missing. Backoff stays green because it is normal recovery and the watcher's own health check treats it that way. The staleness rule is reimplemented in a few lines rather than shelling out to --status; the heartbeat file is the documented cheap-to-poll surface. Read once per open rather than watched: the heartbeat is written by atomic replace, so an inotify watch held on the old inode dies with it. "Sync now" is removed with its Process. The watcher triggers syncs, the cron tick is the backstop, and waybar's right-click still runs mailsync.sh.
Diffstat (limited to 'window-switcher')
0 files changed, 0 insertions, 0 deletions