xmonad / xmonad-contrib

Contributed modules for xmonad
https://xmonad.org
BSD 3-Clause "New" or "Revised" License
584 stars 274 forks source link

X.U.EZConfig: Add remapKeysP #794

Closed slotThe closed 1 year ago

slotThe commented 1 year ago

This was discussed on IRC, and I thought it'd be a neat addition.

The obvious caveat (also mentioned in the documentation) is that this does not work for submap keys, as these are not transparently bound. One could provide something like

additionalRemapKeysP :: [(String, String)] -> [(String, X ())] -> XConfig l -> XConfig l

which could sort of slurp some keys from the second argument, but this seems a bit patchworky to me, so I've left it at remapKeysP for now.

Checklist