オープンボックスウィンドウの位置決め

オープンボックスウィンドウの位置決め

openbox新しいウィンドウを開くときに好きな場所を何らかの方法で指定できますか?たとえば、2つの画面(LVDI、VGA)があり、VGAで新しいウィンドウを開きたいのですが、常にVLDIで開きます(おそらく既知のモニタの中でLVDIが最初に表示されるためX)。別の例として、新しいウィンドウが隠れないようにopenboxデスクトップウィンドウの位置を知りたいと思います。conky

ベストアンサー1

placement新しいOpenboxウィンドウの配置は、openbox設定()セクションによって制御されます~/.config/openbox/rc.xml

<placement>
  <policy>Smart</policy>
  <!-- 'Smart' or 'UnderMouse' -->
  <center>yes</center>
  <!-- whether to place windows in the center of the free area found or
       the top left corner -->
  <monitor>Primary</monitor>
  <!-- with Smart placement on a multi-monitor system, try to place new windows
       on: 'Any' - any monitor, 'Mouse' - where the mouse is, 'Active' - where
       the active window is, 'Primary' - only on the primary monitor -->
  <primaryMonitor>1</primaryMonitor>
  <!-- The monitor where Openbox should place popup dialogs such as the
       focus cycling popup, or the desktop switch popup.  It can be an index
       from 1, specifying a particular monitor.  Or it can be one of the
       following: 'Mouse' - where the mouse is, or
                  'Active' - where the active window is -->
</placement>

この値を特に考慮することをお勧めしますprimaryMonitor

源泉:https://icculus.org/pipermail/openbox/2011-December/007413.html


質問の2番目の部分は、openboxに特定の画面領域および/またはアプリケーションウィンドウを隠さないように指示することがより複雑で特別なウィンドウタイプを設定する必要があるかもしれませんdockpanel~からconky文書:

独自のウィンドウタイプ

own_window が yes の場合、タイプを一般、デスクトップ、ドッキング、パネル、またはオーバーライド (デフォルト: 一般) として指定できます。デスクトップウィンドウはトレーサリのない特別なウィンドウで、常にデスクトップに表示され、ポケットベルやタスクバーには表示されず、すべてのワークスペースに固定されています。パネルウィンドウは、パネルやタスクバーと同様に、デスクトップの端に沿ってスペースを維持し、最大化されたウィンドウが互いに重なり合うのを防ぎます。。ソートオプションに基づいてエッジを選択します。オーバーレイウィンドウはウィンドウマネージャによって制御されません。プロンプトは無視されます。このタイプのウィンドウは特定の状況で役立ちます。

(マイハイライト)

または試してみることができます余白の設定あなたのopenbox設定から。

おすすめ記事