You are not logged in.
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
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
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
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
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
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
[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
What happens if you run "nitrogen --restore" in a terminal after fluxbox starts?
Offline
It says "could not get bg groups from config file"
Offline
So your empty cfg file is a problem. What's in your ~/.fehbg file right now?
Offline
What works for me is;
nitrogen --restore /path/to/picturefolder &
Try that.
Offline
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
feh --bg-fill /home/user/Pictures/archlinux.png is whats in my ~/.fehbg file.
nitrogen --restore /path/to/picturefolder & did not work for me ![]()
Offline
Just path to the folder, not the file.
Offline
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
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
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
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.
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
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-logThen after you start fluxbox, do this
cat ~/flux-logThen 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
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
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
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
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/xsessionsOffline
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
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