Files
quickshell/modules/bar/widgets/Clock.qml
T
2025-11-26 16:16:42 +01:00

25 lines
481 B
QML

import QtQuick
import Quickshell
import Quickshell.Hyprland
Text {
id: timeDisplay
property string currentTime: ""
text: currentTime
color: "#ffffff"
font.pixelSize: 14
font.family: "Inter, sans-serif"
//Update time every second
Timer {
interval: 1000
running: true
repeat: true
onTriggered: {
var now = new Date()
timeDisplay.currentTime = Qt.formatTime(now, "hh:mm:ss")
}
}
}