Thursday, August 16, 2012

Fbpanel Configuration file for Arch Linux

 Recently I installed Openbox on Arch Linux : everyone has choice to use any panel or no panel : some like tint2 : I personally like Fbpanel .

So I spent some time to create a working Fbpanel settings for Arch Linux openbox session and I will put it here for quick reference .

Please find the following location in your file manager in super user mode (root )

~/.config/fbpanel

This directory contains a file named as "default" : that is our target file to configure to that we can run a neat and tidy fbpanel on Arch Linux .

This file contains default settings for an fbpanel : you need to modify it so it can work for your Arch Linux Openbox session . Open it with a text editor e.g geany

Just copy paste these conents into this file removing the default settings first 


########################################
## fbpanel configuration file         ##
########################################
Global {
    edge = bottom
    allign = center
    margin = 0
    widthtype = percent
    width = 100
    height = 25
    transparent = true
    tintcolor = #000000
    alpha = 200
    setdocktype = true
    autohide = false
    heightWhenHidden = 0
    roundcorners = false
    setpartialstrut = true
    setlayer = false
    layer = above
    roundcornersradius = 0
    maxelemheight = 0
}
Plugin {
    type = space
    config {
        size = 2
    }
}
plugin {
    type = menu
    expand = false
    padding = 0
    config {
        image = ~/.config/fbpanel/arch.png
        systemmenu {
        }
        separator {
        }
    menu { 
        name = Computer
        icon = computer
           
        item {
        name = Terminal
        icon = terminal
        action = lxterminal
        }
            item {
                name = Lock Display
                icon = gnome-lockscreen
                action = slimlock
            }
            separator {
            }
            item {
                name = Reboot
                icon = gnome-session-reboot
                action = sudo reboot
            }
            item {
                name = Shutdown
                icon = gnome-session-halt
                action = sudo shutdown -h 0
            }
            item {
                name = logout
                icon = gnome-session-logout
                action = openbox --exit
            }
        }
    }
}
Plugin {
    type = space
    config {
        size = 12
    }
}
Plugin {
type = launchbar
config {
button {
icon = file-manager
tooltip = File Manager
action = pcmanfm
}
button {
icon = terminal
tooltip = Terminal
action = lxterminal
}
button {
icon = web-browser
tooltip = Web Browser
action = firefox
}
}
}
Plugin {
    type = space
    config {
        size = 15
    }
}
Plugin {
    type = wincmd
    config {
        icon = gnome-fs-desktop
        tooltip = Show Desktop
    }
}
Plugin {
    type = space
    config {
        size = 15
    }
}
Plugin {
    type = pager
    config {
        showwallpaper = true
    }
}
Plugin {
    type = taskbar
    expand = true
    config {
        ShowIconified = true
        ShowMapped    = true
        ShowAllDesks  = false
        tooltips = true
        IconsOnly = false
        MaxTaskWidth = 150
    }
}
Plugin {
    type = space
    config {
       size = 15
    }
}
plugin {
    type = tray
    expand = false
    padding = 0
    config {
    }
}
Plugin {
    type = space
    config {
        size = 10
    }
}
plugin {
    type = volumebutton
}
# Digital Clock
Plugin {
        type = dclock
        expand = false
        padding = 0
        config {
        ShowSeconds = false
        HoursView = 12
        TooltipFmt = %A %x
        Color = #1068a0
        ShowCalendar = true
    }
}
Plugin {
    type = space
    config {
        size = 10
}
}
separator {
}
Plugin {
type = launchbar
config {
button {
image = ~/.config/fbpanel/exit.png
action = /usr/bin/oblogout
}

# 'icons' plugin lets you customize window icons.
# these changes apply to entire desktop
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
        }
    }
}
---------------------------------------------------


Install "oblogout" from AUR so you can use the Exit button on your panel .The Exit button 

icon is given on this post : place it in 

 ~/.config/fbpanel 

direcotry along with "arch.png"(arch.png will work for your menu button set for Arch Linux ) so your fbpanel picks them according to the settings in "default" file pasted above .

You are all set to use Fbpanel on your openbox session now .

No comments: