如何在带有 IM 布局的 xmonad 中设置花名册的高度

How to set height of roster in xmonad withIM layout

我在 xmonad 中使用 withIM 布局,我使用 conky 和 ​​dzen,这导致花名册覆盖 conky/dzen 条,而其他 windows 不重叠。我在 st 中使用 profanity 作为 IM。

我搜索了一段时间来寻找改变高度的解决方案,但没有找到任何有用的东西。我的布局配置如下所示:

  --
  -- Layouts
  --

  sPx = 1

  verticalLayout = spacing sPx $ avoidStruts $ reflectHoriz $ Tall 1 0.03 0.5
  verticalLayoutLargeScreen = spacing sPx $ avoidStruts $ ThreeCol 1 0.03 0.5
  horizontalLayout = spacing sPx $ avoidStruts $ Mirror $ Tall 1 0.03 0.5
  webdevLayout = spacing sPx $ avoidStruts $ Tall 1 0.03 0.63
  fullscreenLayout = noBorders $ fullscreenFull $ Full

  myLayout =
      onWorkspace "2:web" (webdevLayout ||| fullscreenLayout) $ reflectHoriz $
                      (withIM (3%7) (ClassName "Profanity")
                      (verticalLayoutLargeScreen ||| Grid ||| Full |||
                      verticalLayout ||| horizontalLayout ||| fullscreenLayout))

你试过把 avoidStruts 拉得更远吗?这些方面的东西:

  verticalLayout = spacing sPx $ reflectHoriz $ Tall 1 0.03 0.5
  verticalLayoutLargeScreen = spacing sPx $ ThreeCol 1 0.03 0.5
  horizontalLayout = spacing sPx $ Mirror $ Tall 1 0.03 0.5
  webdevLayout = spacing sPx $ Tall 1 0.03 0.63
  fullscreenLayout = noBorders $ fullscreenFull $ Full

  myLayout =
      onWorkspace "2:web" (webdevLayout ||| fullscreenLayout) $
      avoidStruts $
      reflectHoriz $
      withIM (3%7) (ClassName "Profanity") $
          verticalLayoutLargeScreen |||
          Grid |||
          Full |||
          verticalLayout |||
          horizontalLayout |||
          fullscreenLayout