summaryrefslogtreecommitdiff
path: root/.config/quickshell/Time.qml
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2026-01-14 14:47:59 -0500
committerSam Nystrom <sam@samnystrom.dev>2026-01-14 14:47:59 -0500
commit2c6ae8a4287ffad33a8c41b08ef47b62494a67dd (patch)
tree96d6204a3591db301f618ec1a6a8e157087f311d /.config/quickshell/Time.qml
parent116f27ebb1340044139779a47b54e6b099bb7caa (diff)
Add quickshell config
Diffstat (limited to '.config/quickshell/Time.qml')
-rw-r--r--.config/quickshell/Time.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/.config/quickshell/Time.qml b/.config/quickshell/Time.qml
new file mode 100644
index 0000000..b54b12f
--- /dev/null
+++ b/.config/quickshell/Time.qml
@@ -0,0 +1,15 @@
+pragma Singleton
+
+import Quickshell
+import Quickshell.Io
+import QtQuick
+
+Singleton {
+ id: root
+ readonly property string time: Qt.formatDateTime(clock.date, "MMM d hh:mm:ss")
+
+ SystemClock {
+ id: clock
+ precision: SystemClock.Seconds
+ }
+}