2025-01-07 22:37:12 +04:00
|
|
|
import Quickshell
|
|
|
|
import Quickshell.Io
|
|
|
|
import QtQuick
|
|
|
|
|
|
|
|
ShellRoot {
|
|
|
|
|
|
|
|
ReloadPopup {}
|
|
|
|
property string time;
|
|
|
|
|
|
|
|
Variants {
|
|
|
|
model: Quickshell.screens
|
|
|
|
|
|
|
|
PanelWindow {
|
|
|
|
property var modelData
|
|
|
|
screen: modelData
|
|
|
|
|
|
|
|
anchors {
|
|
|
|
top: true
|
|
|
|
left: true
|
|
|
|
right: true
|
|
|
|
}
|
|
|
|
|
2025-01-08 08:29:37 +04:00
|
|
|
height: 30
|
|
|
|
|
2025-01-07 22:37:12 +04:00
|
|
|
|
|
|
|
Text {
|
|
|
|
anchors.centerIn: parent
|
|
|
|
|
|
|
|
// now just time instead of root.time
|
|
|
|
text: time
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Process {
|
|
|
|
id: dateProc
|
|
|
|
command: ["date"]
|
|
|
|
running: true
|
|
|
|
|
|
|
|
stdout: SplitParser {
|
|
|
|
// now just time instead of root.time
|
|
|
|
onRead: data => time = data
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
Timer {
|
|
|
|
interval: 1000
|
|
|
|
running: true
|
|
|
|
repeat: true
|
|
|
|
onTriggered: dateProc.running = true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|