3

Sometimes I launch a window tiled. Maybe as a scratchpad (using NamedScratchpad) or as in this question.

Now I want to be able to zoom (either fullscreen or tile) this floating window, and then toggle back to the previous tiled size & position.

What is a good way to accomplish that?

Also, if I hit the hotkey for a scratchpad, I want it to open according to the specification in my config file --- not according to the current state (e.g. tiled).

4

1 回答 1

2

如果我正确理解您的(缩放)问题,XMonad.Layout.Maximize请提供您正在寻找的内容。请注意,这maximize会影响布局的命名 - 如果您使用XMonad.Layout.Named,您可能希望在maximize喜欢之前定义名称

myLayout = named "myName"
           $ maximize
           $ someLayout

带有键绑定,例如

((modm, xK_backslash), withFocused (sendMessage . maximizeRestore))

在链接的文档中描述。

目前这个模块没有完全最大化,但留下了一点边界。如果它给您带来困扰,您可以修改模块并将您的版本放置~/.xmonad/lib/modifiedMaximize在您可以导入它的位置

import modifiedMaximize

在你的xmonad.hs.

于 2014-08-29T10:26:20.027 回答