quickshell restruct and work
This commit is contained in:
18
quickshell/bar/widgets/Time.qml
Normal file
18
quickshell/bar/widgets/Time.qml
Normal file
@@ -0,0 +1,18 @@
|
||||
pragma Singleton
|
||||
|
||||
import Quickshell
|
||||
import Quickshell.Io
|
||||
import QtQuick
|
||||
|
||||
Singleton {
|
||||
id: root
|
||||
readonly property string time: {
|
||||
Qt.formatDateTime(clock.date, "ddd d MMM [hh:mm]")
|
||||
}
|
||||
|
||||
|
||||
SystemClock {
|
||||
id: clock
|
||||
precision: SystemClock.Minutes
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user