Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide examples for blocks with signals #3

Open
ghost opened this issue Jul 26, 2023 · 1 comment
Open

Provide examples for blocks with signals #3

ghost opened this issue Jul 26, 2023 · 1 comment

Comments

@ghost
Copy link

ghost commented Jul 26, 2023

I've tried writing a custom volume indicator in my configuration but in order for it to update I need to make use of the interval field set to 1 so that it reflects volume changes. Ideally, I'd raise a signal from dwl-guile bindings and then update the block upon this, but I haven't been able to find any example in dtao-guile's or dtao's documentation to guide me on how to write this.

@Frewacom
Copy link
Member

Hi!

After having a closer look, I realized that I have actually forgotten to implement signals 😄

Once implemented, using signals will require you to set a signal number in the block configuration, and the block will automatically re-render upon receiving that signal (i.e. you send a signal to dtao-guile using e.g. pkill).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant