|
|
发表于 2009-6-4 15:14:49
|
显示全部楼层
Post by sw2wolf;1992908
layoutHook = windowNavigation $ (avoidStruts (tall ||| Mirror tall ||| mosaic ||| combo ||| Full))
where
tall = Tall 1 (3/100) (1/2)
mosaic = MosaicAlt M.empty
combo = combineTwo (TwoPane 0.5 0.5) (mosaic) (Full)
能解释下这种布局吗? 这种布局下,当我在一个workspace启动两程序时(roxterm与firefox), 总是一左右排満屏幕! 而我希望一上一下排, roxterm在屏幕上边, firefox在屏幕下边, 应该如何改layout啊?
BTW,
xmonad真不错, 稳定快速, 用起来效率高! xmonad+dmenu就满足我的需要了, 当然dmenu得改下, 要不它不知道什么时候就把.dmenu_cache中菜单改了:
%cat ~/.xmonad/xmonad.hs|grep dmenu
, ((modm, xK_m), spawn "exe=`dmenu_path | dmenu -b` && eval \"exec $exe\"")
%cat /usr/bin/dmenu_path
.........
uptodate_bak() { #这是原来的
test -f "$CACHE" &&
for dir in $PATH
do
test ! $dir -nt "$CACHE" || return 1
done
}
uptodate() { #这是新的
return 0
}
.........
%cat .dmenu_cache
/media/G/firefox/firefox
thunderbird
~/bin/xp.sh
evince
gqview
vinagre
sudo shutdown -r now
sudo shutdown -h now
直接用 dmenu_run好了。
我是干脆用yeganesh 替代了dmenu_run中的dmenu,可以实现常用命令按惯用程度排序,经常用的排在前面,往往只需要按一个字母就ok啦。 |
|