LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 06-21-2011, 11:07 PM   #1
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
setting a background to the panel in xfce


Hey, i'm using xfce and trying to set the background to the panel. I've searched the answer on a search engine, and from peoples responses it appears to have been possible in previous releases but the option isn't in the panel settings in the one i'm using. I'm relatively new to xfce and wasn't sure what version i'm using, it's the default xfce with Slackware 13.37.
 
Old 06-22-2011, 03:15 PM   #2
Snark1994
Senior Member
 
Registered: Sep 2010
Distribution: Debian
Posts: 1,632
Blog Entries: 3

Rep: Reputation: 346Reputation: 346Reputation: 346Reputation: 346
It's been a while since I last used XFCE, but I thought you just right-clicked on the panel and chose 'Properties'... Then there were options to change the background colour/image.
 
Old 06-22-2011, 04:44 PM   #3
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
In Xfce 4.6.2 one can change the size, transparency and position of the panel, right-clicking the panel and going into "Customize Panel...".

Apparently the only way to change the panel background is through gtkrc files. Check this link for more info: http://wiki.xfce.org/tips
 
Old 06-22-2011, 07:42 PM   #4
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Quote:
Originally Posted by Diantre View Post
Apparently the only way to change the panel background is through gtkrc files. Check this link for more info: http://wiki.xfce.org/tips
Ok i just found out where to see which version of xfce i'm using and it is, 4.6.2. So this method must be how to do it. I checked your link, but was a little confused to be honest. I can't even find my gtkrc file. I checked hidden files in my home directory and then in the themes directory but there is none. Am i looking in the right place?
 
Old 06-22-2011, 08:16 PM   #5
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Quote:
Originally Posted by Knightron View Post
Ok i just found out where to see which version of xfce i'm using and it is, 4.6.2. So this method must be how to do it. I checked your link, but was a little confused to be honest. I can't even find my gtkrc file. I checked hidden files in my home directory and then in the themes directory but there is none. Am i looking in the right place?
Create a hidden file named .gtkrc-2.0 in your home directory and make the changes suggested in the Xfce wiki there.

I use .gtkrc-2.0 to change the transparency and colors of the icons in the Xfce desktop:

Code:
style "xfdesktop-icon-view" {

XfdesktopIconView::label-alpha = 35
font_name="Sans"

base[NORMAL] = "#ffffff"
base[SELECTED] = "#ffffff"
base[ACTIVE] = "#fefefe"

fg[NORMAL] = "#ffffff"
fg[SELECTED] = "#73B2D0"
fg[ACTIVE] = "#D17100"
}
widget_class "*XfdesktopIconView*" style "xfdesktop-icon-view"
I'm not using the Xfce panel, so I actually haven't tried changing the background, but I can tell you certain gtk themes do change the panel background.
 
Old 06-25-2011, 09:05 AM   #6
Knightron
Senior Member
 
Registered: Jan 2011
Location: Australia
Distribution: openSUSE
Posts: 1,465

Original Poster
Blog Entries: 6

Rep: Reputation: 200Reputation: 200Reputation: 200
Hey thanks for your help, i got it working. (= Unfotunatly i use two panels. This configuration sets the same background on both panels. Is it possible to set different backgronds to different panels?
 
Old 06-25-2011, 11:20 AM   #7
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
I don't know my friend, I haven't tried that. But I suppose the setting you're looking for is related to this line:

Code:
widget_class "*Panel*" style "panel-background"
That line will match widgets with the partial word "Panel" in their name, and assigns the style "panel-background" to them. What we need to know here is how Xfce calls the panels. Knowing that, you can create an entry for the first panel and another for the second, each one with a different style.

Perhaps somebody else knows what's the widget name of the Xfce panels? Anyone?
 
Old 06-25-2011, 01:20 PM   #8
Diantre
Member
 
Registered: Jun 2011
Distribution: Slackware
Posts: 515

Rep: Reputation: 234Reputation: 234Reputation: 234
Well, I've been googling for this but it seems I can't find the right answer. The only thing I found was a different reference to the widget name:

Code:
widget "*Xfce*Panel*"           style "theme-panel"
class "*Xfce*Panel*"            style "theme-panel"
Perhaps if you try using *Xfce*Panel*1* or *Xfce*Panel*2*. That's a wild guess, don't know if it will work or if it's correct...
 
  


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
Change background on Xorg (xfce) SkyerSK Linux - Newbie 13 01-29-2011 02:48 PM
xfce panel has gone perkins17 Linux - Newbie 1 01-08-2009 01:30 PM
no Panel in xfce archShade Slackware 4 10-10-2007 03:12 PM
Xfce problems with task bar and xfce-panel aeruzcar Linux - Software 4 06-26-2006 05:29 AM
Xfce 4.2 background problem Doolspin Linux - Software 7 02-13-2005 06:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 10:32 AM.

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