Click to See Complete Forum and Search --> : changing the default background in fluxbox - need help


mmills
05-09-2009, 12:22 PM
FIXED!!!



I need help changing the background in fluxbox, I did a fbackground command and when I rebooted it went back to default. :confused:

je_fro
05-09-2009, 01:43 PM
I've kept the same .fluxbox/startup file for years now, and it's where I set everything up.

Here it is:

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# bsetbg -f ~/files/images/backgrounds/5836prime-time.jpg
# /usr/libexec/gnome-settings-daemon &
# gnome-panel &
# gkrellm2 -s ss20 -w &
#xdaliclock -transparent -cycle -bw 0 -visual best -builtin1 -geometry 200x64-0-38 &
# DISPLAY=:0.1 xsetroot -solid gray5 &
# DISPLAY=:0.1 fbsetbg -f ~/files/images/backgrounds/1920/Theta\ Space.jpg
# DISPLAY=:0.0 fbsetbg -f ~/files/images/backgrounds/1920/orthohedron1920.jpg &
# DISPLAY=:0.1 gkrellm2 -w &
# DISPLAY=:0.0 gkrellm -s speedy -w &
DISPLAY=:0.0 gkrellm -w &
DISPLAY=:0.0 xscreensaver &
# xset m 1 10 &
xrdb -merge ~/.Xdefaults &
xmodmap ~/.Xmodmap &
# /usr/libexec/gnome-vfs-daemon &
# nvidia-settings --load-config-only &
# exec /usr/bin/fluxbox
# or if you want to keep a log:
exec /usr/bin/fluxbox -log ~/.fluxbox/log

mmills
05-09-2009, 02:22 PM
I added the fsetbg -f and restarted and it was set default.

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# fbsetbg -C /usr/share/fluxbox/splash.jpg
#
# bsetbg -f /.fluxbox/backgrounds/1680x1050.JPG
# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg
# Other examples. Check man xset for details.
# Turn off beeps:
# xset -b
# Increase the keyboard repeat-rate:
# xset r rate 195 35
# Your own fonts-dir:
# xset +fp /home/sabayonuser/.font
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
# Change your keymap:
# xmodmap ~/.Xmodmap



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log
fbsetbg -l

je_fro
05-09-2009, 02:29 PM
I think the "exec /usr/bin/fluxbox" should be last.

mmills
05-09-2009, 02:40 PM
tried that, didnt change anything, im baffled

je_fro
05-09-2009, 02:45 PM
what's in ~/.fluxbox/lastwallpaper ?

mmills
05-09-2009, 02:58 PM
what's in ~/.fluxbox/lastwallpaper ?


answer to je_fro: fbsetroot|-foreground rgb:4/4/38 -solid rgb:4/4/38|style|:0.0

startup is set to

# bsetbg -f home/mmills/.fluxbox/backgrounds/2005SpecialConstructionFXR_Reptilian.jpg


I changed init to


session.screen0.rootCommand: fbsetbg -l


so then I tried it manually and I got this output


mmills@media-machine ~ $ fbsetbg -i

display doesn't set the wallpaper properly. Transparency for fluxbox and apps like aterm and xchat won't work right with it. Consider installing feh, wmsetbg (from windowmaker) or Esetroot (from Eterm) and I'll use them instead.


with all that I have tried the default image is gone, but it still will not display the image that I want to be displayed, its now picking up the default background for the style....

so, Im BAFFLED :rolleyes:

JohnT
05-10-2009, 11:49 PM
# Lines starting with a '#' are ignored.

mmills
05-11-2009, 10:18 AM
that is interesting but why is it je_fro's is the same and still functional?


# fluxbox startup-script:
#
# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# bsetbg -f /home/mmills/.fluxbox/backgrounds/2005SpecialConstructionFXR_Reptilian.jpg
#
# This sets a black background

/usr/bin/fbsetroot -solid black

# This shows the fluxbox-splash-screen
# fbsetbg -C /usr/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /home/sabayonuser/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmnd &
# wmsmixer -w &
# idesk &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/bin/fluxbox
# or if you want to keep a log:
# exec /usr/bin/fluxbox -log ~/.fluxbox/log
fbsetbg -l


no change after reboot
-----------

ok, so I went into the /fluxbox/init and changed root to say

Code:

session.screen0.rootCommand: display -backdrop -window root /home/mmills/.fluxbox/backgrounds/2005SpecialConstructionFXR_Reptilian.jpg

img=http://img164.imageshack.us/img164/5015/screenshotk.th.jpg

but im baffled, my image is only 3/4 covered, how do I change the screen size of find the screen size? the image on my desktop is 1620x 1200 the default I removed was 1920X1200

99.9% solved ?!

ran the same config on my laptop, and came up with the same issue, so its not the size of the image but rather how linux is placing it.

@JohnT

I removed the # on each line and got nothing new, so Im not sure why that is, I did it on my laptop incase any issues would come about from it.

JohnT
05-11-2009, 07:51 PM
Post the results from the command
fbsetbg -i
Additionally......HERE (http://fluxbox-wiki.org/index.php?title=Howto_set_the_background)

mmills
05-11-2009, 09:35 PM
@ JohnT

I did the code and got 0


mmills@media-machine ~ $ fbsetbg -i



mmills@media-machine ~ $

JohnT
05-12-2009, 06:36 AM
@ JohnT

I did the code and got 0


mmills@media-machine ~ $ fbsetbg -i



mmills@media-machine ~ $

Manpage bsetbg might give up some clues.
http://linuxreviews.org/man/bsetbg/

blackbelt_jones
05-12-2009, 09:58 AM
This is interesting. I've never even heard of a .fluxbox/startup file, I've been setting the background by editing .fluxbox/init at the session.screen0.rootCommand line.

session.screen0.rootCommand: fbsetbg -r ~/wallpapers ; kmix

You might want to try that, or if you want to set aside the problem for a while, you can always add a version of fbsetbg to .fluxbox/keys to set your background with a single modified keystroke.

Incidentally, does everybody know about the -r option for fbsetbg? I t stands for random. I love this, because I can't stop obsessing over what wallpaper to use. I get a get a fresh background with every restart.

mmills
05-13-2009, 08:13 PM
well blackbelt, it was all in the init file, but it didnt work till I changed it up to this


session.screen0.rootCommand: display -backdrop -window root /home/mmills/.fluxbox/backgrounds/2005SpecialConstructionFXR_Reptilian.jpg


thanks for all the help fellas :D