diff --git a/modules/bar/Bar.qml b/modules/bar/Bar.qml index 40c70f7..095be8c 100644 --- a/modules/bar/Bar.qml +++ b/modules/bar/Bar.qml @@ -7,11 +7,9 @@ Scope { PanelWindow { id: root - anchors { - top: true - left: true - right: true - } + anchors.top: true + anchors.left: true + anchors.right: true implicitHeight: Dimensions.bar.height color: 'transparent' diff --git a/modules/bar/components/Clock.qml b/modules/bar/components/Clock.qml index 0912d84..6e8bd8c 100644 --- a/modules/bar/components/Clock.qml +++ b/modules/bar/components/Clock.qml @@ -16,7 +16,7 @@ Item { StyledText { id: text - anchors.centerIn: parent + anchors.verticalCenter: parent.verticalCenter topPadding: Dimensions.clock.verticalPadding bottomPadding: Dimensions.clock.verticalPadding leftPadding: Dimensions.clock.horizontalPadding 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()); + } + } + } }