You are not logged in.

#1 2017-05-13 00:16:18

soaringowl2145
Member
Registered: 2016-12-17
Posts: 49

[SOLVED] Openbox default wallpaper is black instead of the grey.

My fresh install of openbox has a default black background instead of grey.  Has the default color changed upstream or is this packaged modified by arch to be black?

Last edited by soaringowl2145 (2017-06-25 14:38:25)

Offline

#2 2017-05-13 15:49:07

c00ter
Member
From: Alaskan in Washington State
Registered: 2014-08-28
Posts: 386

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Since when did Openbox come with any default background? Did you also install obconf/lxappearance-obconf?


UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things. -- Doug Gwyn

Offline

#3 2017-05-13 16:12:44

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Openbox doesn't have a wallpaper, nor does it set the root window color.  Openbox-session might run some other processes that do - but if you want to set the root window color, just use xsetroot.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2017-05-13 16:48:02

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

I think I know what the OP is alluding to.  I just removed the feh wallpaper setting from my openbox/autostart and upon restart, you do get a dark grey background still.  I haven't done a fresh install of openbox for quite awhile but it's always had that dark grey screen on first start-up until you set the wallpaper or color with some tool like xsetroot or feh, etc. so I don't think anything has changed.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#5 2017-05-13 19:02:59

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

I can't replicate that.  I just installed openbox, and have no configs for it, and it starts up with a black background exactly like if I start without a WM.  It's just the X11 root window, that's all.

I also checked the openbox code - there is nothing there that sets a color to the root window.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2017-05-13 21:17:50

justasug
Member
Registered: 2014-08-03
Posts: 165

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

The /usr/lib/openbox/openbox-autostart file has this:

# Set a background color
BG=""
if which hsetroot >/dev/null 2>/dev/null; then
  BG=hsetroot
elif which esetroot >/dev/null 2>/dev/null; then
  BG=esetroot
elif which xsetroot >/dev/null 2>/dev/null; then
  BG=xsetroot
fi
test -z $BG || $BG -solid "#303030"

The file, or that snippet, is exactly the same as upstream. #303030 looks pretty grey to me.

Offline

#7 2017-05-13 21:44:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Hence my saying openbox and openbox-session are different.  Openbox does not run that file - only openbox-session does.  This is even clearly described in our wiki page on openbox - that page even explicitly mentions when and how the background color is set.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2017-05-14 00:37:25

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Like I said, it's been a long time since I installed my present openbox setup, likely after changing from Alopex--remember that one Trilby--and when I checked my .xinitrc, I see I have exec openbox-session, so I guess that explains that.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#9 2017-05-16 22:10:35

soaringowl2145
Member
Registered: 2016-12-17
Posts: 49

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Thanks for helping.

Offline

#10 2017-06-24 16:39:18

soaringowl2145
Member
Registered: 2016-12-17
Posts: 49

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

So, if I am reading this correctly since I am using openbox-session, the wallpaper should be grey rather than black, right?  Is this a bug?

Offline

#11 2017-06-24 17:10:57

bgc1954
Member
From: Edmonton, AB, Canada
Registered: 2006-03-14
Posts: 1,160

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

I wouldn't call it a bug as most users change their background one way or another to suite their own preference so what it starts off with is seemingly irrelevant.


Time is a great teacher, but unfortunately it kills all its pupils ... - Louis Hector Berlioz

Offline

#12 2017-06-24 17:26:36

Gusar
Member
Registered: 2009-08-25
Posts: 3,605

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

That autostart script checks for either hsetroot, esetroot or xsetroot. If you have any of those installed, the script will run them to turn the background grey. If you don't have them installed, no new background will be set, so it remains black. Quite logical really. So no bug, just conditional behavior, exactly as specified by the script.

Offline

#13 2017-06-25 14:37:41

soaringowl2145
Member
Registered: 2016-12-17
Posts: 49

Re: [SOLVED] Openbox default wallpaper is black instead of the grey.

Gusar wrote:

That autostart script checks for either hsetroot, esetroot or xsetroot. If you have any of those installed, the script will run them to turn the background grey. If you don't have them installed, no new background will be set, so it remains black. Quite logical really. So no bug, just conditional behavior, exactly as specified by the script.

Thank you for this explanation!  I installed the package xorg-xsetroot and I now get the default behavior for making the background grey. 

This issue is now solved!

Offline

Board footer

Powered by FluxBB