You are not logged in.

#1 2012-08-05 19:10:48

Spheres
Member
Registered: 2012-07-27
Posts: 33

SOLVED Fluxbox and Nitrogen problem

Ok so I've tried many ways to set my background in Fluxbox. I try not to ask for help but this is really frustrating me. So I installed nitrogen, went to the directory my background is at, and hit apply, and it worked. So then I went to my  ~/.fluxbox/startup  file and added in "nitrogen --restore &" like below. However it didn't work. I really want this to work, I spent a large amount of time earlier today trying to get fbsetbg to work, then trying to get feh to work, none of it worked for me.






# 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 &
nitrogen --restore &
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

Last edited by Spheres (2012-08-05 23:09:15)

Offline

#2 2012-08-05 19:14:31

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

You'd really be better off trying to fix feh -- it works very well with fluxbox. What was the problem with it?

How are you starting fluxbox? From.xinitrc or from a login manager?

Last edited by 2ManyDogs (2012-08-05 19:21:54)

Offline

#3 2012-08-05 19:21:51

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: SOLVED Fluxbox and Nitrogen problem

What does your .config/nitrogen/nitrogen.cfg look like?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-08-05 19:23:56

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

I'm staring fluxbox from gdm


and  .config/nitrogen/nitrogen.cfg is empty, should there be something in there?

Last edited by Spheres (2012-08-05 19:24:26)

Offline

#5 2012-08-05 19:27:32

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

Not necessarily.

Do any other apps you put in ~/.fluxbox/startup run?

Check /usr/share/xsessions/fluxbox.desktop and make sure it says "exec startfluxbox" and not just "exec fluxbox"

I'm starting fluxbox from .xinitrc with "exec startfluxbox" and if I set wallpaper with feh, this works in my ~/.fluxbox/startup file:

eval $(cat ~/.fehbg)

and if I set wallpaper with nitrogen, this works:

nitrogen --restore

(edit) -- as ewaller says, have you set a wallpaper with nitrogen? "nitrogen --restore" won't work unless you do...

Last edited by 2ManyDogs (2012-08-05 19:35:47)

Offline

#6 2012-08-05 19:30:34

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,727

Re: SOLVED Fluxbox and Nitrogen problem

I believe it should.  Have you run nitrogen from the command line and set a background using the GUI?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#7 2012-08-05 19:36:47

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

[Desktop Entry]
Encoding=UTF-8
Type=XSession
Exec=/usr/bin/startfluxbox
TryExec=/usr/bin/startfluxbox
Name=fluxbox

That is what my /usr/share/xsessions/fluxbox.desktop looks like.

Yes I have run nitrogen and set my background with the GUI, then I put "nitrogen --restore &" into my ~/.fluxbox/startup file then rebooted, but like I said it didn't work.

Last edited by Spheres (2012-08-05 19:38:15)

Offline

#8 2012-08-05 19:37:57

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

What happens if you run "nitrogen --restore" in a terminal after fluxbox starts?

Offline

#9 2012-08-05 19:38:47

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

It says "could not get bg groups from config file"

Offline

#10 2012-08-05 19:43:26

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

So your empty cfg file is a problem. What's in your ~/.fehbg file right now?

Offline

#11 2012-08-05 19:46:49

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: SOLVED Fluxbox and Nitrogen problem

What works for me is;
nitrogen --restore /path/to/picturefolder &

Try that.

Offline

#12 2012-08-05 19:51:04

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

If you specify the full path, you don't need --restore. And if you specify the path and then change the wallpaper, the next time you start you'll have the old wallpaper back again.

(edit) I just tried this with a fresh install of nitrogen, and after setting the wallpaper there is no ~/.config/nitrogen/nitrogen.cfg. There is a file called ~/.config/nitrogen/bg-saved.cfg. Do you have that file, and does it contain anything?

Finally, when you set the wallpaper with nitrogen, did you double-click the image, or did you click "apply"?

Last edited by 2ManyDogs (2012-08-05 19:55:01)

Offline

#13 2012-08-05 19:54:28

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

feh  --bg-fill /home/user/Pictures/archlinux.png is whats in my ~/.fehbg file.


nitrogen --restore /path/to/picturefolder & did not work for me sad

Offline

#14 2012-08-05 19:54:49

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

