Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

How can I get xmonad to match the left alt key and not the right alt key? Ubuntu binds these both to mod1 in xmodmap.

share|improve this question

2 Answers 2

Not sure about alt, but the xmonad config archive has an example that uses Super instead of alt:

import XMonad

main = xmonad defaultConfig
        { modMask = mod4Mask -- Use Super instead of Alt
        , terminal = "urxvt"
        -- more changes
        }

You'll need to compile the new config file, so you'll need haskell if you don't have it already.

share|improve this answer
    
i played with doing this and then swapping the l-alt and win keys, did'nt work out well. I am currently using the win key and its a stretch for my fingers to reach. –  Arthur Ulfeldt Nov 10 '09 at 19:53
    
Your win key is not on the left? –  DaveParillo Nov 10 '09 at 21:51
    
it to the left of the left alt key. just too far away for my fingers to reach comfortabley –  Arthur Ulfeldt Nov 11 '09 at 1:46

You can look which keys are the mod keys with "xmodmap -pm". xmodmap also allows to change the mod key configuration. Just enter the apropiate keycodes into ~/.Xmodmap or ~/.xmodmaprc

To find out which keycode the right alt key emits start "xev" like this:

xev | grep -A2 --line-buffered '^KeyRelease' | sed -n '/keycode /s/^.*keycode \([0-9]*\)
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.