Answers:
很久以前,有一个名为twm的窗口管理器-实际上,它仍然存在并且运行得很好。与其将诸如MS Windows,Mac OS X和许多现代窗口管理器之类的屏幕的窗口最小化到最小,不如将窗口缩小为带有标签的图标(“ iconfify”)。
在维基百科的文章TWM有一些好看的图片,如:
窗口标题就是标题栏中的内容(例如,“ Calculator”或“ xterm”)。图标名称是图标化后图标下方的名称(“ xclock”)。现代的窗口管理器可能都忽略了图标名称,因为他们不使用图标UI。
两者的完整描述可在ICCCM中找到。
我将在xterm
这里讨论:它是一个旧软件,现在它的许多术语已经过时了。在man xterm
上面说:
iconName (class IconName) Specifies a label for xterm when iconified. Xterm provides no default value; some window managers may assume the application name, e.g., "xterm" Setting the iconName resource sets the icon label unless overridden by zIconBeep or the control sequences which change the window and icon labels.
这意味着它iconName
一定不能是图标图像,它只是在xterm
图标化时为窗口提供的标签。也可以使用以下-n
选项进行设置:
-n string This option specifies the icon name for xterm's windows. It is shorthand for specifying the "iconName" resource. Note that this is not the same as the toolkit option -name (see below). The default icon name is the application name.
xterm
像这样开始后,用title
!= iconName
我仍然看不到ICON
图标化xterm
窗口(在中的Alt-F9 fluxbox
)后显示字符串:
$ xterm -n ICON -T a-new-title
通过xterm
联机帮助页进一步挖掘发现(**
我的):
activeIcon (class ActiveIcon) Specifies whether or not active icon windows are to be used when the xterm window is iconified, if this feature is compiled into xterm. The active icon is a miniature representation of the content of the window and will update as the content changes. Not all window managers necessarily support application icon windows. Some window managers will allow you to enter keystrokes into the active icon window. The default is "default". Xterm accepts either a keyword (ignoring case) or the number shown in parentheses: false (0) No active icon is shown. true (1) The active icon is shown. If you are using twm, use this setting to enable active-icons. default (2) Xterm checks at startup, and shows an active icon only for window managers which it can identify and which are known to support the feature. **These are fvwm (full support), and window maker (limited).** A few other windows managers (such as twm and ctwm) support active icons, but do not support the exten- sions which allow xterm to identify the window manager.
activeIcon
可能与iconName
功能没有直接关系,但是它为我们提供了一个线索,即与图标相关的功能xterm
仅在某些窗口管理器中才能正常工作。我建议Xephyr
测试一个fvwm
或window maker
按照手册中的规定进行测试:
$ Xephyr :1 -ac -screen 800x600
在另一个终端:
$ DISPLAY=:1 wmaker
现在让我们开始xterm
内部window maker
:右键- > Applications
- > Terminals
- > xterm
。开始xterm
有-n
选择再次:
$ xterm -n ICON -T a-new-title
右键单击标题栏,然后选择Miniaturize
。现在您可以看到一个xterm
图标实际上已标记为ICON
。通过单击将其重新显示,然后看到标题栏为a-new-title
。结论是该iconName
功能仅适用于某些窗口管理器,很可能是较旧的窗口管理器。如果您觉得自己很坚强,则可以浏览window maker
源代码并在不支持的情况下对自己的窗口管理器进行修补iconName
。
顺便说一句,有关更改xterm
图标图像的信息,请参见:https : //superuser.com/questions/344320/how-do-i-change-the-icon-of-an-xterm。