我试图使不同的工作区有不同的布局,我发现了这个模块- https://hackage.haskell.org/package/xmonad-contrib-0.15/docs/XMonad-Layout-PerWorkspace.html。
我在我的XMonad.Layout.PerWorkspace中导入了xmonad.hs并添加了这些行-
onWorkspace ["2"] noBorders monocle $ -- layout l1 will be used on workspace "2".
onWorkspace ["9"] smartBorders Full $ -- layout l2 will be used on workspace "6".在myLayoutHook中
-- The layout hook
myLayoutHook = avoidStruts $ mouseResize $ windowArrange $ T.toggleLayouts floats $
mkToggle (NBFULL ?? NOBORDERS ?? EOT) myDefaultLayout
onWorkspace ["2"] noBorders monocle $ -- layout l1 will be used on workspace "2".
onWorkspace ["9"] smartBorders Full $ -- layout l2 will be used on workspace "6".
where
-- I've commented out the layouts I don't use.
myDefaultLayout = tall
||| noBorders monocle
||| floats
||| grid
||| smartBorders Full但是我在重新编译xmonad时出错了
> xmonad --recompile
XMonad will use ghc to recompile, because "/home/apoorv/.xmonad/build" does not exist.
Error detected while loading xmonad configuration file: /home/apoorv/.xmonad/xmonad.hs
xmonad.hs:620:14: error: parse error on input ‘where’
|
620 | where
| ^^^^^
Please check the file for errors.
Warning: Missing charsets in String to FontSet conversion发布于 2020-07-08 11:24:27
你错过了一个$..。
一般格式如下:
abc
$ xyz123
$ xyz456而你似乎有:
abc
xyz123 $
xyz456 $https://unix.stackexchange.com/questions/596747
复制相似问题