Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't set Desktop background in Fluxbox
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Sun Oct 30, 2005 10:55 am    Post subject: Can't set Desktop background in Fluxbox Reply with quote

I write:
Quote:

bsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg


In .fluxbox/startup but I get the same blue crappy background!!

What could be the reason?
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Sun Oct 30, 2005 3:41 pm    Post subject: Reply with quote

do you have feh or eterm installed? Better use fbsetbg instead of bsetbg..
Back to top
View user's profile Send private message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Tue Nov 01, 2005 11:40 am    Post subject: Reply with quote

I've emerged feh, but the problem still remains.

I noticed that at the begining it seems to draw my desired wallpaper but when it loads the rest of the desktop elements, the wallpaper returns to blue.

Here's my ~.fluxbox/startup:

Quote:

fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg
gkrellm2 &
exec /usr/bin/fluxbox
Back to top
View user's profile Send private message
Shameless Cookie
n00b
n00b


Joined: 01 Nov 2005
Posts: 9

PostPosted: Tue Nov 01, 2005 12:18 pm    Post subject: Reply with quote

Do you have a desktop manager installed, such as idesk?
Back to top
View user's profile Send private message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Tue Nov 01, 2005 12:30 pm    Post subject: Reply with quote

nop!

I'm trying to minimalize my system. I'm only interesred in changing the background.
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Tue Nov 01, 2005 1:04 pm    Post subject: Reply with quote

if the wallpaper is drawed in the first place and then overdrawn again, there must be an other programm that's doing that. I had that kind of problem with idesk, too after they builded in a function for drawing backgrounds, my desktop kept on turning green. What else do you use, to creat your desktop?
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Nov 01, 2005 2:40 pm    Post subject: Reply with quote

_loki_ wrote:
if the wallpaper is drawed in the first place and then overdrawn again, there must be an other programm that's doing that. I had that kind of problem with idesk, too after they builded in a function for drawing backgrounds, my desktop kept on turning green. What else do you use, to creat your desktop?


I updated idesk this morning and I have the same problem, I'm looking for a solution...
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
feminista
Apprentice
Apprentice


Joined: 25 Mar 2005
Posts: 182

PostPosted: Tue Nov 01, 2005 3:10 pm    Post subject: Reply with quote

Well, the official way to set fluxbox backgrounds on startup is to put something like this in your style file:

Code:
rootCommand: fbsetbg -f file.jpg


Or, if you switch styles a lot and want to keep the same background, you can put that in ~/.fluxbox/init. .fluxbox/startup can often be a little wonky.

Also, can you set your wallpaper by just running the command, rather than having it autorun on startup? Because that should work regardless.
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Tue Nov 01, 2005 3:53 pm    Post subject: Reply with quote

Quote:

Well, the official way to set fluxbox backgrounds on startup is to put something like this in your style file:

Code:
rootCommand: fbsetbg -f file.jpg


that's what ChemicalGold did..
Quote:

Here's my ~.fluxbox/startup:

Quote:

fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg
gkrellm2 &
exec /usr/bin/fluxbox


or am I reading something wrong? Anyway trying to use fbsetbg while already runnig fluxbox is a good idea..- is that working?

to luna80:
I have not found a solution for the idesk problem.. but as idesk was annoying me in many ways I finally took that new problem to get rid of it.. I now use deskicon witch is an adesklet..
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Nov 01, 2005 4:18 pm    Post subject: Reply with quote

_loki_ wrote:

..
to luna80:
I have not found a solution for the idesk problem.. but as idesk was annoying me in many ways I finally took that new problem to get rid of it.. I now use deskicon witch is an adesklet..


thanks for the advice, I'm thinking to do the same, i read more about the new version of idesk and there are some new features that I don't like.
a program is good when do few things but well.

I hope you understand what I write, I don't speak english very well :oops: :D


<edit> I find now fbdesk, it seems to be a good alternative to adesklets...
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
_loki_
l33t
l33t


Joined: 18 Dec 2003
Posts: 680
Location: in the shell

PostPosted: Tue Nov 01, 2005 4:33 pm    Post subject: Reply with quote

sure i understand! I'm not native myself, so..
For me it was the same: idesk should draw icons and thats it.. For me it somehow got bloated and unstable, as I was using other adesklets before, it was logical to switch to deskicon. fbicon works perfectly, too I just never liked the look of it..
Back to top
View user's profile Send private message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Tue Nov 01, 2005 5:31 pm    Post subject: Reply with quote

Could you tell me what other programs are bound to be overwriting my background?

