diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-24 21:31:54 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-24 21:31:54 +1100 |
| commit | 60ac73d61769665cb0bb852b05bfbfaf3ecc4724 (patch) | |
| tree | bba2d3f8fa452c8c42559c757b0b1804f775368b /src/modules | |
| parent | launcher: use scrollable (diff) | |
| download | caelestia-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')
| -rw-r--r-- | src/modules/bar.tsx | 4 |
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 |