个人工具

Xfce窗口管理器操作手册

来自Ubuntu中文

跳转至: 导航, 搜索

Xfce窗口管理器操作手册

概述

Xfce 4 窗口管理器是 Xfce桌面环境的组成部分之一。其实际运行的命令是xfwm4。如要在后台运行该命令,可以用xfwm4 --daemon。窗口管理器负责窗口在屏幕上的布局,提供窗口装饰,并允许你移动、改变大小或者关闭窗口。

xfwm4 严格遵循 freedesktop.org定义的标准。因此,如让窗口无边框或要为应用程序提供图标之类的特殊特性现在必须由应用程序本身实现;你不能再用窗口管理器来强制获得不同的行为。xfwm4的强大特性之一是其主题能力。窗口装饰(边框、标题栏和窗口按钮)可以用窗口管理器主题进行配置。

xfwm4提供了多显示器(multihead)支持,包括xinerama和真正的多屏幕模式;当你的计算机连接了多个显示器时,该支持很有用。

xfwm4可以独立运行,但是如果你以此种方式使用它的话,同时想要进行GUI配置管理,你将需要Xfce 4设置管理器。管理窗口之外的任务,如设置背景图片或启动程序等,则需由其它程序执行。

xfwm4包含有自己的混合管理器,它充分利用了 新的X.org的服务器扩展。混合器本身就象一个WM,它管理所有窗口,监控各类X事件,并作出相应的反应。把混合管理器内建在窗口管理器中还能帮助保持各种不同的视觉效果和窗口事件同步。如果你想使用混合器就必须使用--enable-compositor配置选项来构建xfwm4。任何时候,你都能用'--compositor=off'参数在xfwm4启动时关闭混合器。

使用xfwm4

管理窗口

窗口管理器可以提供应用程序的框架,标题栏和窗体按钮。界面由窗口主题管理器所定义

在默认的xfwm4主题上常规的应用程序窗口显示六个按钮和一个标题。这六个按钮执行以下几个基本的功能:

Figure 1. xfwm4 标题栏按钮

attachment:Titlebar.png

您可以左击标题栏上的菜单按钮打开窗口菜单,或者右击窗口自身标题区域。


获得窗口的焦点

如果您想接受键盘和鼠标的输入那么您必须先在窗体上获得焦点。窗口的颜色会紧跟着焦点发生改变。获得更多详细关于焦点请访问参考段落名为 “Keyboard and focus”.

键盘的快捷键允许从一个窗口切换焦点到另外窗口:按住 Alt 然后按 Tab 重复多次直到您获得您需要窗体的焦点。如果您操作了,您会看见一个小的带有窗口标题的弹出窗口而且xfwm4会高亮获得焦点窗口的边缘。

如果你不想面板,程序显示在任务栏上,被包含在用 Alt+Tab 快捷键切换焦点中,编辑你的 $HOME/.xfce4/xfwm4rc [或者创建新的]然后添加这一行:cycle_minimum=false

注意:使用一个应用程序的快捷键需要首先该应用程序的窗口获得了焦点:]

最大化/最小化窗口

如果你最大化一个窗口,它会扩展到你的显示器使用所有可用的空[这也被定义在workspace settings [1]]

你也可以只水平或者垂直方向最大化.

执行以下动作使窗口最大化:

  • 点击标题栏的最大化按钮
  • 打开标题栏的窗口菜单然后选择"最大化"项目
  • 使用 Alt + F5 快捷键


垂直最大化窗口 :

  • 中键单击标题栏的最大化按钮
  • 使用 Alt + F6 快捷键


水平最大化一个窗口 :

  • 右击标题栏的最大化按钮
  • 使用 Alt + F7 快捷键

当一个窗口已经被最大化了,它可以通过以下动作恢复到预先的尺寸:

  • 点击标题栏的恢复按钮
  • 再次使用同样的快捷键一次
  • 在窗口菜单选择"恢复"项目


改变窗口的大小

虽然有些特殊的窗口不能改变大小,但是你可以改变多数的窗口的大小尺寸来满足您的需要.

  • 你可以用鼠标拖动窗口边角来修改其大小。
  • 当鼠标指针位于窗口任意位置时,你可以使用Alt + right快捷键,这等同于你正在拖动窗口右下角。
  • 你可以使用键盘快捷键:Shift + Alt + [上、下、左或者右]键。


