3

我在 xmonad 中使用 withIM 布局,我使用的是 conky 和 ​​dzen,这导致花名册覆盖 conky/dzen 栏,而其他窗口不重叠。我在profanity内部st作为 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))
4

1 回答 1

4

Have you tried pulling the avoidStruts further out; something along these lines:

  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
于 2017-02-19T05:15:51.923 回答