diff options
author | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-25 17:38:47 -0500 |
---|---|---|
committer | Toby Vincent <tobyv@tobyvin.dev> | 2024-06-25 17:38:47 -0500 |
commit | e03559e1bddce560d3f6fcb51a3a99de24543243 (patch) | |
tree | 9a31add43d9f743489588f18c8fe466b029c180f | |
parent | 37903f304b4aa7be9a085accc0ee393bc9847d97 (diff) |
fix(nvim): print mpris status on button
-rwxr-xr-x | i3blocks/.local/lib/i3blocks/i3blocks-mpris | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/i3blocks/.local/lib/i3blocks/i3blocks-mpris b/i3blocks/.local/lib/i3blocks/i3blocks-mpris index c553f81..b32cff5 100755 --- a/i3blocks/.local/lib/i3blocks/i3blocks-mpris +++ b/i3blocks/.local/lib/i3blocks/i3blocks-mpris @@ -158,6 +158,7 @@ class Printer: self.sections[self.width] = Section.VOLUME self.updated.set() + self.print() async def handle_button(self, data) -> bool: with open("/tmp/mpris.json", "w") as f: @@ -197,8 +198,6 @@ class Printer: await self.playerctl.call_shift() case (_, _): return - - self.print() except DBusError: pass |