At least, some clue!
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Nov 01, 2005 6:05 pm    Post subject: Reply with quote

ChemicalGold wrote:
Could you tell me what other programs are bound to be overwriting my background?

At least, some clue!


what about
Code:
#more .fluxbox/lastwallpaper


perhaps the problem is whit this file, try to run fbsetbg command and after edit lastwallpaper with the image you want
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Tue Nov 01, 2005 9:55 pm    Post subject: Reply with quote

Code:

ibai@nemesis ~ $ more .fluxbox/lastwallpaper
$full|/usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg|:0


But the undesired wallpaper still remains!

P.D: Same as root.
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Wed Nov 02, 2005 4:32 am    Post subject: Reply with quote

a question: if you set the background from the command line (with the fbsetbg command), the image change?

if yes, try to do these steps:

1. from command line do
Code:
$  fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg


2. set the wallpaper in the style file (/usr/share/fluxbox/style/<your_style> or ~/.fluxbox/styles/<your_style>) with the line

Code:
rootCommand:                    fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg


3. set the wallpaper in the init file (~/.fluxbox/init) file with the line

Code:
session.screen0.rootCommand:    fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg


4. after remember to check the the file ~/.fluxbox/lastwallpaper.

let me know...
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
feminista
Apprentice
Apprentice


Joined: 25 Mar 2005
Posts: 182

PostPosted: Wed Nov 02, 2005 5:42 am    Post subject: Reply with quote

_loki_ wrote:
Quote:

Well, the official way to set fluxbox backgrounds on startup is to put something like this in your style file:

Code:
rootCommand: fbsetbg -f file.jpg


that's what ChemicalGold did..
Quote:

Here's my ~.fluxbox/startup:

Quote:

fbsetbg -f /usr/share/pixmaps/gentoo/1280x1024/gentoo-matrix-1280x1024.jpg
gkrellm2 &
exec /usr/bin/fluxbox


or am I reading something wrong? Anyway trying to use fbsetbg while already runnig fluxbox is a good idea..- is that working?

to luna80:
I have not found a solution for the idesk problem.. but as idesk was annoying me in many ways I finally took that new problem to get rid of it.. I now use deskicon witch is an adesklet..


No, /startup and /init are completely different, and setting it in /startup is not a good idea. In fact, /startup gives people a lot of problems anyway, and .xinitrc should probably be used instead, since lots of apps require the desktop to be drawn before they start.

The style file is probably the best place to put the command, and it's also probably best to use fbsetbg -l so that you don't have to edit the style file all the time.

But of course the first step of debugging is to just run fbsetbg from a terminal and see if that points you in the direction of the problem.
Back to top
View user's profile Send private message
ChemicalGold
n00b
n00b


Joined: 18 Oct 2005
Posts: 31

PostPosted: Wed Nov 02, 2005 8:15 am    Post subject: Reply with quote

luna80 wrote:

let me know...


Thanx luna80! It worked!

Maybe someone should reconsider the Gentoo's oficial Fluxbox docs. :wink:
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Thu Nov 03, 2005 5:34 am    Post subject: Reply with quote

ChemicalGold wrote:

Thanx luna80! It worked!

Maybe someone should reconsider the Gentoo's oficial Fluxbox docs. :wink:


:)

remember to put [solved] in you 3d title :wink:
_________________
*** !f j00 c4n r34D tH15 tH3N j00 n33D t0 l0g Off ***
Back to top
View user's profile Send private message
cuchumino
Guru
Guru


Joined: 24 Nov 2004
Posts: 428

PostPosted: Wed May 17, 2006 12:18 pm    Post subject: Reply with quote

thanx luna, helped me too there. i was having problems with setting my backround as well in fb. I read the ~/.fluxbox/init that luna suggested and i added fbsetbg -l instead.

~/.fluxbox/init
Code:
session.screen0.rootCommand:    fbsetbg -l


worked perfectly. I don't know how i missed this in the HOW_TO tho. Anyway, thanx :D
Back to top
View user's profile Send private message
breen
n00b
n00b


Joined: 17 May 2004
Posts: 20

PostPosted: Thu Sep 06, 2007 2:26 pm    Post subject: Reply with quote

To set a backgroun in a style file, try adding these lines:

background: aspect | tiled | centered
background.pixmap: /path/to/wallpaper

(i.e. Choose one of aspect, tiles or centered).

As it turns out, you need both lines or styles will not load backgrounds. You should not use rootCommand in styles any longer, as these two lines above pass the arguments to fbsetbg. You still need feh or the like, and you can still override the style backgrounds with a rootCommand in your init file.

Cheers,
David
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum