LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (http://www.linuxquestions.org/questions/linux-software-2/)
-   -   Fluxbox can't set background! (http://www.linuxquestions.org/questions/linux-software-2/fluxbox-cant-set-background-451248/)

humbletech99 06-03-2006 01:29 PM

Fluxbox can't set background!
 
I've had this problem for quite and while and it's driving me nuts...

When I change to a style in Fluxbox the style doesn't set the background, even though the style is correct, this happens for every single style, including the default ones. The style will set the window decorations and the taskbar but not the background.

This problem is a configuration issue because when I start fluxbox in a fresh user account and select the same styles, they all set the background image correctly every time - there is noting wrong with the styles themselves. When logged in as my regular user I can set the backgound myself using fbsetbg. Fbsetbg -i tells me I am using Esetroot:
Code:

$ fbsetbg -i
Esetroot is a nice wallpapersetter. You won't have any problems

rubbing salt in the wound? The thing is, fbsetbg does work, at least if I type it into an xterm myself, and the styles use the rootcommand fbsetbg /path/to/jpeg to set the wallpaper so I don't understand why this doesn't work.

All suggestions welcome!

beagle2 06-03-2006 01:59 PM

Dont know if you have seen this http://fluxbox.sourceforge.net/docbo...l/chap-bg.html but you might have to edit your ~/.fluxbox/init file if its overriding the theme background.

oldsko0l 06-03-2006 02:34 PM

yum install feh
or apt-get install feh

and then in ~/.fluxbox/init you add this
feh --bg-scale /home/oldsko0l/.fluxbox/backgrounds/Spycho-1024.jpg

in the right of this
session.screen0.rootCommand:

humbletech99 06-03-2006 02:34 PM

the line in my init file is:
Code:

session.screen0.rootCommand:    fbsetbg -l
i'll try commenting this out and see if it works...

EDIT: IT works!

The issue now is how do you set another background and then have it re-set it the next time you log in, this is what fgsetbg -l was good at, but now it seems I have to choose between being able to have a changeable wallpaper or having a style settable wallpaper..

beagle2 06-03-2006 03:43 PM

Yeah thats what I ended up with, have to set the background manually. It does work but not quite as easily as just changing the theme.

humbletech99 06-03-2006 03:57 PM

but every time you log off and back in the background goes back to the theme's background...

irritating if you try using a background other than the one from your current theme.

oldsko0l 06-03-2006 04:28 PM

change it in the init file then it will load it automatically

beagle2 06-03-2006 05:13 PM

This is in my init file:
session.screen0.rootCommand: fbsetbg -f /home/brads/neuron1.jpg

Of course if I change theme the background has to be changed manually.

dive 06-03-2006 07:58 PM

If you are using a recent version (I think 0.9.15.1 onwards) the command used in styles has changed and the 'rootcommand' won't recognised.

Read the changelog on fluxbox site for info on the new commands.


All times are GMT -5. The time now is 08:04 AM.