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.
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.
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
for changing login background with Image/ Color/ Gradient Horizontal/Vertical with a script.
you can download the
ubuntu-gdm-set-background
file via command lineOnce you downloaded the script
ubuntu-gdm-set-background
.Make sure you have installed the required package,
libglib2.0-dev-bin
.If not installed, Install it with the command
there are four options
background with image
background with color
background with gradient horizontal ( requires two valid hex color inputs)
background with gradient vertical ( requires two valid hex color inputs)
tip: be ready with valid hex color code in place of below example like
#aAbBcC
or#dDeEfF
. Change them to your preferred hex color codes. you may choose colors from https://www.color-hex.com/Example Commands:
try Ctrl+Alt+F1 to go the gdm screen to see the change.
If change does not appear, then restart gdm with below command
Easy! Just download the script from https://github.com/thiggy01/ubuntu-20.04-change-gdm-background, chmod +x the script, run like this:
First, install this package:
Now, run the script:
To restore default background:
This only works on 20.04.
You can use https://github.com/juhaku/loginized which is an
elegant software
to update GDM3 theme for Ubuntu 20.04. With this you can changegtk-theme
,login screen background
andscreen shield wallpaper
.If you also want to change
cursor-theme
andicon-theme
you can usegdm3setup
.Hope that helps!