module/script: add poll-interval option

When set to a non-negative value, the script module will call the
configured script every <poll-interval> second.

In this mode, the script is expected to write one tag set and then
exit.

This is intended to simplify the implementation of scripts that would
otherwise just do a loop + sleep.

Closes #67
This commit is contained in:
Daniel Eklöf 2021-07-04 20:23:01 +02:00
parent e4a0b375e5
commit cf41d008f8
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 101 additions and 17 deletions

View file

@ -13,6 +13,8 @@
* Text shaping support.
* Support for middle and right mouse buttons, mouse wheel and trackpad
scrolling (https://codeberg.org/dnkl/yambar/issues/39).
* script: polling mode. See the new `poll-interval` option
(https://codeberg.org/dnkl/yambar/issues/67).
### Changed