Bug 472587

Summary: Option to hide clock from login & lock screens *completely*
Product: [Applications] systemsettings Reporter: Be <be.0>
Component: generalAssignee: Be <be.0>
Status: RESOLVED FIXED    
Severity: wishlist CC: nate, visual-design
Priority: NOR    
Version: 5.27.8   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.2.0
Sentry Crash Report:

Description Be 2023-07-24 18:27:59 UTC
SUMMARY
I would like to not have to see a clock when using my computer. This is already easy to configure in Plasma by removing the clock applet from the default panel, but there is still a clock on the login and lock screens. System Settings > Workspace Behavior > Screen Locking already has a boolean option "Clock: Keep visible when unlocking prompt disappears" but this has no effect on the login screen before logging in or starting to type on the lock screen.

I have hacked my own quick solution to this by deleting the the labels from the QML in /usr/share/sddm/themes/breeze/components/Clock.qml but I would like a permanent solution that doesn't require editing code.

ADDITIONAL INFORMATION
It is currently unclear how Plasma will handle logins in the future:
https://invent.kde.org/plasma/plasma-desktop/-/issues/91
Comment 1 Be 2023-07-24 21:08:51 UTC
I also hacked the Clock component in /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml to set the visible property to always `false` to hide the clock from the lock screen.
Comment 2 Nate Graham 2023-09-07 22:03:29 UTC
There is an option for this in System Settings > Workspace Behavior > Screen Locking.
Comment 3 Be 2023-09-27 17:24:44 UTC
As noted in the first comment, the existing configuration option has no effect on the login screen before logging in or starting to type on the lock screen. I don't know what the point of the existing option is or if it's really worthwhile to have it there. I suggest replacing it with a simple boolean toggle to hide the clock from both the login screen and lock screen.
Comment 4 Be 2024-04-24 23:35:26 UTC
After updating to KDE 6, the file /usr/share/plasma/look-and-feel/org.kde.breeze.desktop/contents/lockscreen/LockScreenUi.qml is still there for the lock screen, but the file that needs editing for the login screen has moved to /usr/share/sddm/themes/breeze/Main.qml. In both cases, set the `visible` property to always `false` for the clock.

I would like a proper solution to this that doesn't require me hacking QML files after package updates. SDDM is still around in KDE 6.0, but looking at https://invent.kde.org/plasma/plasma-desktop/-/issues/91 it seems its future in KDE is still unclear? In the meantime, changing the existing "Clock: Keep visible when unlocking prompt disappears" to a simple boolean toggle to show the clock on the lock screen could be done regardless of whatever happens with the display manager.
Comment 7 Nate Graham 2024-08-09 17:22:12 UTC
Git commit 7a98fd6fb68e861ed92673b41e09dcb0d64cbedd by Nate Graham, on behalf of Be Ing.
Committed on 09/08/2024 at 17:22.
Pushed by ngraham into branch 'master'.

Use simple toggle to hide/show clock on lock screen

Part of https://invent.kde.org/plasma/plasma-desktop/-/issues/133.

This replaces the existing option "Clock: Keep visible when
unlocking prompt disappears" with a simple toggle that controls
whether the clock is always or never shown on the lock screen.

From the discussion when the old option was implemented,
(https://phabricator.kde.org/D24893) the use case for the old
option was for users who want an unobstructed view of the lock
screen background. This use case can still be satisfied by the new
option, and perhaps the simplicity of the new option will make it
easier to discover, as the old description in the UI was rather
awkward.

The difference with the new option is that it does not
matter whether the user is currently typing their password. With
the old option, the clock would still be shown when the user moved
the mouse or started typing, which didn't give users a choice to
not see a clock at all.
FIXED-IN: 6.2.0

M  +2    -2    desktoppackage/contents/lockscreen/LockScreenUi.qml
M  +2    -2    desktoppackage/contents/lockscreen/config.qml
M  +1    -1    desktoppackage/contents/lockscreen/config.xml

https://invent.kde.org/plasma/plasma-desktop/-/commit/7a98fd6fb68e861ed92673b41e09dcb0d64cbedd
Comment 8 Nate Graham 2024-08-09 17:31:38 UTC
Git commit 5fbc85d9a659bf50ea33724bda80e68c5ca7f8ce by Nate Graham, on behalf of Be Ing.
Committed on 09/08/2024 at 17:31.
Pushed by ngraham into branch 'master'.

SDDM theme: add option to hide clock

Part of https://invent.kde.org/plasma/plasma-desktop/-/issues/133.

UI to change it is in https://invent.kde.org/plasma/sddm-kcm/-/merge_requests/74

M  +2    -2    sddm-theme/Main.qml
M  +1    -0    sddm-theme/theme.conf.cmake

https://invent.kde.org/plasma/plasma-desktop/-/commit/5fbc85d9a659bf50ea33724bda80e68c5ca7f8ce
Comment 9 Nate Graham 2024-08-09 17:50:35 UTC
Git commit 976158932b1d094ff70a5ebd0b1cb7807fb4681f by Nate Graham, on behalf of Be Ing.
Committed on 09/08/2024 at 17:50.
Pushed by ngraham into branch 'master'.

Remove alwaysShowClock option from WallpaperFader

Part of https://invent.kde.org/plasma/plasma-desktop/-/issues/133.

It is no longer used since changing to a simple binary preference
for showing or hiding the clock.

M  +0    -18   lookandfeel/components/WallpaperFader.qml

https://invent.kde.org/plasma/plasma-workspace/-/commit/976158932b1d094ff70a5ebd0b1cb7807fb4681f
Comment 10 Nate Graham 2024-09-16 12:37:52 UTC
Git commit bc5773f99d83c898d38db6f16311bb3299c3502c by Nate Graham, on behalf of Be Ing.
Committed on 16/09/2024 at 12:37.
Pushed by ngraham into branch 'master'.

Add option to hide clock in Breeze theme

Closes https://invent.kde.org/plasma/plasma-desktop/-/issues/133.

Requires https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2366

M  +3    -0    src/sddmkcm.cpp
M  +16   -5    src/themesmodel.cpp
M  +2    -0    src/themesmodel.h
M  +10   -1    src/ui/main.qml

https://invent.kde.org/plasma/sddm-kcm/-/commit/bc5773f99d83c898d38db6f16311bb3299c3502c
Comment 11 Be 2024-09-16 17:06:34 UTC
Note that the GUI for configuring hiding the clock from the login screen will be in 6.3, not 6.2. In 6.2, manually editing the SDDM theme's theme.conf.user file to change `showClock = true` to `showClock = false` should hide the clock.