Compare commits
No commits in common. "653f5814b3d0883658723916601e8b744613ad19" and "b84b29ed7f3134f9366bc8cc1858186f402a87a4" have entirely different histories.
653f5814b3
...
b84b29ed7f
3 changed files with 7 additions and 16 deletions
|
|
@ -7,9 +7,11 @@ Scope {
|
||||||
PanelWindow {
|
PanelWindow {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
anchors.top: true
|
anchors {
|
||||||
anchors.left: true
|
top: true
|
||||||
anchors.right: true
|
left: true
|
||||||
|
right: true
|
||||||
|
}
|
||||||
|
|
||||||
implicitHeight: Dimensions.bar.height
|
implicitHeight: Dimensions.bar.height
|
||||||
color: 'transparent'
|
color: 'transparent'
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ Item {
|
||||||
|
|
||||||
StyledText {
|
StyledText {
|
||||||
id: text
|
id: text
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.centerIn: parent
|
||||||
topPadding: Dimensions.clock.verticalPadding
|
topPadding: Dimensions.clock.verticalPadding
|
||||||
bottomPadding: Dimensions.clock.verticalPadding
|
bottomPadding: Dimensions.clock.verticalPadding
|
||||||
leftPadding: Dimensions.clock.horizontalPadding
|
leftPadding: Dimensions.clock.horizontalPadding
|
||||||
|
|
|
||||||
|
|
@ -1,17 +1,6 @@
|
||||||
import Quickshell
|
import Quickshell
|
||||||
import Quickshell.Io
|
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
|
|
||||||
IconImage {
|
IconImage {
|
||||||
id: root
|
source: Quickshell.iconPath("archlinux-logo")
|
||||||
|
|
||||||
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