How to map Ctrl + ',' to greater key( '>') or Ctrl + '.' to less key( '<' ) using xmodmap?

Posted by Maxrunner on Super User See other posts from Super User or by Maxrunner
Published on 2012-06-29T14:57:06Z Indexed on 2012/06/29 15:18 UTC
Read the original article Hit count: 170

Filed under:
|

So im trying to creating a combination of keys to generate the ISO key for Portuguese layout, the key in question is the <>, pressing it normally will generate the '<' character, pressing + shift will generate the ' > ' character. So i'm trying to create a combination while using xmodmap, and i want this to work for all programs.I've been searching on Google and came up with this example for Control + P = Up: Control + p = Up arrow example

The example for that behaviour is:

xmodmap -e "keycode 33 = p P Up"

keycode 33 matches the p key, so where does control comes up in that command?

regards,

© Super User or respective owner

Related posts about linux

Related posts about key-binding