jyh 发表于 2003-5-28 22:21:39

icewm的定义任意窗口的特性的问题

icewm的配置文件winoptions可以定义任意窗口的特性,如是否出现在人物栏,保持最上层,是否显示最大化按钮等 (icesh也可以)。

但好多功能我不会用,那位高手可以帮一下忙?

WebDownloader for X 2.4.1
Dr.com 用户认证程序 (v2.71)
不能实现定义,应该是窗口名字的问题吧,应该怎样写?还有让窗口只在systray显示怎么用?

WebDownloader for X 2.4.1.ignoreTaskBar: 1
Dr.com 用户认证程序 (v2.71).ignoreTaskBar: 1

jyh 发表于 2003-5-29 22:00:11

找到一个帮助文档,源码包里有,安装后我找不到了.
如下



12. Window Options

winoptions file is used to configure settings for individual application windows.

Each line in the file must be in one of the possible formats:

window_class.window_name.option: argument window_name.option: argument window_class.option: argument

Each window on the desktop has (should) class and name resources associated with it. They can be determined using the xprop utility.

xprop should display a line like this when used on a toplevel window:

WM_CLASS = "name", "class"

Options that can be set per window are as follows:

icon

    The name of the icon.
workspace

    Default workspace for window (number, counting from 0)
layer

    Default layer for the window. Layer can be one of the following strings:

    Desktop

      Desktop window. There should be only one window in this layer.
    Below

      Below default layer.
    Normal

      Default layer for the windows.
    OnTop

      Above the default.
    Dock

      Layer for windows docked to the edge of the screen.
    AboveDock

      Layer for the windows above the dock.
    Menu

      Layer for the windows above the dock.

    You can also use the numbers from WinMgr.h.
geometry

    Default geometry for window. This geometry should be specified in the X11-syntax, formal notation: [=][<width>{xX}lt;height>][{+-}<xoffset>{+-}<yoffset>]
tray

    Default tray option for the window. Affects both the tray and the task pane. Tray can be one of the following strings:

    Ignore

      Don't add an icon to the tray pane.
    Minimized

      Add an icon the the tray. Remove the task pane button when minimized.
    Exclusive

      Add an icon the the tray. Never create a task pane button .

allWorkspaces=0

    If set to 1, window will be visible on all workspaces.
ignoreWinList=0

    If set to 1, window will not appear in the window list.
ignoreTaskBar=0

    If set to 1, window will not appear on the task bar.
ignoreQuickSwitch=0

    If set to 1, window will not be accessible using QuickSwitch feature (Alt+Tab).
fullKeys=0

    If set to 1, the window manager leave more keys (Alt+F?) to the application.
fMove=1

    If set to 0, window will not be movable.
fResize=1

    If set to 0, window will not be resizable.
fClose=1

    If set to 0, window will not be closable.
fMinimize=1

    If set to 0, window will not be minimizable.
fMaximize=1

    If set to 0, window will not be maximizable.
fHide=1

    If set to 0, window will not be hidable.
fRollup=1

    If set to 0, window will not be shadable.
dTitleBar=1

    If set to 0, window will not have a title bar.
dSysMenu=1

    If set to 0, window will not have a system menu.
dBorder=1

    If set to 0, window will not have a border.
dResize=1

    If set to 0, window will not have a resize border.
dClose=1

    If set to 0, window will not have a close button.
dMinimize=1

    If set to 0, window will not have a minimize button.
dMaximize=1

    If set to 0, window will not have a maximize button.
noFocusOnAppRaise

    if set to 1, window will not automatically get focus as application raises it.
ignoreNoFocusHint

    if set to 1, icewm will focus even if the window does not handle input.
doNotCover=0

    if set to 1, this window will limit the workspace available for regular applications. window has to be sticky at the moment to make it work

jyh 发表于 2003-5-30 21:38:52

搞定了,窗口要有WM_class确定用命令xprop查看,然后在winoptions中定义即可。具体定义见上面的帮助文件。

效果如下
页: [1]
查看完整版本: icewm的定义任意窗口的特性的问题