awesompd icon indicating copy to clipboard operation
awesompd copied to clipboard

Use `mpc idle` instead of polling

Open Ram-Z opened this issue 10 years ago • 3 comments

Would it be possible to use mpc idle or mpc idleloop to update the status instead of polling it every update_interval?

The idea is to reduce the number of useless connections created to mpd. Connections would only needed to be made when something has actually changed on the mpd side and to get the current time when the mouse hovers over the widget.

I could even have a look at it myself, if I find a way to execute functions when mpc idleloop has new output.

Ram-Z avatar Jul 23 '14 14:07 Ram-Z