Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feature: add dbus event listening #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

fabian-thomas
Copy link

This PR includes some code I wrote some time ago to improve my own spotify polybar module. But I wanted to make it available to more people.

Instead of executing the status script every second, we now listen for dbus signals. This eliminates polling and removes delays when e.g. switching songs.

This is a rather big change. I don't know if this code works with python 2 too, but I guess python 2 support could be dropped soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant