4
LXPanel Developer LXDE Team Latest version 0.8.1 (from 6 May. 2015) Genre Desktop Panel License GNU General Public License Website lxde.org (http://lxde.org/) LXPanel From LXDE.org LXPanel is the standard panel of LXDE. The desktop panel can generate a menu for installed applications automatically from *.desktop files. It can be configured from a GUI preferences dialog, so there is no need to edit config files. The component provides a "Run" dialog with autocompletion. As of version 0.7.0, LXPanel has gained theming support via custom gtkrc file. Contents 1 Important notes 1.1 File Locations 1.2 Main Config File 1.3 Panels 1.4 Custom menu plugin actions 1.5 GNOMELike Two Panel Layout 1.6 Fix empty menu in LXPanel 2 Testing LXPanel 2.1 Addresses 2.2 Compiling options 3 gxine menu icon fix 4 Icons only 5 See also 6 External Links Important notes Warning: Although lxpanel is originally derived from fbpanel, they are now almost totally different both in internal implementation and configuration. So, don't use fbpanel config files here or things will break. Basic configuration of LXPanel can be done with the GUI preference configuration dialog. Just right click on the panels, and you can access the config dialog. Please use the GUI instead of directly editing the config files if you don't have very special needs. The format of config files has changed since version 3.5 to support multiple panel layout. Don't mix older config files with newer versions. The config file format was not documented before version 3.7 because it was not yet stabilized. Now, it's documented here. File Locations The config files of LXPanel are stored in ~/.config/lxpanel/<Profile Name>. Under LXDE, we use a different profile name LXDE. So it's in ~/.config/lxpanel/LXDE. In this way, if you changed the config of the panel under LXDE, it won't interfere other desktop environments. If the config files are missing, lxpanel loads systemwide config in /usr/share/lxpanel/profile/<Profile name> instead. Main Config File The main config file is named "config", and its format is like this: [Command] FileManager=pcmanfm %s Terminal=xterm ‐e LogoutCommand= FileManager file manager used when an applet in lxpanel need to open a folder (only before version 0.7.0, since 0.7.0 it uses XDG preferences). Terminal terminal emulator used when an applet needs to popup a terminal window (only before version 0.7.0, since 0.7.0 it uses LibFM config). Logout program invoked when "Logout" is chosen in the lxpanel menu. Generally, this can be "killall <something>". Under LXDE, you can use "lxdelogout" to logout the session. Warning : prior to lxpanel version 0.5.10 it seems that it was "LogoutCommand" instead of "Logout". Panels Files defining the layout of panels are in ~/.config/lxpanel/<Profile>/panels. Each file in the directory defines a panel. On startup, all panels defined in those files are loaded. The default config file looks like this: # lxpanel <profile> config file. Manually editing is not recommended. # Use preference dialog in lxpanel to adjust config when you can. # Global section: defines appearance and behavior of this panel. Global { edge=bottom # The edge this panel attaches to allign=left # alignment: left/center/right margin=0 # margin: margin to the edge of the whole screen

LXPanel - LXDE

Embed Size (px)

DESCRIPTION

menata panel lxde

Citation preview

  • LXPanel

    Developer LXDETeamLatestversion 0.8.1(from6May.2015)

    Genre DesktopPanelLicense GNUGeneralPublicLicenseWebsite lxde.org(http://lxde.org/)

    LXPanelFromLXDE.org

    LXPanelisthestandardpanelofLXDE.Thedesktoppanelcangenerateamenuforinstalledapplicationsautomaticallyfrom*.desktopfiles.ItcanbeconfiguredfromaGUIpreferencesdialog,sothereisnoneedtoeditconfigfiles.Thecomponentprovidesa"Run"dialogwithautocompletion.Asofversion0.7.0,LXPanelhasgainedthemingsupportviacustomgtkrcfile.

    Contents

    1Importantnotes1.1FileLocations1.2MainConfigFile1.3Panels1.4Custommenupluginactions1.5GNOMELikeTwoPanelLayout1.6FixemptymenuinLXPanel

    2TestingLXPanel2.1Addresses2.2Compilingoptions

    3gxinemenuiconfix4Iconsonly5Seealso6ExternalLinks

    Importantnotes

    Warning:Althoughlxpanelisoriginallyderivedfromfbpanel,theyarenowalmosttotallydifferentbothininternalimplementationandconfiguration.So,don'tusefbpanelconfigfileshereorthingswillbreak.BasicconfigurationofLXPanelcanbedonewiththeGUIpreferenceconfigurationdialog.Justrightclickonthepanels,andyoucanaccesstheconfigdialog.PleaseusetheGUIinsteadofdirectlyeditingtheconfigfilesifyoudon'thaveveryspecialneeds.Theformatofconfigfileshaschangedsinceversion3.5tosupportmultiplepanellayout.Don'tmixolderconfigfileswithnewerversions.Theconfigfileformatwasnotdocumentedbeforeversion3.7becauseitwasnotyetstabilized.Now,it'sdocumentedhere.

    FileLocations

    TheconfigfilesofLXPanelarestoredin~/.config/lxpanel/.UnderLXDE,weuseadifferentprofilenameLXDE.Soit'sin~/.config/lxpanel/LXDE.Inthisway,ifyouchangedtheconfigofthepanelunderLXDE,itwon'tinterfereotherdesktopenvironments.Iftheconfigfilesaremissing,lxpanelloadssystemwideconfigin/usr/share/lxpanel/profile/instead.

    MainConfigFile

    Themainconfigfileisnamed"config",anditsformatislikethis:

    [Command]FileManager=pcmanfm%sTerminal=xtermeLogoutCommand=

    FileManagerfilemanagerusedwhenanappletinlxpanelneedtoopenafolder(onlybeforeversion0.7.0,since0.7.0itusesXDGpreferences).

    Terminalterminalemulatorusedwhenanappletneedstopopupaterminalwindow(onlybeforeversion0.7.0,since0.7.0itusesLibFMconfig).

    Logoutprograminvokedwhen"Logout"ischoseninthelxpanelmenu.Generally,thiscanbe"killall".UnderLXDE,youcanuse"lxdelogout"tologoutthesession.Warning:priortolxpanelversion0.5.10itseemsthatitwas"LogoutCommand"insteadof"Logout".

    Panels

    Filesdefiningthelayoutofpanelsarein~/.config/lxpanel//panels.Eachfileinthedirectorydefinesapanel.Onstartup,allpanelsdefinedinthosefilesareloaded.Thedefaultconfigfilelookslikethis:

    #lxpanelconfigfile.Manuallyeditingisnotrecommended.#Usepreferencedialoginlxpaneltoadjustconfigwhenyoucan.

    #Globalsection:definesappearanceandbehaviorofthispanel.Global{edge=bottom#Theedgethispanelattachestoallign=left#alignment:left/center/rightmargin=0#margin:margintotheedgeofthewholescreen

  • widthtype=percent#percent/pixelwidth=100#widthofthepanel:Theunitusedhereisaccordingtowidthtype.height=26#heightofthepaneltransparent=0#use(pseudo)transparentbackground:on=1,off=0tintcolor=#000000#colorblendedwiththebackgroudwhentransparencyisused.alpha=0#alphavalueusedtoblendtintcolorwithbackground.setdocktype=1#askthewindowmanagertotreatthepanelasadock.setpartialstrut=1#askthewindowmanagertoreservethespaceforthepanelandnottocoveritwithmaximizedwindowsusefontcolor=1#usecustomizecolorsforthetextinsteadofthatdefinedinsystemtheme.fontcolor=#ffffff#coloroftextonthepanel(Currentlythisisonlysupportedbyclockapplet)background=1#usecustomizeimagetodrawthebackgroundofthepanel.(cannotbeusedwithtransparent)backgroundfile=/usr/share/lxpanel/images/background.png#Theimagefileused.}

    #Configurationofvariousapplets#Basicsyntax:#Plugin{#type=#expand=0(optional,mainlyusedin"taskbar"and"space"applets.#expand=1willstretchtheapplettofillallavailablespaces)#Config{#...#}#}

    Plugin{type=spaceConfig{Size=2}}

    Plugin{type=menuConfig{#imagemustbesetimage=/usr/share/lxpanel/images/mycomputer.png#nameisoptional#itmaybesettothenameofa*.directoryfilein/usr/share/desktopdirectoriestogetalocalisedlabel#eg.name=lxdemenuapplications.directoryname=Label#tintmaybesettoanX11colournameorahexvalue,#seehttp://library.gnome.org/devel/gdk/unstable/gdkColormapsandColors.html#gdkcolorparse#Thedefaultisblue;blackdisablestinting.tint=redsystem{}separator{}item{command=run}separator{}item{image=gnomelogoutcommand=logout}}}

    Plugin{type=launchbarConfig{Button{id=pcmanfm.desktop}Button{id=gnometerminal.desktop}Button{id=firefox.desktop}}}

    Plugin{type=spaceConfig{Size=4}}

    Plugin{type=wincmdConfig{Button1=iconifyButton2=shade}}

    Plugin{type=spaceConfig{Size=4}}

    Plugin{type=pager}

    Plugin{type=spaceConfig{Size=4}}

    Plugin{

  • type=taskbarexpand=1Config{tooltips=1IconsOnly=0AcceptSkipPager=1ShowIconified=1ShowMapped=1ShowAllDesks=0UseMouseWheel=1UseUrgencyHint=1FlatButton=0MaxTaskWidth=150spacing=1}}

    Plugin{type=netstat}

    Plugin{type=cpu}

    Plugin{type=tray}

    Plugin{type=dclockConfig{ClockFmt=%RTooltipFmt=%A%xBoldFont=0}}

    Custommenupluginactions

    UndertheMenupluginentryshownabove,customentriescanbeaddedusingtheaction=setting.Forexample:

    item{image=bootname=Exitaction=lxdelogout}

    (Thisshouldnotbeconfusedwiththemainmenuspecificationfromfreedesktop.orgimplementedvia*.desktopfilesin/usr/share/applications)

    GNOMELikeTwoPanelLayout

    LXPanelcansupportmultiplepanellayouts.Weprovideasetofconfigurationfilesthatmimicthedefaultlookandfeelofagnomeliketwopanellayouthere.http://lxde.git.sourceforge.net/git/gitweb.cgi?p=lxde/lxpanela=treef=data/two_panelshb=HEAD

    FixemptymenuinLXPanel

    Ifyouclickonthemenubutton,butthemenudoesn'tcomeup,youcanusethislittlescripttofixit:

    #!/bin/bash

    killalllxpanelfind~/.cache/menusname'*'typefprint0|xargs0rmlxpanelpLXDE&

    Itwillkilllxpanel,deletethecurrentmenucacheandstartthepanelagain.Testedwith0.3.99/0.3.999.

    TestingLXPanel

    HereyoucanfindthespecialInformationforLXPanel.IfyouwanttousethemenupluginwithinLXPanel,youneedtocompileapplicationsmenucacheandlxmenudatatoo.Firstcompilemenucache,thenlxmenudataandatlastLXPanel.ForgeneralinformationontestingreadtheTesting(http://wiki.lxde.org/en/Category:Testing)pages.

    Addresses

    Sourcebrowser:http://git.lxde.org/gitweb/?p=lxde/lxpanel.gita=summarySourceGit:git://git.lxde.org/lxde/lxpanel.gitBugstracker:http://sourceforge.net/p/lxde/bugs/

    Compilingoptions

    ./autogen.sh./configuremakemakeinstall

  • you'llneedmenucachefromtheLXDErepositorytocompileLXPanel.

    gxinemenuiconfix

    Openfile/usr/share/applications/gxine.desktop:

    #nano/usr/share/applications/gxine.desktop

    Deletelines:

    xcontent/videosvcdxcontent/videovcd

    Change"Categories"value:

    Categories=AudioVideo;Player;TV;

    gxineisplacedinthemenunow.

    Iconsonly

    Itispossibletochangethepanelappearancetoaveryminimaliststyle,similartotint2,displayingonlyiconsratherthantabs.Todothis,openpanelsettings(e.g.rightclickingonthe"desktops"partofthepanel)and:

    choosePanelAppletstabfromthelist,choose"TaskBar(WindowList)"clickedittogetjusttheiconsagainstthebackgroundofthepanel,selectboth"Iconsonly"and"Flatbuttons"

    "Showtooltips"and"Showwindowsfromallworkspaces"optionsarealsoavailableonthePanelAppletstab.

    Toadjusticonsizeaswellaspanelwidthandheight,seetheGeometrytabinsettings.Thethicknessofthebarandthesizeoftheiconsaresetseparately.

    Seealso

    HowtowritepluginsforLXPanelMainMenuLXPanelTheming

    ExternalLinks

    LXPanelatsf.net(http://sourceforge.net/projects/lxde/files/LXPanel%20%28desktop%20panel%29/)LXDE:ConfiguringLXPanel(http://pclosmag.com/html/Issues/201010/page07.html)PCLinuxOSMagazinedetailedconfigurationinstructions.

    Retrievedfrom"http://wiki.lxde.org/en/index.php?title=LXPanel&oldid=24171"Categories: LXDE Component

    Thispagewaslastmodifiedon9May2015,at00:17.Thispagehasbeenaccessed238,677times.ContentisavailableunderGNUFreeDocumentationLicense1.2unlessotherwisenoted.