This commit is contained in:
Miguel Palhas
2025-06-15 09:45:50 +01:00
parent 1aea9ec423
commit a849ff0c7b
3 changed files with 59 additions and 0 deletions
@@ -0,0 +1,28 @@
import Quickshell
import Quickshell.Io
import QtQuick
Scope {
Variants {
model: Quickshell.screens;
delegate: Component {
PanelWindow {
property var modelData
screen: modelData
anchors {
top: true
left: true
right: true
}
implicitHeight: 30
ClockWidget {
anchors.centerIn: parent
}
}
}
}
}
@@ -0,0 +1,5 @@
import QtQuick
Text {
text: Time.time
}
@@ -0,0 +1,26 @@
pragma Singleton
import Quickshell
import Quickshell.Io
import QtQuick
Singleton {
id: root
property string time
Process {
id: dateProc
command: ["date"]
running: true
stdout: StdioCollector {
onStreamFinished: root.time = this.text
}
}
Timer {
interval: 1000
running: true
repeat: true
onTriggered: dateProc.running = true
}
}