Thursday, June 3, 2010

fbpanel - text configuration in a nice panel


I thought I'd post my fbpanel config to give an idea of how things are done in this excellent panel.
Starting from the left we have
1. Start icon - this was downloaded from http://gnome-look.org/content/show.php/5+ubuntu+menu-icons?content=63133. I simply pointed fbpanel to the location of the extracted chosen icon and I was set!.
2. File manager - I pointed fbpanel to pcmanfm. You're free to substitute whichever file manager you are using of course. Thunar and xfe also work nicely in my experience.
3. Terminal - I chose sakura. It's full featured, light-weight, few dependencies, and supports tabbing and transparencies.
4. Web browser - I chose firefox. On a lighter box I'd be likely to choose midori, but on this box, firefox is fine.
5. Text editor - Geany is my choice here. It's a great drop in replacement for gedit, and it doesn't do anything you don't tell it to.
6. Iconify. This is your basic "show desktop command"
7. Desktop switcher - The default is 4 desktops. I trimmed this to 2.
8. Dock - Active programs are listed here.
9. Volwheel - great little app to control volume.
10. Clock - Lists the time

And here's the code stored in ~/.fbpanel/default

# fbpanel <profile> config file
# see http://fbpanel.sf.net/docs.html for complete configuration guide


Global {
edge = bottom
allign = left
margin = 0
widthtype = percent
width = 100
height = 24
transparent = true
tintcolor = #ffffff
alpha = 35
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 2
}

Plugin {
type = space
config {
size = 2
}
}


Plugin {
type = menu
config {
image = /home/lleu/Downloads/orb-big-white.png
systemmenu {
}
separator {
}
item {
icon = gnome-settings
name = configure
command = configure
}
item {
icon = gnome-session-halt
name = shut down
action = sudo /sbin/halt
}
item {
icon = gnome-session-restart
name = reboot
action = sudo /sbin/reboot
}
item {
icon = gnome-session-logout
name = exit
action = openbox --exit
}
}
}


Plugin {
type = space
config {
size = 5
}
}


Plugin {
type = launchbar
config {
button {
icon = gnome-fs-home
tooltip = PcManfm file manager
action = pcmanfm
}
button {
icon = gnome-terminal
tooltip = Terminal
action = sakura
}
button {
icon = mozilla-firefox
tooltip = Firefox web browser
action = firefox
}
button {
icon = accessories-text-editor
tooltip = Texteditor
action = geany
}
}
}


Plugin {
type = space
config {
size = 8
}
}


Plugin {
type = wincmd
config {
icon = gnome-fs-desktop
tooltip = Left click to iconify all windows. Middle click to shade them.
}
}


Plugin {
type = space
config {
size = 7
}
}


Plugin {
type = pager
config {
showwallpaper = true
}
}


Plugin {
type = icons
config {
DefaultIcon = /usr/share/fbpanel/images/default.xpm
application {
icon = gnome-terminal
ClassName = XTerm
}
application {
icon = gnome-terminal
ClassName = mlterm
}
application {
icon = gnome-terminal
ClassName = URxvt
}
application {
icon = gnome-emacs
ClassName = Emacs
}
application {
icon = mozilla-firefox
ClassName = Firefox-bin
}
application {
icon = mozilla-firefox
ClassName = Firefox
}
}
}


Plugin {
type = space
config {
size = 5
}
}


Plugin {
type = taskbar
expand = true
config {
ShowIconified = true
ShowMapped = true
ShowAllDesks = false
tooltips = true
IconsOnly = false
MaxTaskWidth = 150
}
}


Plugin {
type = tray
}


Plugin {
type = dclock
config {
ClockFmt = %R
}
}



2 comments:

Venkatesan Jayabalan said...

can you say how to install fbpanel in centos 6.7?

muaythaimaster said...

I am not a Centos user. However, I would suggest looking in your distribution repositories. If it is not located there, then you can build from source. Here is the home page for the project. http://aanatoly.github.io/fbpanel/index.html

Good luck!