[xmonad] Basic configuration : Config.Gnome + some more keys

Matthieu Dubuget matthieu.dubuget at gmail.com
Sun Sep 13 15:39:29 EDT 2009


Henrique G. Abreu a écrit :
> Matthieu,
>
> I'm new to xmonad too (half a year) and also know nothing of haskell,
> but I think I can help you.
> The easiest way I found to add my own key bindings is using EZConfig
> additionalKeysP, like this:
>
> import XMonad
> import XMonad.Actions.CycleWS
> import XMonad.Config.Gnome
> import XMonad.Util.EZConfig
>
> main = do
>     xmonad $ gnomeConfig
>         { modMask = mod4Mask
>         } `additionalKeysP`
>         [ ("M-<L>", prevWS )
>         , ("M-<R>", nextWS )
>         , ("M-S-<L>", shiftToPrev)
>         , ("M-S-<R>", shiftToNext)
>         ]
>
> If I understood right, this should do what you want.

Exactly! Thanks a lot Henrique.

> The mod-[1..9] and mod-shift-[1..9] are already part of the default
> bidings <http://haskell.org/sitewiki/images/b/b8/Xmbindings.png>.

I will have to search a little more for this part, because the keymap
I'm using
does not offer direct access to digits: that's why I bind Fn keys.

Salutations

Matt


More information about the xmonad mailing list