Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-05-2013, 03:59 PM
|
#1
|
Member
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213
Rep:
|
Set a persistent background with fluxbox when I have xfce configured as default
I have xfce as my default window manager, which I set with xwmconfig. However, I also use fluxbox from time to time. I know that I can use fbsetbg to set the background in fluxbox, but I would like to have it set up so I don't have to do this every time I reboot or restart X. I thought I could accomplish this by putting
in my ~/.xinitrc, but it does not work. However, I know I had it working before when I used fluxbox exclusively, and I could swear this was how I did it. Does it have something to do with the fact that fluxbox is not now the default? When I start fluxbox now, I do it with
Code:
startx /usr/bin/fluxbox
Does anyone know how I can keep the background I set in fluxbox between reboots? I would rather use the tools included with Slackware than download something else like feh. Incidentally, I don't even need different backgrounds for fluxbox and xfce--the same one will be used for both.
Help appreciated.
|
|
|
12-05-2013, 04:04 PM
|
#2
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,313
|
I think you need to do that in ~/.fluxbox/startup
Code:
fbsetbg -f /path/to/background/image
*** UPDATE ***
After providing the above answer (which should be correct), I recalled that I once had difficulty getting the background image to work as expected.
Looking at my notes I found that it was due to the default theme that I had added which itself did not use a background image but prevented the one I specified from showing up.
So if you experience any difficulty getting it to work, you might temporarily disable any theme you have enabled and see if that work. If so, you can remove the background line(s) from the theme and re-enable it.
Last edited by astrogeek; 12-05-2013 at 04:38 PM.
|
|
2 members found this post helpful.
|
12-05-2013, 04:54 PM
|
#3
|
Member
Registered: May 2012
Distribution: Slackware 64 14.2
Posts: 213
Original Poster
Rep:
|
Nope, no theme problems, it works the way you said. I guess I should have tried that, but I am sure when I had this working before it was with this command in .xinitrc. I even put it in my notes. Ah, who knows. It is working now.
Thanks, Astrogeek. 
|
|
|
12-05-2013, 05:14 PM
|
#4
|
Moderator
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,313
|
Great! You are welcome!
|
|
|
12-05-2013, 08:07 PM
|
#5
|
Member
Registered: Jun 2010
Distribution: Slackware Current 64 bit KDE 5
Posts: 380
Rep:
|
Another option is to install Wally from slackbuilds.org and have it listed in the startup file - wally &.
I found that to be a better option for Fluxbox.
|
|
|
12-05-2013, 10:45 PM
|
#6
|
LQ Guru
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,764
|
Quote:
I guess I should have tried that, but I am sure when I had this working before it was with this command in .xinitrc. I even put it in my notes. Ah, who knows. It is working now.
|
Putting the command in .fluxbox/startup is the canonical way to execute it.
I actually have a little two-line script to tell fbsetbg to rotate the wallpaper every 30 minutes. I start the script from .fluxbox/startup; the script calls fbsetbg, which sets a wallpaper from the target directory with the random (-R) argument; fbsetbg sleeps for 30 minutes, then sets another wallpaper.
|
|
|
All times are GMT -5. The time now is 08:03 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|