[Xmonad] dynamic workspaces, session restore

Valery V. Vorotyntsev valery.vv at gmail.com
Tue Oct 16 10:15:08 EDT 2007


On 10/16/07, Daniel Spoonhower <spoons+ at cs.cmu.edu> wrote:
>
> > 3) Can I define a key binding like, say, `Win-k 1'?
> >
> >    The pattern is `<modifiers>-<key1> <key2>'. I find such
> >    screen/ion/emacs-y keystrokes very handy. :)
> >
>
> Yes, see XMonadContrib/Submap.hs
>
> For example, as a single item in the "keys" map you might have:
>
>      -- less frequently used actions
>      , ((modMask, xK_k), submap . M.fromList $
>          [ ((0, xK_c),            kill) -- @@ Close window
>          , ((0, xK_period),       sendMessage (IncMasterN 1))
>          , ((0, xK_comma),        sendMessage (IncMasterN (-1)))
>          , ((modMask, xK_space ), setLayout defaultLayout)
>          , ((0, xK_Return),       withFocused $ windows . W.sink)
>          ]

Great!
Thank you. :)


More information about the Xmonad mailing list