How can I change the Ubuntu 20.04 login screen theme or background?
In the previous version 19.10, I can change it from the CSS file under Yaru theme but now there is no CSS file.
20.04cssgdmlogin-screenthemes
How can I change the Ubuntu 20.04 login screen theme or background?
In the previous version 19.10, I can change it from the CSS file under Yaru theme but now there is no CSS file.
Best Answer
In previous versions of Ubuntu since its introduction of gdm3 for login greeter, the style sheet file is directly available to edit.
for example:
are the files being used as alternatives.
The name of alternatives is
gdm3.css
.for Ubuntu 20.04 the equivalent to above is
gdm3-theme.gresource
from the core files of Ubuntu, the config for gdm is
the above means that one needs to edit the file
gdm3.css
inside the.gresource
file from the aboveupdate-alternatives
result. Or install some other.gresource
files which have the compatibility for Ubuntu 20.04. for example in above output you have the choice ofas an alternative. If you trust some other (external sources)
.gresource
files that have the compatibility for Ubuntu 20.04, You can install them as an alternative and use it.If you want to edit,
for example, you can extract the
gdm3.css
and see the color that is configured for login screen background.run the below commands one by one
some of the content:
Editing this content with your required content and recompiling it to create new
.gresource
file is required. After which you can install this new.gresource
file as an alternative and select it.How to extract and compile?
Disclimer: this link is only for Idea. Proper making and configuration is required for getting things to work for Ubuntu 20.04 Otherwise system will be bricked. Please note that this post is quite older and contents vary from Ubuntu 20.04.
Also note that the package
libglib2.0-dev
is required to compile the.gresource
file.Well, seems the process is very heavy just for changing the login screen background, rite? what if you want to change the background Image or color of the Login screen frequently?
Workaround 1
go for this for complete flexibility. But risk of breaking the system if wrongly edited the contents. Of course recovery is easy also.
Workaround 2
go for this for changing login background with Image/ Color with a script.
you can download the
focalgdm3
file via command lineOnce you downloaded the script
focalgdm3
.Make sure you have installed the required package,
libglib2.0-dev
.If not installed, Install it with the command
run the below command to set the Image as background..
run the below command to set the Color as background..
(Change
#aAbBcC
with any valid Hex Color Code)to reset everything that the script made run the below command with root privileges