aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/i3blocks/.local
diff options
context:
space:
mode:
authorToby Vincent <tobyv@tobyvin.dev>2024-06-25 17:38:47 -0500
committerToby Vincent <tobyv@tobyvin.dev>2024-06-25 17:38:47 -0500
commite03559e1bddce560d3f6fcb51a3a99de24543243 (patch)
tree9a31add43d9f743489588f18c8fe466b029c180f /i3blocks/.local
parent37903f304b4aa7be9a085accc0ee393bc9847d97 (diff)
fix(nvim): print mpris status on button
Diffstat (limited to 'i3blocks/.local')
-rwxr-xr-xi3blocks/.local/lib/i3blocks/i3blocks-mpris3
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