How to Change Ubuntu 21.10 GDM background to a Image or to a Color

How to Change Ubuntu 21.10 gdm background to a Image or to a Color.

Below Pic is of Ubuntu 20.04 GDM Login Screen

Is there a way similar to this post which is for Ubuntu 20.04 How do I change login screen theme or background in Ubuntu 20.04?


For Changing the GDM Login Screen Background with a Image, Color or Gradient Horizontal or Vertical. There is a script in github. https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background.

You can download the script with the below command

wget -qO - https://github.com/PRATAP-KUMAR/ubuntu-gdm-set-background/archive/main.tar.gz | tar zx --strip-components=1 ubuntu-gdm-set-background-main/ubuntu-gdm-set-background

Once the script is downloaded, you can read the help with below command

./ubuntu-gdm-set-background --help

to set the background as image, run the below command. Replace the path of the image to your preferred one.

sudo ./ubuntu-gdm-set-background --image /home/user/backgrounds/image.jpg

to set the background as color, run the below command. Replace the Hex Color Code with your preferred one.

sudo ./ubuntu-gdm-set-background --color \#aAbBcC

to set the background as gradient's horizontal or vertical. Run the below command with either horizontal or vertical as choice and by replacing the two Hex color codes as you wish

sudo ./ubuntu-gdm-set-background --gradient horizontal \#aAbBcC \#dDeEfF


impishgdm:

  • Examples do not work. Attempting to set an image or color complains that you didn't specify --set
  • Using --set does not work. Script still prompts for color or image later anyway
  • Doesn't handle filepaths with spaces.

impish-gdm-set-background:

  • Seems to work as advertised - at least for setting and image.
  • Handles filepaths with spaces.

Why doesn't someone just combine all of these different gdm background checkers to sense the disto and do the right thing? In fact, it should be part of Ubuntu/GDM.