From 60ac73d61769665cb0bb852b05bfbfaf3ecc4724 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Fri, 24 Jan 2025 21:31:54 +1100
Subject: bar: firefox media icon

Also fix player identities having spaces
---
 src/modules/bar.tsx | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'src/modules/bar.tsx')

diff --git a/src/modules/bar.tsx b/src/modules/bar.tsx
index 47702e8..60471ca 100644
--- a/src/modules/bar.tsx
+++ b/src/modules/bar.tsx
@@ -103,7 +103,9 @@ const MediaPlaying = () => {
                 <icon
                     setup={self =>
                         players.hookLastPlayer(self, "notify::identity", () => {
-                            const icon = `caelestia-${players.lastPlayer?.identity.toLowerCase()}-symbolic`;
+                            const icon = `caelestia-${players.lastPlayer?.identity
+                                .toLowerCase()
+                                .replaceAll(" ", "-")}-symbolic`;
                             self.icon = players.lastPlayer
                                 ? Astal.Icon.lookup_icon(icon)
                                     ? icon
-- 
cgit v1.2.3-freya

