diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-31 14:58:18 +1100 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-01-31 14:58:18 +1100 |
| commit | 82e31b6d8d0531b0528d32983c6bdadc311feba1 (patch) | |
| tree | cdd8ae4567d64cb0aaf6a9d3536e61f32304aee7 /src/utils/system.ts | |
| parent | bar: tray colour symbolic icons (diff) | |
| download | caelestia-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.ts | 12 |
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) => |