LXPanel

Материал из LXDE.org
Перейти к: навигация, поиск
'LXPanel' - LXPanel - 'developers' LXDE Team - 'First release' - - 'Latest version' 0.5.8
Release Date 2011-07-29
genre JDesktopPane
license GNU General Public License, LGPL
download Aksesoris Sparepart Motor

LXPanel это стандартная панель LXDE. Панель рабочего стола может генерировать меню для установленных приложений автоматически из файлов *.desktop. Она может быть сконфигурирована из GUI диалога настроек, поэтому нет необходимости редактировать конфигурационные файлы. Компонент предоставляет диалог "Выполнить" с автоматическим дописыванием команды.


Important

  • Note: Although initially based on lxpanel fbpanel, now they are almost completely different in domestic implementationJakarta Hotel. and configuration. So do not use configuration files fbpanel here or you will run into the wrong job.
  • Basic Settings LXPanel can be performed using the configuration dialog. Simply right-click on the panel and you will be able to access the configuration dialog. Please use graphical environment settings rather than directly editing configuration files without special needs.
  • The format of the configurationParfum. Files has changed from version 3.5 to support different layout panels. Do not mix old configuration files with the new versions.
  • The format of the configuration files is not documented to version 3.7 because it was not stable. Now it is documented here.

File Locations === ===

  • Configuration files are located in the LXPanel ~ / .config / lxpanel / <profile name>.
  • The LXDE, we use SEO Service </ span>. another profile name - LXDE. So it is in the folder ~ / .config / lxpanel / LXDE. So, if you change the configuration of the panel under LXDE is not affecting other desktop environment.
  • If the configuration files are missing, lxpanel Load system of / usr / share / lxpanel / profile / <Profile name>.

The main configuration file === === The main configuration file is called "config" and the format looks like this:

[Command]
FileManager = pcmanfm% s
Terminal = xterm-e
LogoutCommand =
</ Pre>
where:
; FileManager: specifies the file manager for the case when you open a folder of lxpanel.
; Terminal: indicates a terminal emulator for the case when you need to run a terminal window.
; LogoutCommand: is this command, when he was selected "Exit" (Eng: "Logout") menu lxpanel. Usually it provides various features such as command "killall <something>". Under LXDE, you can use the "lxde-logout" to exit the session. Warning: It was discovered that in the latter (git) code using the word "Logout" instead of "LogoutCommand" (this is not the final version!)

Panels === ===
Panel configuration file located in the ~ / .config / lxpanel / <Profile> / panels. Each file in the directory defines a single panel. At launch, all the panels are defined in those files are loaded. The default configuration file looks like this:
<pre>
# 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
    widthtype = percent # percent / pixel
    width = 100 # width of the panel: The unit used here is according to widthtype.
    height = 26 # height of the panel
    transparent = 0 # use (pseudo-) transparent background: on = 1, off = 0
    tintcolor = # 000000 # color blended with the backgroud when transparency is used.
    alpha = 0 # alpha value used to blend tintcolor with background.
    setdocktype = 1 # ask the window manager to treat the panel as a dock.
    setpartialstrut = 1 # ask the window manager to reserve the space for the panel and not to cover it with maximized windows
    usefontcolor = 1 # use customize colors for the text instead of that defined in system theme.
    fontcolor = # ffffff # color of text on the panel (Currently this is only supported by clock applet)
    background = 1 # use customize image to draw the background of the panel. (Cannot be used with transparent)
    backgroundfile = / usr / share / lxpanel / images / background.png # The image file used.
}


# Configuration of various applets
# Basic syntax:
# Plugin {
# Type = <plugin type>
# Expand = 0 (optional, mainly used in "taskbar" and "space" applets.
# Expand = 1 will stretch the applet to fill all available spaces)
# Config {
# ...
#}
#}


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

Plugin {
    type = menu
    Config {
        # Image must be set
        image = / usr / share / lxpanel / images / my-computer.png
        # Name is optional
        # It may be set to the name of a *. Directory file in / usr / share / desktop-directories to get a localised label
        # Eg. name = lxde-menu-applications.directory
        name = Label
        # Tint may be set to an X11 colour name or a hex value,
        # The default is blue; black disables tinting.
        tint = red
        system {
        }
        separator {
        }
        item {
            command = run
        }
        separator {
        }
        item {
            image = gnome-logout
            command = logout
        }
    }
}

Plugin {
    type = launchbar
    Config {
        Button {
            id = pcmanfm.desktop
        }
        Button {
            id = gnome-terminal.desktop
        }
        Button {
            id = firefox.desktop
        }
    }
}

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

Plugin {
    type = wincmd
    Config {
        Button1 = iconify
        Button2 = shade
    }
}

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
        AcceptSkipPager = 1
        ShowIconified = 1
        ShowMapped = 1
        ShowAllDesks = 0
        UseMouseWheel = 1
        UseUrgencyHint = 1
        FlatButton = 0
        MaxTaskWidth = 150
        spacing = 1
    }
}

Plugin {
    type = netstat
}

Plugin {
    type = cpu
}

Plugin {
    type = tray
}

Plugin {
    type = dclock
    Config {
        ClockFmt =% R
        TooltipFmt =% A% x
        BoldFont = 0
    }
}


</ Pre>


Location === two panels both in the environment GNOME ===
LXPanel can support multiple panels. We offer a set of configuration files that mimic dvupanelny default look like the GNOME here.

Solution with an empty menu LXPanel

If you press the menu button, but did not find the result of their actions. That for you provided the following script for this problem: <pre>

  1. ! / Bin / bash

killall lxpanel file = `find ~ / .cache / menus-name" * "-type f` rm $ {file} lxpanel-p LXDE & </ Pre> This unloads the lxpanel, delete the current cache and runs panel again. Tested with version 0.3.99/0.3.999.

Testing LXPanel == == Here you can find the specific information for LXPanel. If you want to use the plugin menu LXPanel, you need to compile the cache application menu and lxmenu-data so the same. First, compile the cache menu, then lxmenu-data and after that LXPanel. For more information on testing please refer to the following pages.

Compile Options === ===

 . / Autogen.sh
 . / Configure
 make
 make install

you need to menu-cache from the repository to compile LXDE LXPanel.

Solution to the icon menu gxine

Open the file / usr / share / applications / gxine.desktop:

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

Remove the line:

 x-content/video-svcd
 x-content/video-vcd

Change the "Categories":

 Categories = AudioVideo; Player; TV;

gxine now placed in the menu.

See also


References