Well, I am not using Dvorak actually but Neo2, but as I am using a matrix type keyboard (Truly Ergonomic) I have also shifted the numbers.
Therefore this construction in my xmonad.hs
does not work ergonomically:
-- mod-[1..9], Switch to workspace N
-- mod-shift-[1..9], Move client to workspace N
--
[((m .|. modMask, k), windows $ f i)
| (i, k) <- zip (XMonad.workspaces conf) [xK_1 .. xK_9]
, (f, m) <- [(W.greedyView, 0), (W.shift, shiftMask)]
I want to change that, to be able to access the workspaces 1 to 9 with the keys 2 to 0.
How could I achive that? I have tried to change the third line to
| (i, k) <- zip (XMonad.workspaces conf) [xK_2 .. xK_0]
but then I could not access the 9th workspace. How do I have to change this? A short explanition would be nice, so to learn something about this construction (I learned Haskell many years ago and forgot most of it).