Fluxbox add rootCommand to init
Hey I am new in heir.
But not new to linux, but I am quit green using Fluxbox. So I want to add following commands to the init file: fbsetbg -l /Pictures/slackware.jpg setxkbmap dk I thought I should add this to the init file: session.screen0.rootCommand: fbsetbg -l /Pictures/slackware.jpg session.screen0.rootCommand: setxkbmap dk But when I reboot the system, the lines does not be execute am I do something wrong? |
Hi,
First you need to setup your wallpaper running: Code:
fbsetbg -f /Pictures/slackware.jpg Code:
session.screen0.rootCommand: fbsetbg -l Regards |
Quote:
|
Please define "but it does not work".
What happens when you run "fbsetbg -f /path/to/file" from xterm? Do you see the wallpaper? Does the file ~.fluxbox/lastwallpaper gets created? |
Sorry, yes
fbsetbg -f /Pictures/slackware.jpg and yes ~/.fluxbox/lastwallpaper get created but when I reboot it does not "reload" the wallpaper |
And what happens if you run "fbsetbg -l" from xterm? Do you get your wallpaper?
You may try to use the overlay feature that does the same thing. Edit ~/.fluxbox/overlay and use: Code:
background: aspect |
if I run fbsetbg -l yes I get the wallpaper i want
|
Rather than trying to answer your question directly, I suggest that you check out the Fluxbox wiki section on backgrounds.
It will answer your questions thoroughly. The Fluxbox wiki is an excellent resource. |
I have used the fluxbox wiki, I always check that first, but it can't solved the problem :\
|
Quote:
|
yes
|
Quote:
'session.screen0.rootCommand: fbsetbg -l' (without the path to the .jpg) in the Init file Then you need a program to display the wallpaper, I use Esetroot, which is a part of Eterm (but there is a slackbuild for Esetroot at Slackuilds.org, if your using Slack). You can use feh or some other prog, but I couldnt get the aspect to display properly with feh. Then, in '~/.fluxbox', you need to create a file called' lastwallpaper', with the following: Code:
wpsetters Esetroot Also! There is a special wallpaper option for the Fluxbox menu file, I have this line in the menu to change wallpapers easily: Code:
[wallpapers] (~/.fluxbox/backgrounds) {fbsetbg -u Esetroot -a} |
What happens when you run "fbsetbg -i"?
Oh, I took a look at your original post: Quote:
Code:
fbsetbg -l ~/Pictures/slackware.jpg Code:
fbsetbg -l /home/[username]/Pictures/slackware.jpg |
@frankbell thanks mate it work
and thanks to all who helped |
Quote:
|
All times are GMT -5. The time now is 06:31 PM. |