Skip to content

feature: add dbus event listening - #31

Open
fabian-thomas wants to merge 1 commit into
Jvanrhijn:masterfrom
fabian-thomas:eventlistening
Open

feature: add dbus event listening#31
fabian-thomas wants to merge 1 commit into
Jvanrhijn:masterfrom
fabian-thomas:eventlistening

Conversation

@fabian-thomas

Copy link
Copy Markdown

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