I am the (sad) owner of an otherwise-nice ASUS laptop where ASUS decided that it would be a great idea to replace the End key by Power, so you could accidentally poweroff your laptop when mispressing PgDn (see this question for the photo)...
I initially wanted to use the numeric keypad Home/7 and End/1, and it works (when Num lock is off), but when I press Shift + Home, to select the whole line, I get
7 ... unless Num lock is on, but then I get
7 instead of Home.
So I used remapped the keys with
xmodmap to get Home and End behaviour with all modifiers:
keycode 79 = Home Home Home Home U2196 U21D6 keycode 87 = End End End End U2199 U21D9
Unfortunately, it's not working anymore since I upgraded to Ubuntu 18 with Wayland. Worse: it's actually working in Firefox but not in Eclipse...
I read many posts about different remapping techniques that were either outdated or too complex to put in place. Now that
xmodmap is kind of deprecated, is there an equivalent in Wayland to remap keys with modifiers (I would be happy with (Shift+)Fn+key too)?