aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/notifyctl
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-10-19 09:16:20 +0200
committerDanilo M. <danix@danix.xyz>2026-10-19 09:16:20 +0200
commit20f1b7bab5811f2ca4d2b0af93a0318adaf2fcac (patch)
treec2b575d13b9bd731d54e916e078d71e935f01ddb /cmd/notifyctl
parent73d7aff4248a5ab05cec55dbd7feb0d17b97c1df (diff)
downloadnotifyd-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 'cmd/notifyctl')
-rw-r--r--cmd/notifyctl/main.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd/notifyctl/main.go b/cmd/notifyctl/main.go
index e0875e7..6de678e 100644
--- a/cmd/notifyctl/main.go
+++ b/cmd/notifyctl/main.go
@@ -30,6 +30,7 @@ func usage() {
close-all dismiss every notification
action <id> <key> invoke an action on a live notification
clear-history empty the history ring
+ reload re-read ~/.config/notifyd/config.json
`, filepath.Base(os.Args[0]))
os.Exit(2)
}
@@ -69,6 +70,8 @@ func main() {
callControl("InvokeAction", id, os.Args[3])
case "clear-history":
callControl("ClearHistory")
+ case "reload":
+ callControl("Reload")
default:
usage()
}