Skip to content

question about a persistent block #197

Description

@rhetr

I've been wanting a VU meter on my bar for a while and finally came across a solution using arecord.I got to writing this block

[vu]
command=arecord -vvv -D pulse_monitor 2>&1 /dev/null | gawk '/#/{ gsub("#","▮"); printf "{\"full_text\":\"%-20s‡\"}\n", $6 }'
interval=persist
format=json

which seems to be working fine except that it only updates every 10 or so seconds, whereas in the terminal it updates in milliseconds .

i wrote a test block to see how fast i can update a block and it seems to be working fine:

[test-ms]
command=while :; do date +'{"full_text": "%3N"}'; done
interval=persist
format=json

so I'm not entirely sure what the problem is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions