LXpanel in Mate desktop

The standard panel of LXDE - http://wiki.lxde.org/en/LXPanel
Locked
sigahotcore
Posts: 2
Joined: Thu Apr 04, 2013 10:35 pm

LXpanel in Mate desktop

Post by sigahotcore »

I am trying to replace Mate panel with Lxpanel ( I just like it ).
How do i add reboot and shutdown buttons for Mate to it ?
I know this is LXDE forum and i am using Mate but i hoped you would be bunch of folk to ask , since LXDE components can be used outside LXDE desktop .
I got logout so far , here is my Lxpanel config :



# lxpanel <profile> config file. Manually editing is not recommended.
# Use preference dialog in lxpanel to adjust config when you can.

Global {
edge=bottom
allign=left
margin=0
widthtype=percent
width=100
height=26
transparent=1
tintcolor=#dedede
alpha=255
autohide=0
heightwhenhidden=2
setdocktype=1
setpartialstrut=1
usefontcolor=0
fontsize=10
fontcolor=#ffffff
usefontsize=0
background=0
backgroundfile=/usr/share/lxpanel/images/background.png
iconsize=24
}

Plugin {
type = space
Config {
Size=2
}
}

Plugin {
type = menu
Config {
image=/usr/share/pixmaps/debian-logo.png
system {
}
separator {
}
item {
command=run
}
separator {
}
item {
name=Logout
image=gnome-logout
action=mate-session-save --logout-dialog
}
}
}

Plugin {
type = launchbar
Config {
Button {
id=lxde-x-terminal-emulator.desktop
}
Button {
id=/usr/share/applications/firefox.desktop
}
Button {
id=/usr/share/applications/abiword.desktop
}
Button {
id=/usr/share/applications/picasa.desktop
}
Button {
id=/usr/share/applications/audacious.desktop
}
}
}

Plugin {
type = space
Config {
Size=4
}
}

Plugin {
type = wincmd
Config {
image=window-manager
Button1=iconify
Button2=shade
Toggle=0
}
}

Plugin {
type = space
Config {
Size=4
}
}

Plugin {
type = pager
}

Plugin {
type = space
Config {
Size=4
}
}

Plugin {
type = taskbar
expand=1
Config {
tooltips=1
IconsOnly=0
ShowAllDesks=0
UseMouseWheel=1
UseUrgencyHint=1
FlatButton=0
MaxTaskWidth=150
spacing=1
GroupedTasks=0
}
}

Plugin {
type = cpu
}

Plugin {
type = tray
}

Plugin {
type = dclock
Config {
ClockFmt=%R
TooltipFmt=%A %x
BoldFont=0
IconOnly=0
CenterText=0
}
}
seppalta
Posts: 449
Joined: Tue Sep 20, 2011 6:09 am
Location: USA
Contact:

Re: LXpanel in Mate desktop

Post by seppalta »

The normal route to putting an entry on lxpanel is through lxmenu. See the chart in http://lxlinux.com/#11. If you have lxpanel installed, then you have likely installed lxmenu as well (provided a "no-install-recommends" was not done). Right clicking the lxpanel and choosing Add/Remove Panel Items will allow you to add any item that has a entry in lxmenu, which is any item that has a .desktop file. So make sure there is a .desktop file for reboot-shutdown for your distro and your home for getting it on lxpanel. Such a .desktop file probably already exists in /usr/share/applications. You just have to make sure it will show up in lxmenu by editing the Categories= and OnlyShowIn to make sure they are not preventing showing in lxmenu. Lxmenu, in case you are not using it, does not have to be explicitly on the panel to accomplish this.

In case you do not already have a .desktop file for shutdown, then find the shutdown command for Mate or your particular distro and construct one. See http://lxlinux.com/#11 for more information there. Shutdown for a complete lxde-desktop is normally exec=lxde-logout. However, every distribution creates their own command. Generally,
exec=gksu shutdown -h 0 and exec=gksu shutdown -r 0
work for any distribution shutdown or reboot, respectively.
sigahotcore
Posts: 2
Joined: Thu Apr 04, 2013 10:35 pm

Re: LXpanel in Mate desktop

Post by sigahotcore »

Thank you very much , your answer led me to a different terminology serach and i found this :
http://forums.linuxmint.com/viewtopic.p ... 6&t=116846
I will try it late , but i think i got what i was looking for .
Will let you know how it goes . :D
Locked