Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-01-18 04:16:18

NerdKid50
Member
Registered: 2021-12-11
Posts: 14

Trouble changing font on lock screen

Xfce 4.16
Arch Linux

Hello, how would I go about changing the font on the default xfce lock screen? I can't find any configs for it.

Offline

#2 2022-01-18 06:02:34

KBar
Member
Registered: 2021-11-05
Posts: 377

Re: Trouble changing font on lock screen

Lock screen uses LightDM's default configuration, so you probably need to modify that. There is an app just for that called LightDM GTK+ Greeter: settings. Try that and come back if it doesn't solve it.


Xubuntu 20.04

Offline

#3 2022-01-18 06:29:38

NerdKid50
Member
Registered: 2021-12-11
Posts: 14

Re: Trouble changing font on lock screen

I have tried lightdm-gtk-greeter-settings. This work for log in, but does not for the lock screen.

Offline

#4 2022-01-18 09:03:43

KBar
Member
Registered: 2021-11-05
Posts: 377

Re: Trouble changing font on lock screen

I don't use lock screen but I've searched through the code and found this ruleset. Example code tested on Xubuntu jammy-devel:

#login_window.keycap {
  font: bold 16px "Ubuntu"; 
}

Append it to your $HOME/.config/gtk-3.0/gtk.css file. Create the file if it doesn't exist yet.

GTK documentation on CSS font properties


Xubuntu 20.04

Offline

#5 2022-01-18 19:18:34

NerdKid50
Member
Registered: 2021-12-11
Posts: 14

Re: Trouble changing font on lock screen

Yep this did the trick, thanks KBar.

Offline

Board footer

Powered by FluxBB