On Fri, Mar 28, 2008 at 2:45 PM, Anze Slosar <
anze@berkeley.edu> wrote:
Hi,
How can I bind certain layouts to key combinations? So rather than cycle
thorugh layouts with Mod Space, I'd like Mod F1 to give me layout 1, Mod
F2 to give me layout 2, etc... I've been googling for a bit, but can't
find an answer.
Thanks.
anze
Hi Anze,
You can do this using the JumpToLayout message from the XMonad.Layout.LayoutCombinators extension module. For example:
import XMonad hiding ( (|||) ) -- don't use the normal ||| operator
import XMonad.Layout.LayoutCombinators -- use the one from LayoutCombinators instead
import XMonad.Util.EZConfig -- add keybindings easily
main = xmonad myConfig
myConfig = defaultConfig {
...
layoutHook = tall ||| Mirror tall ||| Full
...