Honor bread.command.paper.set via breadpaper listen
All checks were successful
dev release / build (push) Successful in 21s

Pin bread-utils to v0.7.2 (command/subscribe). Add a long-running
listen subcommand that subscribes to bread.command.paper.**, calls
set() on set, and emits bread.paper.set.done / .failed. Fail-silent
if breadd is down. No slideshow verbs. See EVENTS.md.
This commit is contained in:
Breadway 2026-08-15 22:47:12 +08:00
parent 54210ddc93
commit 0283ac4e81
6 changed files with 133 additions and 30 deletions

View file

@ -38,6 +38,7 @@ install -Dm755 target/release/breadpaper ~/.local/bin/breadpaper
breadpaper <path> # shorthand for `set`
breadpaper set <path> # awww + wal + bread-theme reload
breadpaper get # print the current wallpaper path
breadpaper listen # honor bread.command.paper.set (fail-silent if breadd is down)
```
Supported formats: `png`, `jpg`, `jpeg`, `webp`, `gif`, `bmp`.
@ -45,9 +46,10 @@ 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).
`breadd` is running (silent no-op if it isn't). `breadpaper listen` is
the optional long-running subscriber for `bread.command.paper.set`; it
does not start by itself. Lua modules can still
`bread.exec("breadpaper set …")`. See [EVENTS.md](EVENTS.md).
## License