LoginSignup
1
0

More than 5 years have passed since last update.

現在のレイアウト名での挙動を設定する (ManageHook)

Last updated at Posted at 2012-05-31

特定のレイアウトでの挙動を指定できます。
例は、"Float" という名前のレイアウトでは、ウィンドウを中央に Float させるという意味不明なもの。

layoutName.hs

import qualified XMonad.StackSet as SS

layoutName :: Query String
layoutName = liftX $ gets (description . SS.layout . SS.workspace . SS.current . windowset)

myManageHook :: ManageHook
myManageHook =
  composeAll
    [ layoutName =? "Float"             --> doCenterFloat
    .... ]
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0