隐藏/恢复窗口

你可以通过这些方法之一来隐藏窗口:

  • 点击标题栏上的隐藏按钮;

从标题栏上打开窗口菜单,并选择“隐藏”选项;

  • 使用Alt + F8键盘快捷键。

另外,你可以只通过一个操作来隐藏当前工作区域内除你正在使用的窗口之外的所有窗口:点击标题栏上的菜单按钮,并选择“Hide all others”。

要恢复一个窗口,你得在以下XFce 4 组件之一中选择其名称或者图标:

  • xftaskbar4
  • the xfce4-iconbox
  • 窗口列表,用中键点击桌面背景。这个列表显示了由工作区域归类的所有窗口,当前隐藏的窗口用“[ ]”符号来标记。


收缩/恢复窗口

如果你选择“收缩”一个窗口,该窗口将收缩为其标题栏大小。重复该操作就可以使一个窗口收缩/恢复:

  • 点击标题栏上的shade/unshade按钮;
  • 从标题栏上打开窗口菜单,并选择"Shade" 或者 "Unshade"选项;
  • 当鼠标指针位于标题栏时使用鼠标滚轮操作;
  • 使用Alt + F9键盘快捷键。


粘贴/剪切窗口

如果你选择“粘贴”一个窗口,该窗口将可见于你所有工作区的相同位置。重复相同操作可以粘贴/剪切一个窗口:

  • 点击标题栏上的stick/unstick按钮;
  • 从标题栏上打开窗口菜单,并选择 "Stick" 或者"Unstick"选项;
  • 使用Alt + F10键盘快捷键。


移动窗口

移动窗口的方法有很多:

  • 用左键或者右键点击并拖动窗口标题栏;
  • 当鼠标指针位于窗口任意位置时按下Alt + left快捷键,并移动鼠标;
  • 使用Control + Alt + Shift + [上、下、左或者右]键盘快捷键。


移动窗口到另一工作区

你可以通过这些方法之一将一个窗口发送到另一个工作区:

  • 剪切该窗口,移动到另一个工作区,然后粘贴该窗口;
  • 使用窗口菜单,选择次级菜单中的 "Send to"选项;
  • 用左键或者右键点击窗口标题栏,拖动到屏幕边缘:这将使指针移到下一个工作区,仍然控制着窗口。相应选项需在 Window Manager Preferences dialog进行选择。
        • 使用键盘快捷键:
          • Alt + Control + End将移动窗口到下一个工作区;
          • Alt + Control + Home将移动窗口到上一个工作区;
          • Alt + Control + Keypad-Number将移动当前窗口到相应工作区;
          • graphical pager点击窗口描述,并将其移动到所需工作区。


关闭窗口

要想关闭窗口:

  • 点击标题栏上的“关闭”按钮
  • 打开标题栏上的窗口菜单,并选择“关闭”选项
  • 或者使用Alt + F4进行键盘操作

在默认状态使用如下设置:

        • 关闭窗口: Alt + F4
        • 最大化窗口: Alt + F5
        • 垂直最大化: Alt + F6
        • 水平最大化: Alt + F7
        • 隐藏窗口: Alt + F8
        • 收缩窗口: Alt + F9
        • 粘贴窗口: Alt + F10
        • 循环窗口焦点: Alt + Tab
        • 移动窗口: Control + Shift + Alt + 箭头键[上、下、左、右]
        • 更改窗口大小: Shift + Alt + 箭头键[上、下、左、右]
        • 下一个工作区: Control + Alt + 箭头键右键
        • 上一个工作区: Control + Alt + 箭头键左键
        • 添加一个工作区: Alt + Inser
        • 删除一个工作区: Alt + Delete
        • 切换到第N [1-9]号工作区: Control + F[N]
        • 移动窗口到上一个/下一个工作区: Alt + Control + Home|End
        • 移动窗口到第N [1-9]号工作区: Alt + Control + 数字键盘 N
        • 启动xfhelp4 : Alt + F1
        • 启动xfrun4 : Alt + F2
        • 锁定屏幕: Alt + Control + Delete


定制xfwm4

要打开Window Manager对话框,只需在XFce 4 Settings manager [2]中点击"Window Manager"标签按钮。对话框显示三个标签: Decoration style, Keyboard and focus, Advanced。所有更改都将立即在相关项目生效。

装饰风格

Figure 2. 装饰风格偏好

