Xfce/zh-cn

引用 xfce.org网站的话：“Xfce 是类Unix操作系统上的 桌面环境 . ]] 虽然它致力于快速与低资源消耗，但仍然具有视觉吸引力且易于使用. ”

避免不必要的依赖
避免可选的GNOME支持和包将使系统更加精简，这部分完全是可选的：如果目标是使系统保持较小而不是较大，则以这种方式进行.

确保系统使用基本的“desktop” profile配置文件：

默认具有  ：

当然，如果需要，  也可以在  中全局设置.

设置 XFCE_PLUGINS
在 中，添加并自定义 XFCE_PLUGINS 变量：

以上选项可能会改变；当前列表可以在 ${PORTDIR}/profiles/desc/xfce_plugins.desc中找到.

安装（Emerge）
是时候安装完整的Xfce桌面了！

如果没有在 命令中明确包含  ，则  将在GNOME的  中进行绘制. 因此，将它与 一起安装，然后取消选择它，使其不包含在world文件中：

当然，也可以只选择所需的包：

显示管理器
可以使用显示管理器启动Xfce，请参阅display manager中相关文章以配置显示管理器.

大多数显示管理器使用 文件来配置可用会话，以下是一个示例桌面文件：

desktop文件可以放置在显示管理器的正确位置.

在没有显示管理器的情况下启动Xfce
和 是在不使用显示管理器情况下启动Xfce的两种现成的方案.

startx
使用 时，使用以下内容创建  文件：

在OpenRC配置文件中遇到xfce4内的授权或权限问题时（现象包括无法打开电源管理器且无法睡眠或休眠），请确保 软件包已使用了    USE标志. 然后替换 中刚刚那行内容为以下内容（有关更多信息，请参阅Gentoo论坛）：

startxfce4
要启动Xfce4桌面，只需在命令行键入，然后按回车键：

Xfce是一个桌面环境，因此可以根据几乎每个用户的需求进行调整和定制. 在本节中，涵盖了许多受欢迎，或更具挑战性的内容.

xfce4-volumed
安装来管理音量键（不建议使用，建议使用替代，或在Window Manager或混音器中使用键绑定）：

将pulseaudio与xfce4一起使用时，请使用：

键盘快捷键
运行来绑定以下键：


 * 按钮: amixer总音量增加5%
 * 按钮: amixer总音量减少5%
 * 按钮: amixer静音切换

Native Xfce theme engine
Xfce's own theme engine,, was updated in version 3.0, which implements native support for GTK+ 3 with no further configuration.

Assuming that the  USE flag is set, the GTK+ 3 version (revision 300 or higher) should be pulled in by default if  or  were installed with a   world upgrade.

If not simply:

This should pull in the right version of through the use of a specific.

After emerging the GTK+ 3 version of, applications using GTK+ 3 should now blend nicely with applications using GTK+ 2 when one of the native Xfce themes is used.

Greybird theme
Another option is to use the Greybird theme, which has support for GTK+ 2, GTK+ 3, xfwm4, emerald, and metacity:

Go to ->  ->. Or run. Select "Greybird" from the "Style" list.

Now GTK+ 2 and GTK+ 3 applications should have a consistent look.

Other themes
Other themes available in Portage that are compatible with XFCE can be emerged with the following list:

Additional applications
There are a number of additional applications that are part of Xfce.

The following applications work well in Xfce and round out a basic desktop environment.

Enable vertical window snapping
Most modern desktop environments have vertical window snapping enabled by default. This is also possible in Xfce, but not by default. To enable, navigate to: →  →.


 * Make sure the "Snap windows to screen border" checkbox has been checked.
 * Make sure the checkboxes under "Wrap workspaces when reaching the screen edge" have been unchecked. These interfere with vertical window snapping.

Once the checkboxes are set it should be now possible to drag a window to the right or left side of the screen, which should cause the window to resize to 50% of the screen width.

Keyboard shortcuts can be set in order to do this via the typical + or + behavior. Navigate to →  →.

Set the "Tile window to the left" and "Tile window to the right" actions with the + and + key combinations respectively.

Audio mixer complains about missing pavucontrol binary
Clicking the speaker (audio) icon in the panel and then selecting results in a message saying "pavucontrol binary not found".

The solution is to install :

Program starting hotkeys are not working / Colors not changeable from appearance
Xfce can have hotkeys for both starting an application as well as modifying the behavior of an already running application or setting. An example of behavior hotkey is the ++ combination, which minimizes all windows to show the deskop (and vice-versa).

Assuming that hotkeys for starting an application (such as + to start the application finder) are not working, while the application can be started from the menu, then Consolekit is not running. Start it, and make sure that it gets started at boot time:

This will also start D-Bus, a prerequisite for Consolekit. Restart X to enjoy the new hotkeys and colors.