Paste number 18970: keymappings

Index of paste annotations: 1

Paste number 18970: keymappings
Pasted by: myavuzselim
2 years, 8 months ago
None
Paste contents:
Raw Source | XML | Display As
Suppose that:

'[' = <alt-gr> <X>
'ù' = <Y>

'%' = <shift> <Y>
'^' = <X>

( <X> and <Y> are scancodes )

I want to swap '[' and 'ù', but '%' and '^' should not change. Thus:

'ù' = <alt-gr> <X>
'[' = <Y>

'%' = <shift> <Y>
'^' = <X>


If I use the next xmodmap script, '[' gets <Y>, but '%' doesn't work anymore:

keycode <Y> = bracketleft

Annotations for this paste:

Annotation number 1: solution
Pasted by: myavuzselim
2 years, 8 months ago
Paste contents:
Raw Source | Display As
The next xmodmap file solves the problem, where <X>=34 and <Y>=48.


keycode 34 = asciicircum dead_diaeresis bracketleft bracketleft bracketleft bracketleft
keycode 48 = bracketleft percent dead_acute dead_acute dead_acute dead_acute

Colorize as:
Show Line Numbers
Index of paste annotations: 1

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.