I found the answer buried in this sample configuration and, along with a list of key names , it looks like this:
Definition of the tenth workspace:
myExtraWorkspaces = [(xK_0, "0"),(xK_minus, "tmp"),(xK_equal, "swap")] myWorkspaces = ["1","2","3⌂","4","5","6","7✉","8☺","9♫"] ++ (map snd myExtraWorkspaces)
Then the key binding looks like this:
myKeys = [ -- ... some more keys ... ] ++ [ ((myModMask, key), (windows $ W.greedyView ws)) | (key,ws) <- myExtraWorkspaces ] ++ [ ((myModMask .|. shiftMask, key), (windows $ W.shift ws)) | (key,ws) <- myExtraWorkspaces ]
In this example, a slash key is used, but any other key from the list above can be used instead.
And finally:
main = do xmonad $ config { workspaces = myWorkspaces } `additionalKeys` (myKeys)
bitmask
source share