2

Just installed my first Linux distro, am really impressed with the interface and functionally of it all.

I'd like to know how to change the default font for the lock screen for the time. I want to use this font for the lock screen: https://www.dafont.com/alien-encounters.font

In particular, Alien-Encounters-Italic.ttf

enter image description here

So in linux I imagine I simply download the.ttf file and somehow link that .ttf file for default time font, but not sure how this is done.

Please any help would be amazing.

Thanks

PRATAP
  • 22,460
Ubun_2
  • 23

1 Answers1

0

This Post is similar to your Question, follow this post Suppress display of time on Ubuntu lock screen and do the edits as below.

edits in the below part in the css file will make the changes in the Question.

.unlock-dialog-clock-time {
  font-size: 64pt;
  padding-top: 42px;
  font-feature-settings: "tnum";
}

.unlock-dialog-clock-date { font-size: 16pt; font-weight: normal; }

changes need to be edit like below (but not limited)

.unlock-dialog-clock-time {
font: italic 64pt Alien Encounters;
padding-top: 42px;
font-feature-settings: "tnum"; }

.unlock-dialog-clock-date { font: italic 16pt Alien Encounters; font-weight: normal; }

Disclimer: Editing the css files in .gresouce files are very risky if wrong inputs are provided/edited. You may struck up with login loops or other theme issues.

you may use this script. https://github.com/PRATAP-KUMAR/LinkOnly/blob/main/Alien%20Encounter%20Font%20for%20Lock%20Screen

Tested in Arch Linux.

enter image description here

PRATAP
  • 22,460
  • 1
    YOU ARE AWESOME! THANK YOU SO MUCH! – Ubun_2 Nov 16 '21 at 06:50
  • Sorry I know this is a little late, but where would I actually be putting that code in the github link? – Ubun_2 Nov 17 '21 at 04:20
  • Hi.. you need to download the script and run it. Thats it. https://github.com/PRATAP-KUMAR/LinkOnly/blob/main/Alien%20Encounter%20Font%20for%20Lock%20Screen – PRATAP Nov 17 '21 at 04:25
  • Copy paste above content of 100 lines script in a plain text file and save it as alienFont.sh then run the script sudo bash ./alienFont.sh – PRATAP Nov 17 '21 at 04:27
  • I copied the 100 lines into a plain script and saved it as alienFont.sh, for some reason it still isn't showing. Do I have to download the github script. And do I need to download the font from dafont.com? – Ubun_2 Nov 17 '21 at 05:16
  • For fonts.. yes you need to download it n keep in .local/share/fonts – PRATAP Nov 17 '21 at 05:17
  • after saving 100 lines in alienFonts.sh file. Did you run sudo bash ./alienFonts.sh – PRATAP Nov 17 '21 at 05:29
  • 1
    IT WORKS, THANKS! – Ubun_2 Nov 17 '21 at 06:02