Upload
fanshapat
View
216
Download
0
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.