|
Documentation for fbpanel projectBuilding fbpanelThe following is what you will need to compile fbpanel:
Once you have the above dependancies installed, you are ready to build fbpanel. % tar zxvf fbpanel-x.y.tgz #...untar the fbpanel archive % cd fbpanel-x.y #...cd inside the source tree % ./configure #...prepare source for compiling % make #...fbpanel builds... % su #...become root % make install #...do install ![]() RunningSimple like that...% fbpanel & # use default profile % fbpanel -p abc & # use profile abc, create it if needed ![]() Configuringfbpanel stores its configurations in ~/.config/fbpanel directory. Every profile is represented by a single text file with a same name. Name of default profile is default. Edit relevant file and restart fbpanel. You can also tell running fbpanel to reload its configuration by sending it USR1 signal.% vi ~/.config/fbpanel/default % killall -USR1 fbpanel # tell fbpanel to reload configurationIn addition, there is configuration GUI that covers all panel's options, but not plugins yet. To get it, click Ctrl-Button2 anywhere in panel or run it with -C option Configuration file structureConfiguration file consists from one Global section, that covers panel options, and one or more Plugin sections.The syntax is following:
Global sectionIt describes global panel parameters like position, size and some NETWM settings.If variable has default value, it can be omited. The full variable list is:
Global {
edge = bottom
allign = center
margin = 0
widthtype = percent
width = 92
height = 48
transparent = true
tintcolor = #ffffff
alpha = 32
setdocktype = true
setpartialstrut = true
autohide = false
heightWhenHidden = 2
roundcorners = false
roundcornersradius = 7
layer = above
setlayer = false
maxelemheight = 24
}
Plugin sectionIt describes which plugin to load, how to position it and has plugin specific configuration section. If variable has default value, it can be omited. The full variable list is:
Plugin {
type = space
expand = false
padding = 0
config {
size = 2
}
}
Plugin {
type = cpu
}
Plugins with additional configurationCpu
Plugin {
type = cpu
config {
Color = green
}
}
Net
Plugin {
type = net
config {
interface = eth0
TxLimit = 20
RxLimit = 190
TxColor = violet
RxColor = blue
}
}
Pager
Plugin {
type = pager
config {
showwallpaper = true
}
}
Space
Plugin {
type = space
config {
size = 15
}
}
Mem
Plugin {
type = mem
config {
ShowSwap = true
}
}
dclock
Plugin {
type = dclock
config {
ShowSeconds = false
HoursView = 24
Action = xmessage Please define some command
}
}
tclock
Plugin {
type = tclock
config {
# 2 line view, time in bold above and date below
ClockFmt = %-l:%M %P
%a %B %-e
TooltipFmt = %A %x
#Action = xmessage Please define some command
ShowCalendar = false
ShowTooltip = true
}
}
Taskbar
plugin {
type = taskbar
expand = true
config {
ShowIconified = true
ShowMapped = true
ShowAllDesks = false
tooltips = true
IconsOnly = false
MaxTaskWidth = 150
}
}
Launchbar
plugin {
type = launchbar
expand = false
padding = 0
config {
button {
icon = gnome-terminal
tooltip = Terminal
action = xterm
}
button {
image = /opt/google/chrome/product_logo_48.png
tooltip = Google Chrome
action = google-chrome
}
}
}
Menu
plugin {
type = menu
config {
icon = start-here
systemmenu {
}
separator {
}
menu {
name = Computer
icon = computer
item {
name = Terminal
icon = terminal
action = x-terminal
}
item {
name = Lock Display
icon = gnome-lockscreen
action = xtrlock2
}
separator {
}
item {
name = Reboot
icon = gnome-session-reboot
action = sudo reboot
}
}
}
}
Icons
plugin {
type = icons
expand = false
padding = 0
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
}
application {
image = /usr/share/icons/yasis/scalable/apps/gnome-ppp.svg
AppName = minicom
}
}
}
|