mirror of
https://github.com/belsabbagh/dotfiles.git
synced 2026-04-11 17:47:09 +00:00
21 lines
414 B
QML
Executable File
21 lines
414 B
QML
Executable File
pragma Singleton
|
|
import Quickshell
|
|
import QtQuick
|
|
|
|
Singleton {
|
|
id: root
|
|
|
|
property alias date: clock.date // expose raw date/time
|
|
readonly property SystemClock clock: clock
|
|
|
|
SystemClock {
|
|
id: clock
|
|
precision: SystemClock.Seconds
|
|
}
|
|
|
|
// Helper function if you still want formatting ability:
|
|
function format(fmt) {
|
|
return Qt.formatDateTime(clock.date, fmt)
|
|
}
|
|
}
|