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.
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.
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.