LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   fbsetbg does not work (https://www.linuxquestions.org/questions/linux-newbie-8/fbsetbg-does-not-work-509353/)

Atreo 12-11-2006 06:57 AM

fbsetbg does not work
 
Hi there!!

I have many problems with fluxbox and as I don-t make any progress I decided asking for help.

I begin with fbsetbg.
I want to have a wallpaper set on startup.

I tried:

fbsetbg -f /root/./.fluxbox/backgrounds/glass.JPG
fbsetbg -l /root/./.fluxbox/backgrounds/glass.JPG

And it does nor work.
I read 3 alerts:

fbsetbg: No previous wallpaper recorded dor display :0
fbsetbg: Can`t find /root/./.fluxbox/backgrounds/glass.JPG
(the other one left is similar to the last one)

Before giving it up and throwing my pentiumII to the basket I prefer to ask you all. And also because I have no money for buying a new one and I need this one for my studies.
So please, help me and thanks a lot in advance.

Here I show my startup file in ./.fluxbox folder:

# 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 -f /root/./.fluxbox/backgrounds/glass.JPG
fbsetbg -l /root/./.fluxbox/backgrounds/glass.JPG


# bsetbg -f ~/pictures/wallpaper.png
#
# This sets a black background

/usr/X11R6/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
fbsetbg -C /usr/X11R6/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 /root/.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 &
conky &

# 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/X11R6/bin/fluxbox
# or if you want to keep a log:
# exec /usr/X11R6/bin/fluxbox -log ~/.fluxbox/log

dracolich 12-11-2006 08:19 AM

The line should be in .fluxbox/init, not startup. This is mine

init
Quote:

session.screen0.rootCommand: fbsetbg -l -a
-l says to use what's in .fluxbox/lastwallpaper
-a says to preserve the images aspect

lastwallper
Quote:

$aspect/home/******/.fluxbox/background/Chimera01.jpg|:0.0
In a terminal window (xterm, aterm, etc) you can type your command to set the background and Fluxbox will put the appropriate entry in lastwallpaper. I can't help noticing the path you're using. Particularly the /root/./.fluxbox portion. Should it be /root/.fluxbox instead? And are you working as root?

Atreo 12-11-2006 09:24 AM

Thank you!!
 
Thank you drac!!
I'll try your suggestion.
I think you're also right about the path.

I didn't realize about fluxbox/init.

By the way, do you know how can I change my keyboard map or layout (or however it's called)? I want to use a latin keyboard map and my current one is US.

I'll tell you and about my result.

dracolich 12-11-2006 02:16 PM

I'm not too sure about changing keyboard mapping. I think there's a line in the xorg.conf file to set it. You may have to add an extra X11 package for internationalization. Again, I don't know exactly, but this should get you looking in the right direction.

Atreo 12-16-2006 02:17 PM

I have bad news drac.
That does not work and I don't know why.
I wrote in the first line of init file:

session.screen0.rootCommand: fbsetbg -l -a

I also changed the path and it doesn't work either, could it be because I log in as root?

dracolich 12-16-2006 03:09 PM

Do you have a file called lastwallpaper in your ~/.fluxbox directory and, if so, does the file have something in it? If not the -l is getting nothing so that's what you get on the screen. Know what I mean?

I'm on my laptop this time, which is a bit more tweaked. In my .fluxbox/init file "session.screen0.rootCommand:" is empty. It is setup to use a style and at the end of the config file for that style I have:
Quote:

background.pixmap: /path/to/file.jpg.
That was a major change in Fluxbox-1.0rc. It's mentioned in the release notes.

What I would probably do is:
1-pick a style
2-copy the file from /usr/X11R6/share/fluxbox/styles to ~/.fluxbox/styles (rename it if you want to)
3-change the init line session.styleFile to point to it
4-edit the copied file to include the background.pixmap line at the end.

You can also edit other lines in the style file to change colors and button effects and more. For example I copied the one called Twice to my directory and and added my background. Then (over time) changed the colors, button sizes, alpha to make it just the way I wanted.

Good luck.


All times are GMT -5. The time now is 01:51 PM.