简体   繁体   English

Xmonad 在屏幕上只显示 1 window

[英]Xmonad showing only 1 window on screen

I decided to try Xmonad today and installed it on VM with Arch linux. Without spacing it works perfectly, but when I am adding it, Xmonad only show one newest window on screen (if I open new window, old one just disappear).我决定今天尝试 Xmonad,并将它安装在带有 Arch linux 的 VM 上。没有间距它可以完美运行,但是当我添加它时,Xmonad 只在屏幕上显示一个最新的 window(如果我打开新的 window,旧的就会消失)。
There is my simple configuration I made using information from there :我使用那里的信息进行了简单的配置:

import XMonad
import Xmonad.Layout.Spacing

main :: IO ()
main = xmonad $ def
    { layoutHook = spacingWithEdge 10 $ Full
    }

Sorry if I am being dumb.对不起,如果我是愚蠢的。 This is my first time using Xmonad and Haskell.这是我第一次使用 Xmonad 和 Haskell。

Your configuration replaces the default layoutHook with one that only makes the Full layout available.您的配置将默认的layoutHook替换为仅使Full布局可用的配置。 Changing the relevant line to...将相关行更改为...

    { layoutHook = spacingWithEdge 10 $ layoutHook def

... should add the spacing while keeping all the default layouts available. ...应该在保持所有默认布局可用的同时添加间距。 Note that:注意:

  • You can switch between the available layouts, with the default key binding being Alt + Space;您可以在可用布局之间切换,默认键绑定为 Alt + Space; and

  • You can switch the focused window, even while using the Full layout, with the default key binding being Alt + Tab.即使使用Full布局,您也可以切换焦点 window,默认键绑定为 Alt + Tab。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM