From f1298fbb29293db3525e8ba7dac66513519d142c Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Wed, 15 Jan 2025 14:36:19 +1100
Subject: bar: media use identity

Use identity instead of entry cause some players don't have an entry (e.g. feishin)
Add feishin icon
---
 modules/bar.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'modules/bar.tsx')

diff --git a/modules/bar.tsx b/modules/bar.tsx
index b97d4af..b8e9f0b 100644
--- a/modules/bar.tsx
+++ b/modules/bar.tsx
@@ -81,8 +81,8 @@ const MediaPlaying = () => {
         >
             <icon
                 setup={self =>
-                    players.hookLastPlayer(self, "notify::entry", () => {
-                        const icon = `caelestia-${players.lastPlayer?.entry}-symbolic`;
+                    players.hookLastPlayer(self, "notify::identity", () => {
+                        const icon = `caelestia-${players.lastPlayer?.identity.toLowerCase()}-symbolic`;
                         self.icon = players.lastPlayer
                             ? Astal.Icon.lookup_icon(icon)
                                 ? icon
-- 
cgit v1.2.3-freya

