LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-21-2004, 02:29 PM   #1
Gustaf
LQ Newbie
 
Registered: Oct 2004
Location: Oslo
Distribution: Slackware 12.1
Posts: 18

Rep: Reputation: 0
fluxbox 0.9.10


Simple question really (i would think at least), im trying to set a background in fluxbox wich works fine but when i restart X i have to set it again, is there a file that i have to set "bsetbg -f ~/filename.jpg " in so it loads when X starts?
 
Old 10-21-2004, 02:33 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you have ~/.xsession or ~/.xinitrc, BUT as you're basically changing what flux looks like... just go and change your theme. edit ~/.fluxbox/themes/current (somethign like that....) and replace the rootcommand with what you want.
 
Old 10-21-2004, 02:55 PM   #3
Navaboy
Member
 
Registered: Sep 2003
Location: Southern California
Distribution: Slackware -current
Posts: 90

Rep: Reputation: 15
Also you can set it up in your ~/.fluxbox/startup

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# bsetbg -f ~/pictures/wallpaper.png <------ Jus An Xample

Put it would be like that.
If you dont already have one, make one.
Jus another way to do it!!!!

Here's ma whole starup script

# fluxbox startup-script:
#
# Lines starting with a '#' are ignored.

# You can set your favourite wallpaper here if you don't want
# to do it from your style.
#
# bsetbg -f ~/pictures/wallpaper.png
#
# This sets a black background

# /usr/X11R6/bin/bsetroot -solid black

# This shows the fluxbox-splash-screen
fbsetbg -C /usr/local/share/fluxbox/splash.jpg

# Other examples. Check man xset for details.
#
# Turn off beeps:
# xset -b
#
# Increase the keyboard repeat-rate:
# xset r rate 195 35
#
# Your own fonts-dir:
# xset +fp /home/navaboy/.font
#
# Your favourite mouse cursor:
# xsetroot -cursor_name right_ptr
#
# Change your keymap:
# xmodmap ~/.Xmodmap



# 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 &
# wmdrawer &
# wmxmms &
# wmcpuload &
# wmclockmon &
# wmix &
# wmmemfree &
# xcompmgr -c &
gkrellm -w &

# And last but not least we start fluxbox.
# Because it is the last app you have to run it with ''exec'' before it.

exec /usr/X11R6/bin/fluxbox
# or if you want to keep a log:
exec /usr/X11R6/bin/fluxbox -log ~/.fluxbox/log

Last edited by Navaboy; 10-21-2004 at 03:00 PM.
 
Old 10-21-2004, 03:55 PM   #4
Gustaf
LQ Newbie
 
Registered: Oct 2004
Location: Oslo
Distribution: Slackware 12.1
Posts: 18

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by acid_kewpie
you have ~/.xsession or ~/.xinitrc, BUT as you're basically changing what flux looks like... just go and change your theme. edit ~/.fluxbox/themes/current (somethign like that....) and replace the rootcommand with what you want.

i dunno if i did that wrong or what but i found where everything is etc, how u mentioned it
and added the line to the theme im currently using:

rootcommand: bsetbg -f ~/.fluxbox/backgrounds/tux1.jpg

wich is where i have my backgrounds

im going to try what Navaboy suggested tho see if u have better luck with that
 
Old 10-21-2004, 04:55 PM   #5
detpenguin
Senior Member
 
Registered: Oct 2003
Location: lost in the midwest...
Distribution: Slackware
Posts: 1,098

Rep: Reputation: 54
in an editor such as gedit, open location:
~/.fluxbox/init
then scroll down to rootcommand and add

fbsetbg -f ~/backgrounds/tux1.jpg

save it and you should be good to go.

Last edited by detpenguin; 10-21-2004 at 04:58 PM.
 
Old 10-21-2004, 06:26 PM   #6
jimdaworm
Member
 
Registered: Aug 2003
Location: Spain
Distribution: Ubuntu
Posts: 897

Rep: Reputation: 30
Just a quick tip I just made my background back.jpg and then when ever I want to change it I just rm back.jpg and cp newpic.jpg back.jpg

That way you can change the background a in only a few seconds
 
Old 10-21-2004, 06:34 PM   #7
fcaraballo
Member
 
Registered: Feb 2004
Location: WA
Distribution: Slackware
Posts: 230

Rep: Reputation: 31
You could try using Fluxter. It's a nice pager that allows you to set up a background picture for each desktop.

MagicMan
 
Old 10-21-2004, 07:03 PM   #8
kersten78
Member
 
Registered: Nov 2003
Location: Minneapolis, MN
Distribution: Slackware, Debian, Gentoo, openSuSE
Posts: 358

Rep: Reputation: 33
Quote:
Originally posted by jimdaworm
Just a quick tip I just made my background back.jpg and then when ever I want to change it I just rm back.jpg and cp newpic.jpg back.jpg

That way you can change the background a in only a few seconds
If you're using 9.10 or newer, fluxbox has added a [wallpapers] menu item similar to the [stylesdir] menu item.

Assuming you have all your wallpapers in one directory, you can add
Code:
[wallpapers] (/your/wallpaper/directory) {rootcommand}
Obviously, if you have background directories scattered all over the place (like I do), just add a [wallpapers] item for each directory.
It's really nice for changing backgrounds on the fly. But if you want it to start up with a particular background, you will have to add it to the theme or to your fluxbox startup file as mentioned earlier.
 
Old 10-21-2004, 08:48 PM   #9
Navaboy
Member
 
Registered: Sep 2003
Location: Southern California
Distribution: Slackware -current
Posts: 90

Rep: Reputation: 15
Nice i fergot bout that one, Jus like the one in FVWM
Xcellent Job kersten78
 
Old 10-23-2004, 08:49 PM   #10
Gustaf
LQ Newbie
 
Registered: Oct 2004
Location: Oslo
Distribution: Slackware 12.1
Posts: 18

Original Poster
Rep: Reputation: 0
great, works now with that startup script, my libpng was corrupt so wouldnt load any backgrounds at all, so fixed that and bam
 
Old 10-24-2004, 01:27 AM   #11
Navaboy
Member
 
Registered: Sep 2003
Location: Southern California
Distribution: Slackware -current
Posts: 90

Rep: Reputation: 15
No problem, Glad it helped you out.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fluxbox: Enabling KDE using package install of fluxbox underline Linux - Software 0 12-27-2003 10:11 AM
fluxbox??? yenonn Linux - Newbie 3 10-02-2003 10:33 AM
FLuxbox help please!!! Devboy Linux - Newbie 9 07-31-2003 08:02 PM
Fluxbox alitrix Linux - Software 1 06-29-2003 12:36 PM
Fluxbox Astro44 Linux - Newbie 4 04-09-2003 04:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration