You are not logged in.

#1 2019-11-30 10:27:42

attoparsec
New Member
Registered: 2019-11-30
Posts: 3

how to set just a solid color as wallpaper

hello !
is there a way to select just a solid color and no wallpaper image in nitrogen ?
the command line includes a --set-color option but it doesn't seem to work.

thnx,
-ap-

Offline

#2 2019-11-30 10:59:07

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,116

Re: how to set just a solid color as wallpaper

You can use xsetroot to set a color for the desktop. Should already be installed.

Comment out the nitrogen command in the openbox autostart file and use something like:

xsetroot -solid "#000000" &

to set the background color. You can use a color name (without the quote marks) instead of the number.

The man page for xsetroot has some other options.

Last edited by PackRat (2019-11-30 10:59:35)


You must unlearn what you have learned.
    -- yoda

Offline

#3 2019-11-30 13:38:17

clusterF
Member
Registered: 2019-05-07
Posts: 294

Re: how to set just a solid color as wallpaper

^ or

hsetroot -solid "#000000"

"Common sense is like deodorant, those who need it the most never use it."

git: clusterF

Offline

#4 2019-11-30 13:48:07

attoparsec
New Member
Registered: 2019-11-30
Posts: 3

Re: how to set just a solid color as wallpaper

thnx for answer @PackRat.

i have tried xsetroot and strangely it changes the conky background color but the rest of the desktop stays the same. it has no effect if i disable conky in autostart.

for now, i have created a small, transparent .png image and use nitrogen to set the bgcolor and the "wallpaper".
it does not survive a reboot so i am currently using

nitrogen --force-setter=xwindows --set-color=#204040 --set-tiled ~/Pictures/wallpapers/glass.png &>/dev/null

in my ~/.config/openbox/autostart

it works, but it's an ugly kludge.

(nitrogen devs: can we please have a "no wallpaper" option ?)

-ap-

Offline

#5 2019-11-30 14:04:54

PackRat
jgmenu user Numero Uno
Registered: 2015-10-02
Posts: 1,116

Re: how to set just a solid color as wallpaper

Did you log out and log back in? That should clear the wallpaper.

If not you can install hsetroot and try that. Similar to xsetroot but has options for gradients and other effects.


You must unlearn what you have learned.
    -- yoda

Offline

#6 2019-11-30 15:58:23

attoparsec
New Member
Registered: 2019-11-30
Posts: 3

Re: how to set just a solid color as wallpaper

i have rebooted the box with the xsetroot in the startup script (and nitrogen commented out) but it doesn't seem to work.

on the other hand it seems that

 nitrogen --force-setter=xwindows --restore 

works in the startup script with both conky enabled/disabled.

Offline

#7 2019-11-30 19:18:52

ohnonot
...again
Registered: 2015-09-29
Posts: 4,159
Website

Re: how to set just a solid color as wallpaper

attoparsec wrote:

for now, i have created a small, transparent .png image and use nitrogen to set the bgcolor and the "wallpaper".

This should be the way to do it with nitrogen.
If it doesn't apply, I seem to remember there were some other problems with nitrogen that have nothing to do with setting only a color.

I don't think your solution is a kludge, but you could just as well use another (simpler) wallpaper setter.
Not sure why you have difficulties with that; are you using a desktop manager?

And you could also use a 1x1px PNG that has your chosen color (no need for transparency).

Offline

Board footer

Powered by FluxBB