This quick tutorial shows how to easily set a solid color as background wallpaper in your Ubuntu 22.04 or Ubuntu 24.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 (or Appearance). Then, your image will be there as a choice.
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 either Ubuntu Software or App Center:
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.
For other Desktop Environments:
The steps above was written for the default GNOME Desktop. For other desktop environments, see below:
XFCE (XUbuntu)
For XFCE, the default desktop in XUbuntu and many other Linux, right-click on desktop and select “Desktop Settings“.
In pop-up dialog, choose “Solid color” from Color select box, and pick a color right after it. Finally, set Style to “None” to make it work.
KDE Plasma (KUbuntu, Ubuntu Studio)
KDE user can right-click on desktop and select “Configure Desktop and Wallpaper” to launch the configure dialog.
Then, choose “Plain Color” as Wallpaper type, and set your favorite color, finally click “Apply”.
MATE (Ubuntu MATE)
For MATE desktop, also right-click on desktop and select “Change Desktop Background” from pop-up menu.
Then, select the first image in top-left as background, and choose “Solid color” from Colors selection box, and click color picker to choose a color as you want.
Cinnamon (Ubuntu Cinnamon)
Also, right-click on desktop and select “Change Desktop Background”.
Then in pop-up dialog, navigate to “Settings” page, and do:
- Set “Picture aspect” to No picture.
- Change Background color to Solid color and choose a color.
LXQt (LUbuntu)
For LXQt desktop, right-click on desktop and select “Desktop Preferences” from context menu.
In pop-up dialog, navigate to “Background” tab, then do:
- Choose color via the button under “Background”.
- Select “Fill with background color only” for Wallpaper mode.
- Finally, click Apply.
I don’t understand why they removed the ability to simply have a solid color background, but this page is useful for dealing with that craziness.
Thanks!
Thank you.
O!!! It was difficult for me but i did exactly, what you discribed. It worked, thank you very much! (My blue is #009ACD)
Thanks for sharing this.
Ubuntu is going backwards! So, after years of loving Ubuntu I’m going to Red Hat. Stable, not stupid. I like so many others need an appliance not another job. Our computers and phones are where so much of our lives now reside, that having to rip the guts out of your computer or switch from phone to phone at the whim of a tech exec in need of a new boat every few years pisses me off.
Windows never got better than XP, IOS was always junk, Android is just crippled Linux, Ubuntu never got better than 16.05, and Firefox never got better than Netscape.
Every time I “upgrade” to a “faster more efficient” O/S my computer slows down. And I still can’t do anything above what I could do on OS/2, except now it happens slower and requires more hardware.
But this works only for a gnome dekstop environment. Is there a solution for the other desktop environments, beside creating an image with a solid color?