Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
(Linux では、グラフィカル サーバーのターミナル エミュレーターで実行されているシェルの場合) シェルが実行されているウィンドウ マネージャーを特定する方法を知りたいです。 ありがとう
(私は.bashrcのためにそれが欲しい)
wmctrl -m | grep Name | cut -d: -f2正しい答えを与えるようです。しかし、必ずしもインストールされているわけではありません。
wmctrl -m | grep Name | cut -d: -f2
xlsclients現在のディスプレイ (ウィンドウ マネージャーを含む) 内のすべての X クライアントを一覧表示します。例えば
xlsclients
xlsclients | grep -e compiz -e xfwm4