Compare commits
3 commits
b84b29ed7f
...
653f5814b3
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
653f5814b3 | ||
|
|
c9d925c3b8 | ||
|
|
5bd9b538b6 |
3 changed files with 16 additions and 7 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue