v3.1.0
New
-
[#70, #71] Add
--listen-timeout-secsflag. This also updates its default value from0.1to0.05. From the new FAQ in the README:We use the
pactl subscribecommand to get notified of new events that may occur in order to refresh the output. However, the command often outputs a lot of events for a simple action, like increasing the volume. Instead of refreshing for every single line it prints, we:- Wait for one event
- Update the output first
- Continue to listen for events until a timeout ends, or until we reach a large enough number of them
- Update the output again
- Go back to step 1
This way, the first event will update quickly, and the following ones, which are most likely unnecessary, will be ignored until some time passes. This reduces the CPU usage, but it's not really perfect, as everyone percieves latency differently, and it depends on the use-case.
The timer can be configured with
--listen-timeout-secs, which has a default value of0.05(50 ms). If you want less CPU usage, i.e., ignore more duplicate events, you can bump it to, for example, (100 ms). Or for faster refreshes when performing multiple actions quickly, e.g., updating the volume with your mousewheel, you can even use a smaller value.