haskell - 如何使用IM布局在xmonad中设置名册高度

标签 haskell layout xmonad profanity

我在 xmonad 中使用 withIM 布局,并且使用 conky 和 ​​dzen,这会导致花名册覆盖 conky/dzen 栏,而其他窗口不重叠。我在 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))

最佳答案

您是否尝试过将 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

关于haskell - 如何使用IM布局在xmonad中设置名册高度,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41806091/

相关文章:

haskell - 重复的定义不充分

android - 如何为两种景观定义不同的布局?

haskell - 还记得 xmonad 工作区布局吗?

haskell - 跨类型构造函数编写通用仿函数实例?

haskell - 诊断并行 monad 性能

parsing - 解析器的问题

iphone - 以类似网格的方式布局不同尺寸图像的算法

android - 用小的缩放动画 "rebound"

haskell - Xmonad 找不到模块 XMonad(或任何其他)

macos - 无法在 Mac 中启动 XMonad