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.
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
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:
so I'm not entirely sure what the problem is.