You are not logged in.
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
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
Online
^ or
hsetroot -solid "#000000"
Offline
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
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
Online
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
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