elParaguayo / qtile-extras

Somewhere to store things I create for qtile that probably won't end up in the official repo
MIT License
163 stars 19 forks source link

Fix volume widget bug - unnecessary display #366

Closed elParaguayo closed 1 month ago

elParaguayo commented 1 month ago

The pulsevolume widget receives a notification from the server when a new app accesses the sound device. This triggers the callback in the widget but, as the widget does not check to see if the volume has changed, the volume is always displayed.

This PR fixes the issue by only displaying the volume when there is a change.