QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 808|回复: 2

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

[复制链接]
发表于 2003-5-28 22:21:39 | 显示全部楼层 |阅读模式
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
 楼主| 发表于 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
回复

使用道具 举报

 楼主| 发表于 2003-5-30 21:38:52 | 显示全部楼层
搞定了,窗口要有WM_class确定用命令xprop查看,然后在winoptions中定义即可。具体定义见上面的帮助文件。

效果如下

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 12:11 , Processed in 0.078560 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表