Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone know if its possible to have a different set of keybinds for different layouts.

For instance, in Tall mode, i would like h and l to switch between the master and stack, with k and l moving up and down the stack.

Then in Mirror Tall mode, i would like the operations switched, k,l switching between master and stack with h and l moving left and right through the stack.

Obivously im trying to emulate vim-like movement.

Thank you!

share|improve this question
I don't think so, you could hack at XMonad core to try and get something happening but I don't think you can do that by default. I could be wrong though which is why this is not an answer. – Robert Massaioli Apr 15 '13 at 7:16

You could probably use (or maybe something better) to detect the layout and bind key to function which will decide based on layout in a way like this:

  ( ( modMask, xK_k ), act )
  -- ...
  act = do
    layout <- detectLayout -- not sure how to do this now
    if layout == "Tall" then act1 else act2

(Seems that I come way too late, maybe someone will use this eventually.)

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .