[Quick Tip] How to Set Solid Color Background in Ubuntu 22.04

This quick tutorial shows how to easily set a solid color as background wallpaper in your Ubuntu 22.04 PC/laptop.

To stay focused and increase productivity, user may set a solid color desktop background which can also reduce eye strain. And, a black background will consume significantly less power especially for AMOLED displays.

If you already downloaded a solid color wallpaper from web, or created one via an image editor, simply click the “Add Picture” button in system settings -> Background. Then, your image will be there as a choice.

Add Personal Wallpapers

Set Solid color background via Dconf Editor

Instead of using an image file, there’s a hidden option that could work better! Not only for Ubuntu, it also works on Fedora, Debian, Manjaro, and other Linux with GNOME Desktop.

1. Firstly, search for and install “Dconf Editor” configuration tool from Ubuntu Software:

Or press Ctrl+Alt+T on keyboard, and run the command below in pop-up terminal to install the tool:

sudo apt install dconf-editor

2. Once installed, either press Windows (Super) key on keyboard or click the top-left corner “Activities”, then search for and open ‘Dconf Editor’

3. When the tool opens, navigate to ‘org/gnome/desktop/background‘ page. There you need to do:

  • Clear the value of ‘picture-uri‘ and ‘picture-uri-dark to disable current wallpapers for both light and dark mode. Click them one by one, disable “use default value”, and set empty content for custom value.
  • Set ‘color-shading-type’ to ‘solid’ (usually default).
  • Change value of ‘primary-color’ to display as background. (#000000 for dark, #ffffff for white. Or use color picker tool to get other color value)

For choice, you may set gradient color background, by setting ‘color-shading-type’ to ‘vertical’ or ‘horizontal’, and set color value of “secondary-color”.

Linux commands to set solid color background.

If you’re familiar with Linux command line, press Ctrl+Alt+T on keyboard to open a terminal window.

When it opens, run the commands below one by one to disable current wallpapers for light and dark mode:

gsettings set org.gnome.desktop.background picture-uri ''
gsettings set org.gnome.desktop.background picture-uri-dark ''

In case you’ve set gradient color background before, reset the “color-shading-type” via command:

gsettings reset org.gnome.desktop.background color-shading-type

Finally, run the command below in set a solid color background (total dark for example):

gsettings set org.gnome.desktop.background primary-color '#000000'

How to Restore:

To restore the changes, simply open Settings -> Background and select a wallpaper as you want. Just note that you need to do this in both Light and Dark mode in Ubuntu 22.04 LTS.