Re: [Xmonad] dynamic workspaces, session restore

16 Oct
2007
16 Oct
'07
10:15 a.m.
On 10/16/07, Daniel Spoonhower
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. :)
6428
Age (days ago)
6428
Last active (days ago)
0 comments
1 participants
participants (1)
-
Valery V. Vorotyntsev