summaryrefslogtreecommitdiff
path: root/src/modules/bar.tsx
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-24 21:31:54 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-24 21:31:54 +1100
commit60ac73d61769665cb0bb852b05bfbfaf3ecc4724 (patch)
treebba2d3f8fa452c8c42559c757b0b1804f775368b /src/modules/bar.tsx
parentlauncher: use scrollable (diff)
downloadcaelestia-shell-60ac73d61769665cb0bb852b05bfbfaf3ecc4724.tar.gz
caelestia-shell-60ac73d61769665cb0bb852b05bfbfaf3ecc4724.tar.bz2
caelestia-shell-60ac73d61769665cb0bb852b05bfbfaf3ecc4724.zip
bar: firefox media icon
Also fix player identities having spaces
Diffstat (limited to 'src/modules/bar.tsx')
-rw-r--r--src/modules/bar.tsx4
1 files changed, 3 insertions, 1 deletions
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