summaryrefslogtreecommitdiff
path: root/src/utils/system.ts
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-31 14:58:18 +1100
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-01-31 14:58:18 +1100
commit82e31b6d8d0531b0528d32983c6bdadc311feba1 (patch)
treecdd8ae4567d64cb0aaf6a9d3536e61f32304aee7 /src/utils/system.ts
parentbar: tray colour symbolic icons (diff)
downloadcaelestia-shell-82e31b6d8d0531b0528d32983c6bdadc311feba1.tar.gz
caelestia-shell-82e31b6d8d0531b0528d32983c6bdadc311feba1.tar.bz2
caelestia-shell-82e31b6d8d0531b0528d32983c6bdadc311feba1.zip
bar: use nf icons for os icon
Diffstat (limited to 'src/utils/system.ts')
-rw-r--r--src/utils/system.ts12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/utils/system.ts b/src/utils/system.ts
index 31e9cfd..8180e48 100644
--- a/src/utils/system.ts
+++ b/src/utils/system.ts
@@ -56,13 +56,11 @@ export const notify = (props: {
export const osId = GLib.get_os_info("ID") ?? "unknown";
export const osIdLike = GLib.get_os_info("ID_LIKE");
-export const osIcon = String.fromCodePoint(
- (() => {
- if (osIcons.hasOwnProperty(osId)) return osIcons[osId];
- if (osIdLike) for (const id of osIdLike.split(" ")) if (osIcons.hasOwnProperty(id)) return osIcons[id];
- return 0xf31a;
- })()
-);
+export const osIcon = (() => {
+ if (osIcons.hasOwnProperty(osId)) return osIcons[osId];
+ if (osIdLike) for (const id of osIdLike.split(" ")) if (osIcons.hasOwnProperty(id)) return osIcons[id];
+ return "";
+})();
export const currentTime = Variable(GLib.DateTime.new_now_local()).poll(1000, () => GLib.DateTime.new_now_local());
export const bindCurrentTime = (format: string, fallback?: (time: GLib.DateTime) => string) =>