aboutsummaryrefslogtreecommitdiffstats
path: root/internal/notify/policy.go
AgeCommit message (Collapse)AuthorFilesLines
34 hoursfix: 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.
34 hoursfeat: 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.