I'm trying currently to use the xmodmap -e
function in order to remap my keyboard. I want to replace the twosuperior
key with greater
and less
depend of the asciitilde mode being activated.
I talk about asciitilde
or grave
mode in reference to this convention
I wonder how remap the "asciitilde mode layout" since I retrieve the same keycode for the "grave mode layout" and "asciitilde mode layout".
Here what I retrieve with the xev
process :
// retrieving less
keycode 94 (keysym 0x3c, less)"<"
// passing in asciitilde layout mode
keycode 50 (keysym 0xffe1, Shift_L),
// retrieving greater with asciitilde mode activated
keycode 94 (keysym 0x3e, greater)">"
------------------
// retrieving the code of twosuperior key
keycode 49 (keysym 0xb2, twosuperior) "²"
// passing in asciitilde layout mode activated
keycode 50 (keysym 0xffe1, Shift_L)
// retrieving the code of twosuperior key with asciitilde being activated
keycode 49 (keysym 0x0, NoSymbol)
As you can see I retrieve the same keycode for grave layout mode and asciitilde layout mode.
How can I make change on asciitilde layout key map ?
Thanks
In fact it is very simple.
The first argument refer to the "lowercase mode layout" and the second argument to the "uppercase mode layout", so the code syntax is the following :
So in our case, to put the
less
andgreater
symbols in the place oftwosuperior
symbol, we can just run the following code :Also, we can retrieve your keycodes numbers using the
[xev process][1]
.