bar: media use identity

Use identity instead of entry cause some players don't have an entry (e.g. feishin)
Add feishin icon
This commit is contained in:
2 * r + 2 * t 2025-01-15 14:36:19 +11:00
parent 3246e9596c
commit f1298fbb29
2 changed files with 6 additions and 2 deletions

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 13 KiB

View file

@ -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