attachment:Decoration_style.png

窗口风格

The list on the left side of the dialog shows all avaible window decorations. The xfwm 4 module offers the choice between 10 different themes, but there are more than 50 supplementary themes avaible in xfwm4-themes extra package. You can preview all of them on the official XFce Website [3]

Title font

The "Font select" button shows the family font currently in use for the window title appearance. Click this button if you want to change it, and a "Font selection" dialog will appear. It works like the font selection dialog of the user interface settings manager plugin [4].

Title alignment

Whatever the buttons layout is, you can choose the alignment of the title inside the title bar, selecting one of those simple options : align it to the left, center or right.

Button layout

The button layout configuration uses an intuitive interface with radio buttons. Just imagine that all selected items project themselves on the baseline of the frame. Moreover, all modifications will have an immediate effet on the title bar buttons position.


键盘快捷键

图 3. 焦点首选项

attachment:Focus.png

键盘快捷键

The list on the left side of the dialog shows all avaible shortcuts themes, using the name of directories that contain a keythemerc file.

By default, there's only one theme : $[prefix]/share/xfwm4/themes/default.keys/keythemerc

You can customize keyboard shortcuts by editing this default keythemerc file [seven shorcuts entries are left empty for your convenience], or you can create a new theme, either like this one : $[prefix]/share/xfwm4/themes/custom.keys/keythemerc, or like this one [in your $HOME directory] : $HOME/.themes/xfwm4/custom.keys/keythemerc.

NOTE : $prefix is the install-prefix you used during xfwm 4 setup, usually /usr or /usr/local.

If you do not know the names of your keyboard modifier keys, you can launch the "xev" application from a terminal and test them.


焦点首选项

焦点模式

A focused window receives the keyboard and mouse input. You have the choice between two focus models :

  • Click to focus : select this option if you want a window to receive the focus only when you click anywhere on its frame.
  • Focus follow mouse : select this option if you want a window to receive the focus as soon as the mouse pointer is over its frame.


新窗口焦点

Selecting this option will automatically give the focus to newly created windows, without the need to click or move the mouse pointer.

Raise on focus

If this option is selected, the frame of a newly focused window will automatically appear over all other frames, after an amount of time that you can adjust with the "delay" slider.

Raise on click

Choose this option if you want a window to pass over the others when you click anywhere on its frame. If this option is not selected, you will have to click somewhere on its decorations [title bar, borders or corners] to raise it.

高级设置

Figure 4. Advanced preferences

attachment:Misc_wm_prefs.png

Windows snapping

You can choose the windows borders to be attracted by the borders of other windows, or by the screen edges, when they are moved. The distance from which this effect will be applied can be specified with the "Distance" slider.

Wrap workspaces

Select the first option if you want to switch to the next workspace when the mouse pointer reaches the screen edges. Select the second one if you want the same behaviour while dragging a window. You can specify the screen edges resistance using the corresponding slider.

Opaque move and resize

Two options allow you to choose if the content of a window will appear or not, when you move or resize it [not displaying the content will save some system resources].

Double click action

Select what must be the behaviour of the window manager when you double-click on the title bar of a window : shade window, hide window, maximize window or none.


隐藏选项

管理工作区

工作区设置

工作区边缘

Figure 5. The workspace margins dialog

attachment:Workspace_margins.png

要打开Workspace Margins对话框,只需在settings manager dialog [5].点击"Workspace Margins"标签。

Margins are areas on the edges of the screen that maximized windows won't cover. You can adjust the size, in pixels, of all margins [left, right, top and bottom]. Use this feature, for example, if you do not want maximized windows to overlap panel or iconbox frames.

关于xfwm4

xfwm4由Olivier Fourdan [<mailto:[email protected]>]编写。欲寻找更多信息,请访问XFce web站点 [6]

要汇报一个bug或者提交一点关于此应用程序或者此文档的建议,可发电子邮件到xfce4开发组 [7]邮件列表——这是更好的办法——或者使用XFce SourceForge项目网站 [8]上的bug跟踪系统。如果您在使用和安装此软件包时有问题,请在xfce [9]邮件列表中询问。

此程序在自由软件基金会所发布的GNU General Public License第二版或者(您所认可的)其后续版本下发布。

您已经认可了伴随此程序的GNU General Public License的一份复制品;如果不是,致信给自由软件基金会: 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.