How do I remove the clock shown on the Ubuntu lock screen?

2

1

I'm using Ubuntu 18.04.

I want the remove the digital clock from the lock screen because I just want to see a good wallpaper there, unobstructed.

How do I go about this?

involtus

Posted 2019-01-04T18:39:52.410

Reputation: 136

Question was closed 2019-04-07T21:07:07.827

I'm voting to close this question because it has been cross posted to https://askubuntu.com/questions/1107000/removing-clock-from-the-lock-screen/1107032#1107032

– Mokubai – 2019-04-07T21:07:07.827

Answers

0

removing the clock is not possible unless digging the core files of gnome-shell files which is very difficult.

instead you can hide it by editing ubuntu.css file.

Disclaimer: playing with gdm3 files is very dangerous, small mistakes will stop access to gnome desktop session. Only tty will work. i have several times reinstalled Ubuntu in such cases. although i have successfully hidden the clock-display on lock-screen. proceed with your own risk.

open the file /usr/share/gnome-shell/theme/ubuntu.css with below command.

sudo -H gedit /usr/share/gnome-shell/theme/ubuntu.css

search for "screen-shield" and find the below content

.screen-shield-clock-time {
  font-size: 72pt;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
  font-feature-settings: "tnum"; }

.screen-shield-clock-date {
  font-size: 28pt;
  font-weight: normal; }

then make the font-sizes to 0 like below

.screen-shield-clock-time {
  font-size: 0pt;
  text-shadow: 0px 2px 2px rgba(0, 0, 0, 0.4);
  font-feature-settings: "tnum"; }

.screen-shield-clock-date {
  font-size: 0pt;
  font-weight: normal; }

save the file, close and reboot.

Fat Mind

Posted 2019-01-04T18:39:52.410

Reputation: 101