LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   set a background permanently in fluxbox (http://www.linuxquestions.org/questions/slackware-14/set-a-background-permanently-in-fluxbox-135138/)

Vincent 01-15-2004 02:21 PM

set a background permanently in fluxbox
 
I use wmsetbg in order to set a background-wallpaper. This works nicely but once I restart X the background is gone. I've tried to put a line in the ~/.fluxbox/startup file but without success.
Code:

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
wmsetbg pics/wallies/linux-1280.jpg
#
# This sets a black background

#/usr/X11R6/bin/bsetroot -solid black

Who can help? :)

Tinkster 01-15-2004 02:30 PM

I'm not using that feature, but seeing how
setroot was called with a fully qualified
path, maybe you want to do that with
wmsetbg, too? :)



Cheers,
Tink

acid_kewpie 01-15-2004 02:35 PM

personally i'd say edit the theme, change the rootCommand entry to suit your needs.

Vincent 01-15-2004 03:00 PM

I've changed the line to the full path and added the same to the root command, but it failed again. :(

Tinkster 01-15-2004 03:32 PM

How about a fully qualified path to the picture? :)

Btw, what I do (old flux 0.1.14) is to run
bsetbg <path to images>&
from
~/.xsession ;) ... no modfied themes or anything.


Cheers,
Tink

Scruff 01-15-2004 03:48 PM

I just include the wmsetbg command at the end of my .xinitrc file like this:

# Start the window manager:
exec /usr/X11R6/bin/fluxbox &
wmsetbg custom/wallpaper/chaos.jpg

Make sure to include the '&' at the end of the exec line so the script will continue past to the next line.

Vincent_Vega 01-15-2004 11:37 PM

go to the file for the style you're using (/usr/X11R6/shared/fluxbox/styles/<style_name>) and edit the rootCommand line changing the path to the pic of your choice. Worked fine for me.
**edit**
or cp the style file to another name all together and edit that one so you can keep the original like it was.

Scruff 01-15-2004 11:43 PM

Vincent Vega....
Cool nick ;)

Vincent_Vega 01-15-2004 11:48 PM

thanks!!

nesware 01-16-2004 06:02 AM

or put the style in ~/.fluxbox/styles and edit the rootCommand there

chemtraX 01-16-2004 01:32 PM

fbsetbg is the replacement for bsetbg in fluxbox. you can have permenant wallpaper setting everytime you login to fluxbox. just set the rootCommand in ~/.fluxbox/init file:

Code:

*.*.rootCommand        DISPLAY:0.0  fbsetbg -l
also download and install fluxbox-generate_menu.(in my opinion) a great combination with the fbsetbg tool.

give it a try...sure it will look nice on your fluxbox desktop.

download the tools here and dont forget to read the howto.

http://www.fluxbox.org/download.php


All times are GMT -5. The time now is 10:13 PM.