mirror of
https://github.com/end-4/dots-hyprland.git
synced 2026-06-06 23:39:27 -05:00
19 lines
414 B
QML
19 lines
414 B
QML
import QtQuick
|
|
import Quickshell
|
|
import Quickshell.Io
|
|
// with this line our type becomes a singleton
|
|
pragma Singleton
|
|
|
|
// your singletons should always have Singleton as the type
|
|
Singleton {
|
|
property string time: Qt.formatDateTime(clock.date, "hh:mm")
|
|
property string date: Qt.formatDateTime(clock.date, "dddd, dd/MM")
|
|
|
|
SystemClock {
|
|
id: clock
|
|
|
|
precision: SystemClock.Minutes
|
|
}
|
|
|
|
}
|