Merge pull request #796 from ouuan/playerctl

[modules/playerctl]: support the stopped status
This commit is contained in:
tobi-wan-kenobi 2021-06-26 13:30:01 +02:00 committed by GitHub
commit 3ff2e49e5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -96,6 +96,8 @@ class Module(core.module.Module):
widget.set("state", "playing") widget.set("state", "playing")
elif playback_status == "Paused": elif playback_status == "Paused":
widget.set("state", "paused") widget.set("state", "paused")
elif playback_status == "Stopped":
widget.set("state", "stopped")
else: else:
widget.set("state", "") widget.set("state", "")
elif widget.name == "playerctl.next": elif widget.name == "playerctl.next":