1 May 2010 13:42
[Contrib-Patch] XMonad.Actions.KeyRemap
Hi, i had the problem that i wanted to use programmers dvorak keymapping[1] (or better said, i wanted to learn it). But for me as an emacs user it is a little bit disturbing, that my keybindings change when doing so. So i wrote a module that made it possible for me to define a keymapping, so that normal characters are translated by xmonad to programmers dvorak, and everythin that contains a modifier is left untouched. This behaviour is done by grabbing all keys by xmonad and sending appropriate Events to the focused window. It is also possible to change keymaps on the fly. Here i have the empty Mapping (here are also no keys bound by xmonad) on F1 and the dvorak Mapping on F2. greetz didi [1] http://www.kaufmann.no/roland/dvorak/ PS: I hope i got the attachment right, i'm not used to gnus until now. -- -- No documentation is better than bad documentation -- Das Ausdrucken dieser Mail wird urheberrechtlich verfolgt.
Hi,(Continue reading)
I just fixed
the documentation in that patch.
> Type signatures for top level declarations are mandatory.
>
> Blocks of sample code should be prefixed with `>':
>
> -- > foo x y z = ...
> -- > ....
>
> Itemized lists need blank lines around each item.
>
> Lastly, the hardcoded constants could be calculated from the strings
> you listed with `map (fromIntegral . fromEnum)'. Leave out the
> fromIntegral if [Int] is the result you're looking for.
let a = (map fromEnum "abc") :: [KeySym]
<interactive>:1:13:
Couldn't match expected type `KeySym' against inferred type `Int'
In the first argument of `map', namely `fromEnum'
In the expression: (map fromEnum "abc") :: [KeySym]
In the definition of `a': a = (map fromEnum "abc") :: [KeySym]
RSS Feed