From c9d925c3b8a0c963a07dbb6e9a31f456b84ce943 Mon Sep 17 00:00:00 2001 From: Benjamin Palko Date: Sun, 20 Jul 2025 23:44:03 -0400 Subject: [PATCH] improved, use os-release --- modules/bar/components/SystemLogo.qml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/modules/bar/components/SystemLogo.qml b/modules/bar/components/SystemLogo.qml index c7bb910..2395cd8 100644 --- a/modules/bar/components/SystemLogo.qml +++ b/modules/bar/components/SystemLogo.qml @@ -1,6 +1,17 @@ import Quickshell +import Quickshell.Io import Quickshell.Widgets IconImage { - source: Quickshell.iconPath("archlinux-logo") + id: root + + Process { + running: true + command: ["sh", "-c", ". /etc/os-release && echo $LOGO"] + stdout: StdioCollector { + onStreamFinished: () => { + root.source = Quickshell.iconPath(this.text.trim()); + } + } + } }