aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/policy.go
AgeCommit message (Collapse)AuthorFilesLines
8 daysfeat(notify): take the per-urgency default timeout from configDanilo M.1-12/+14
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-15fix: honour the freedesktop expire_timeout directionDanilo M.1-6/+10
The spec says -1 means the server decides and 0 means never; the code had them swapped, so a plain notify-send (libnotify's default is -1) became immortal and an explicit never (-t 0) got the urgency default. Found by the live handover test, where notify-send produced expires 0. The urgency default is unchanged: low and normal 10s, critical never.
2026-09-15feat: add the module and the notification policyDanilo M.1-0/+95
The policy functions are pure so they are tested without a bus: urgency from the hints, the timeout rule with its urgency defaults, the two stack tag spellings, and the action pair parse.