diff options
| author | Danilo M. <danix@danix.xyz> | 2026-10-19 09:16:20 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-10-19 09:16:20 +0200 |
| commit | 20f1b7bab5811f2ca4d2b0af93a0318adaf2fcac (patch) | |
| tree | c2b575d13b9bd731d54e916e078d71e935f01ddb /internal/notify/control.go | |
| parent | 73d7aff4248a5ab05cec55dbd7feb0d17b97c1df (diff) | |
| download | notifyd-20f1b7bab5811f2ca4d2b0af93a0318adaf2fcac.tar.gz notifyd-20f1b7bab5811f2ca4d2b0af93a0318adaf2fcac.zip | |
feat(notifyctl): add reload, re-reading the config file
The daemon also reads the file at start. Armed timers keep their lifetime;
the next notification gets the new default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'internal/notify/control.go')
| -rw-r--r-- | internal/notify/control.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/notify/control.go b/internal/notify/control.go index a42a14b..85c4d74 100644 --- a/internal/notify/control.go +++ b/internal/notify/control.go @@ -53,3 +53,10 @@ func (c *control) ClearHistory() *dbus.Error { c.svc.store.ClearHistory() return nil } + +// Reload re-reads ~/.config/notifyd/config.json. The settings page calls it +// after a save; a bad file is logged and read as defaults, never an error. +func (c *control) Reload() *dbus.Error { + c.svc.reload() + return nil +} |
