将窗口移动到XMonad中的Master,而无需交换


0

mod-return当前将焦点窗口与主窗口交换。我想要的是将聚焦的窗口移至主窗口,然后将其余窗口移到一个位置。因此,最终结果就好像我按下了几次mod-shift-k一样。

Answers:


2

Xmonad.StackSet.shiftMaster 确实做到了。

只需在您的按键配置中添加如下所示的行:

, ((modMask,               xK_Return), windows W.shiftMaster)

或者,如果您使用additionalKeysPfrom XMonad.Util.EZConfig

, ("M-<Return>", windows W.shiftMaster)
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.