Emit bread.paper.changed after a successful set
All checks were successful
check / check (push) Successful in 23s
dev release / build (push) Successful in 25s

Link bread-utils v0.7.1 (bread-client) and publish
{ "path": "<wallpaper>" } once awww + wal + bread-theme reload
all succeed. Silent no-op if breadd is down. breadpaper is
CLI-only — no watch subscriber; modules should bread.exec
("breadpaper set …"). See EVENTS.md.
This commit is contained in:
Breadway 2026-08-15 22:15:29 +08:00
parent 7a3a54c6f0
commit 54210ddc93
5 changed files with 452 additions and 20 deletions

View file

@ -42,6 +42,13 @@ breadpaper get # print the current wallpaper path
Supported formats: `png`, `jpg`, `jpeg`, `webp`, `gif`, `bmp`.
## Bread events
After a successful `set`, breadpaper emits `bread.paper.changed` if
`breadd` is running (silent no-op if it isn't). There is no daemon and
no command subscription — Lua modules should `bread.exec("breadpaper set …")`.
See [EVENTS.md](EVENTS.md).
## License
MIT — see [LICENSE](LICENSE).