LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 06-20-2006, 12:37 AM   #1
bl0tt0
Member
 
Registered: Aug 2005
Location: The Glorious People's Republic of Austin
Posts: 145

Rep: Reputation: 21
fluxbox backgrounds in -current


Hello all,
Maybe I've missed something important in the process of keeping up with current, but I've noticed that with the newer versions of fluxbox, the included styles don't seem to have backgrounds. I've looked at the -current changelogs, and I haven't noticed any mention of these changes. Can someone give me an idea of what needs to be changed in order to make use of the backgrounds of the system styles?

Thanks
 
Old 06-20-2006, 12:46 AM   #2
Ilgar
Member
 
Registered: Jan 2005
Location: Istanbul, Turkey
Distribution: Slackware 14.1, Slackware64 14.1
Posts: 924

Rep: Reputation: 94
Same here. It happened after the same set of updates that broke gnome stuff.

I think fbsetroot is the command that adjusts the background, I have

Code:
$ fbsetroot -mod 5 5 -fg rgb:62/70/85 -bg rgb:52/60/75
Warning: Failed to open file(/usr/X11R6/share/fluxbox/nls/en_US/fluxbox.cat)
for translation, using default messages.
 
Old 06-20-2006, 04:28 AM   #3
the_real_absinthe
LQ Newbie
 
Registered: May 2006
Distribution: slackware linux
Posts: 28

Rep: Reputation: 15
since version 0.9.15 the classic "rootcommand" is deprecated and disabled, from official fluxbox changelog:
Quote:
* New theme item:
* background: [texture option]
* background.pixmap: image filename
* background.color: [color]
* background.colorTo: [color]
The background.pixmap filename will be sent to "fbsetbg"
which in turn sets the background.
The following options will be available for the background.pixmap:
- tiled
- centered
For example:
background: tiled
background.pixmap: someimage.png
and it can also generate a normal texture:
background: gradient
background.color: blue
background.colorTo: green
The rootCommand in the style is now obsolete and if the
"background" item is not found in the style then the default
background will be green and with a warning text.
actually the green screen has been disabled in newer releases.

M

Last edited by the_real_absinthe; 06-20-2006 at 04:30 AM.
 
Old 06-20-2006, 11:16 AM   #4
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,211

Rep: Reputation: 292Reputation: 292Reputation: 292
Also worth noting is that background.pixmap command doesn't seem to work in the current package (0.9.15.1) but rootCommand does still work in your .fluxbox/init file.
 
Old 06-21-2006, 08:08 AM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: Tupelo, MS
Distribution: Gentoo
Posts: 6,926

Rep: Reputation: 124Reputation: 124
Quote:
Originally Posted by bl0tt0
Hello all,
Maybe I've missed something important in the process of keeping up with current, but I've noticed that with the newer versions of fluxbox, the included styles don't seem to have backgrounds. I've looked at the -current changelogs, and I haven't noticed any mention of these changes. Can someone give me an idea of what needs to be changed in order to make use of the backgrounds of the system styles?

Thanks
I've been using the KDE (Krummy Desktop Environment) since 2006-04-11. Nice to be back in Flux, but some things have changed...

I'm running Slackware-current, 2.6.17.1, Fluxbox 1.0rc (from Slack -current).

I tried to set a background image (slack1.png) unsuccessfully. First in ~/.fluxbox/startup which didn't work. I just uncommented this line and changed the path
Code:
# bsetbg -f ~/pictures/slack1.png
but that didn't work. I would see the image when Flux loaded, but it changed to a grey (not 100% black) background.

Next I commented this line in /usr/X11R6/share/fluxbox/styles/Spiff
Code:
#rootCommand:                    fbsetroot -mod 2 2 -fg rgb:48/50/68 -bg rgb:50/58/70
and added this line
Code:
rootCommand:                    bsetbg -f ~/pictures/slack1.png
which is what I've been using on Fluxbox for a couple of years. Same result -- saw the image, but the desktop went grey.

What the_real_absinthe posted confused me, until I read the Fluxbox ChangeLog.
Quote:
*06/02/12:
* Fixed #bug #1417688, remember apps keeps
incrementing vertical dimension (Henrik)
Remember.cc
* Fixed root pixmap problem.
Using fbsetroot to set background. (Henrik)
RootTheme.cc, FbPixmap.hh/cc, FbCommands.hh/cc
That ChangeLog is pretty hard to understand, for me -- it doesn't mention the file names where these items occur. Maybe it's because I'm not a programmer or something...even so, the last mention of changing the background is
Quote:
*05/11/22:
* New theme item:
background: <texture option>
background.pixmap: <image filename>
background.color: <color>
background.colorTo: <color>
The background.pixmap filename will be sent to "fbsetbg"
which in turn sets the background.
The following options will be available for the background.pixmap:
- tiled
- centered
For example:
background: tiled
background.pixmap: someimage.png
and it can also generate a normal texture:
background: gradient
background.color: blue
background.colorTo: green
The rootCommand in the style is now obsolete and
if the "background" item is not found in the style then the default
background will be black and with a warning text.
(Henrik)
RootTheme.hh/cc, Screen.cc
which says "rootCommand is obsolete in the style, which to me means in /usr/X11R6/share/fluxbox/styles/Spiff -- is that correct?

After reading dive's post, I commented those lines so that /usr/X11R6/share/fluxbox/styles/Spiff has no rootCommand line, and ~/.fluxbox/startup has nothing uncommented except the apps I start. Instead I have
Code:
session.screen0.rootCommand:    bsetbg -f ~/pictures/slack1.png
in ~/.fluxbox/init and now my background loads. NB: The Fluxbox in -current is fluxbox-1.0rc-i486-1. Also, "fbsetroot" as Henrik posted on 06/02/12 doesn't work for me -- maybe because I don't know how to use that command?

Seems I never learned Fluxbox really well before, so I'm reading the esoteric documentation now.

One problem I have, trying to Google <Linux> up some answers now. My GKrellM invisible theme does not work on Fluxbox-1.0rc or 0.9.12 -- both Slackware official packages. It looks like the default theme, except there is no border around it.
 
Old 06-21-2006, 02:33 PM   #6
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
I've had no problems setting a background image, even with the new 1.0rc. I'm trying to remember some details about my config as I'm currently on a Windows machine. I use fbsetbg as a rootCommand in my style. It also works in the init file, but it should be set in only one. I tried the new background commands and they didn't work for me. I also found that, to comment lines in a style file use the !, not the #.

I hope this helps. If you need more details I can post relevant lines from my config files when I get back to my laptop.
 
Old 06-21-2006, 04:39 PM   #7
dracolich
Senior Member
 
Registered: Jul 2005
Distribution: Slackware
Posts: 1,173

Rep: Reputation: 47
I was remembering wrong. It's been so long since I tweaked my background. I had fbsetbg in my style commented with the ! because it doesn't work anymore after 0.9.15 made it obsolete. My lines for the background are

background: centered
background.pixmap: /path/to/image
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Black menu backgrounds in GTK apps after upgrading to -current patrokov Slackware 2 02-20-2006 12:42 AM
backgrounds in fluxbox Smokey Slackware 2 08-30-2004 10:13 PM
Changing backgrounds with fluxbox Protex Slackware 2 07-12-2004 11:29 AM
Changing backgrounds on fluxbox? Zaskar Debian 5 03-06-2004 01:40 AM
Fluxbox Backgrounds chhiperic Linux - Newbie 5 05-08-2003 08:07 PM


All times are GMT -5. The time now is 01:29 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration