Skip to content

Instantly share code, notes, and snippets.

View torma616's full-sized avatar
😺

Torma torma616

😺
  • New York
  • 21:50 (UTC -05:00)
View GitHub Profile
@torma616
torma616 / LockScreenUi.patch
Last active October 17, 2024 06:16
KDE Plasma 6 24-hr Clock on Lockscreen
--- /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml.original 2024-08-27 03:48:33.088548792 -0400
+++ /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml 2024-08-27 10:50:45.599963229 -0400
@@ -224,6 +224,13 @@
anchors.horizontalCenter: parent.horizontalCenter
y: (mainBlock.userList.y + mainStack.y)/2 - height/2
Layout.alignment: Qt.AlignBaseline
+ Component.onCompleted: {
+ function updateClockString() {
+ clock.children[0].text = Qt.formatTime(clock.data[0].data["Local"]["DateTime"], 'hh:mm:ss');
+ }