You are not logged in.

#1 2013-11-21 06:59:07

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

[solved] Cannot set background with xsetroot

.xinitrc contains the following:

[...]
xsetroot -solid "#ffffff"
conky &

exec openbox-session

I use xsetroot -solid "#fffff" to set my background colour to plain white.

When starting the session, the background changes to white for a few seconds before it gets reset to the default grayish colour.

Instead of xsetroot -solid "#fffff" I also tried xsetroot -solid "#ffffff" & but without any difference.

Any ideas why my changed colour gets reset?

Last edited by orschiro (2013-11-21 10:20:02)

Offline

#2 2013-11-21 07:12:39

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,645

Re: [solved] Cannot set background with xsetroot

Because starting openbox-session runs /usr/lib/openbox/openbox-autostart, and this file contains a call to set the background to gray. Either comment out the background-setting section in this file, or set your background in ~/.config/openbox/autostart (which will run after the global autostart scripts).

Last edited by 2ManyDogs (2013-11-21 07:23:44)

Offline

#3 2013-11-21 10:19:51

orschiro
Member
Registered: 2009-06-04
Posts: 2,136
Website

Re: [solved] Cannot set background with xsetroot

@2ManyDogs

Thanks! That was exactly the issue. The colour was overwritten. Setting xsetroot command in ~/.config/openbox/autostart works flawlessly.

Offline

Board footer

Powered by FluxBB