Re: SOLVED Fluxbox and Nitrogen problem

Just path to the folder, not the file.

Offline

#15 2012-08-05 19:55:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

Spheres wrote:

feh  --bg-fill /home/user/Pictures/archlinux.png is whats in my ~/.fehbg file.

OK, run this in a terminal:

eval $(cat ~/.fehbg)

and tell me what happens.

And do you have this file:  ~/.config/nitrogen/bg-saved.cfg? If you do, does it contain anything?

Last edited by 2ManyDogs (2012-08-05 19:57:51)

Offline

#16 2012-08-05 20:03:30

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

That also didn't work swanson.

When I ran eval $(cat ~/.fehbg) it set the background!!!


I do not have a file named ~/.config/nitrogen/bg-saved.cfg.

Last edited by Spheres (2012-08-05 20:04:53)

Offline

#17 2012-08-05 20:07:50

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

OK, so put that in your ~/.fluxbox/startup file and you won't need nitrogen.

When you set the background with nitrogen, did you double-click on the image, or did you click "apply"?

Offline

#18 2012-08-05 20:18:28

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

So I did that



# Applications you want to run with fluxbox.
# MAKE SURE THAT APPS THAT KEEP RUNNING HAVE AN ''&'' AT THE END.
#
# unclutter -idle 2 &
# wmsmixer -w &
# idesk &
eval $(cat ~/.fehbg) &
# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.


And it still did not work. sad I tried it with and without the &


I clicked apply when I set the background.

Last edited by Spheres (2012-08-05 20:20:33)

Offline

#19 2012-08-05 20:22:59

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

This is really starting to piss me off, so I can only imagine how you feel. You don't need the & at the end of the eval line.

Running the eval command in a terminal still sets the background?

Can you put this in the startup file, just so we can make sure it's running:

echo `date` >> ~/flux-log

Then after you start fluxbox, do this

cat ~/flux-log

Then go run nitrogen again, set a background, click "apply" and see if you have anything in the nitrogen cfg files.

Last edited by 2ManyDogs (2012-08-05 20:26:32)

Offline

#20 2012-08-05 20:25:40

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

Yes it sets it, sorry it's upsetting you, I'm beyond angry with it, now I've hit the point where I don't want to stop because it's made me so angry I'm determined to get it to work right.

Offline

#21 2012-08-05 20:27:45

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

Spheres wrote:

Yes it sets it, sorry it's upsetting you, I'm beyond angry with it, now I've hit the point where I don't want to stop because it's made me so angry I'm determined to get it to work right.

No, it's OK, I know how you feel. There's no reason I can see why this should not work.

Did you try the logfile thing? Maybe your startup file just isn't running...

Someone is going to come along in a minute and make us both feel dumb...

Last edited by 2ManyDogs (2012-08-05 20:28:45)

Offline

#22 2012-08-05 20:31:09

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

I put that code into my startup file like you said then ran cat ~/flux-log
and it said


cat: /home/travis/flux-log: No such file or directory

However I copied and pasted the code into my startup file, was that right? Or should I have put in the date where it says date? Sorry for my ignorance about all this.

Last edited by Spheres (2012-08-05 20:31:40)

Offline

#23 2012-08-05 20:32:37

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

No, copy/paste was good. This means your fluxbox startup file is not running. Can I see the output of this command please:

ls /usr/share/xsessions

Offline

#24 2012-08-05 20:34:20

Spheres
Member
Registered: 2012-07-27
Posts: 33

Re: SOLVED Fluxbox and Nitrogen problem

fluxbox.desktop  openbox-gnome.desktop    openbox.desktop
gnome.desktop     openbox-kde.desktop

I use gdm but do not have the rest of gnome except terminal, I no longer have kde either.

Last edited by Spheres (2012-08-05 20:35:17)

Offline

#25 2012-08-05 20:38:18

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,648

Re: SOLVED Fluxbox and Nitrogen problem

OK, don't be offended by these questions, they're just rule-outs. When you logged in, did you click the "sessions" button, and select "fluxbox" from the menu? And when you did that, did GDM ask you if you wanted to make fluxbox the default, and did you say yes?

Last edited by 2ManyDogs (2012-08-05 20:38:37)

Offline

Board footer

Powered by FluxBB