2

I have a Chromebook that's missing a number of vital keys. I'd like to remap those to ones that are present. Unfortunately the Chromebook has a dearth of keys in general so I need to map a combination of keys to a single one. One example would be mapping Alt h to End

Xorg keyboard stuff seems to be in a state of transition right now with a lot of older methods being depreciated (keymaps, xmodmaps, etcs)

From what I've gleaned the correct way of changing your keyboard map system wide, is trough xbk. There are a number of examples of people mapping a single key say a caps lock to be a shift key just by modifying the /usr/share/X11/xkb/symbols/pc file. There are also some examples of how to create a fully customized key using setxkmap. But I haven't found any examples of how best to map a key combination to a single key. Any pointers would be appreciated.

1 Answer 1

0

I don't understand if you want that Alt+H map to End or to
But I know how to do it with AltGr instead..
Anyway it is not a good idea to remap Alt since it is often used in programs..
Try this in your symbol file:

key <AC06> { [ h , H , End ] }; // Map <AltGr>+<H> to <End>

or

key <AC06> { [ h , H , Right ] }; // Map <AltGr>+<H> to <→>

But maybe this is not what you want..
But I'm also interested about the mapping of modifiers..
I try to make Space acting as a modifier..

1
  • but this will map AltGr+hto (effectively) AltGr+end, not just end, right?
    – 12Me21
    Sep 13, 2022 at 18:08

You must log in to answer this question.

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