
xterm(またはgnome-terminal)で次のコマンドを実行して設定します。いわゆる「アイコン名」:
echo -en "\e]1;some_value\a"
これは何をしますか?
「ウィンドウタイトル」と「アイコン名」は同じコマンドで同じ値に設定できるため、「アイコン名」がどのように画像パスになるかはわかりません。
答え1
ずっと前にtwmというウィンドウマネージャがいました。実際にはまだ動作し、素晴らしい動作します。 MS Windows、Mac OS X、および多くの最新のウィンドウマネージャのように、ウィンドウを画面下部のバー(または同様)に最小化するのではなく、ラベル付きアイコン(「iconfify」)に縮小します。
これウィキペディア twm 記事次のような素晴らしい写真があります。
ウィンドウのタイトルはタイトルバーの内容です(例:「計算機」または「xterm」)。アイコン名は、アイコン化されたときにアイコンの下にある名前です(「xclock」)。最新のウィンドウマネージャはアイコンUIを使用していないため、アイコン名はすべて無視できます。
両方の完全な説明は次のとおりです。ICCCMで発見。
答え2
私はここでそれについて議論します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
使用すると、ウィンドウをアイコン化した後に表示される文字列はまだ表示されません (Alt-F9 in )。title
iconName
ICON
xterm
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
1つをテストする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。