xtermの「アイコン名」とは何ですか?

xtermの「アイコン名」とは何ですか?

xterm(またはgnome-terminal)で次のコマンドを実行して設定します。いわゆる「アイコン名」:

echo -en "\e]1;some_value\a"

これは何をしますか?

「ウィンドウタイトル」と「アイコン名」は同じコマンドで同じ値に設定できるため、「アイコン名」がどのように画像パスになるかはわかりません。

答え1

ずっと前にtwmというウィンドウマネージャがいました。実際にはまだ動作し、素晴らしい動作します。 MS Windows、Mac OS X、および多くの最新のウィンドウマネージャのように、ウィンドウを画面下部のバー(または同様)に最小化するのではなく、ラベル付きアイコン(「iconfify」)に縮小します。

これウィキペディア twm 記事次のような素晴らしい写真があります。

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 )。titleiconNameICONxtermfluxbox

$ 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マネージャでしか機能しないという手がかりを提供します。Xephyr1つをテストするfvwmか、window makerマンページで指定されているように実行することをお勧めします。

$ Xephyr :1 -ac -screen 800x600

他の端末から:

$ DISPLAY=:1 wmaker

xtermそれでは内部から始めましょうwindow maker。右クリックして -> Applications-> Terminals-> xtermxtermオプションで再起動してください-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

関連情報