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.04 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)?
defined
section, like this:<I171> = 171; // #define KEY_NEXTSONG 163
. How do I edit this line? – Flimm Jul 22 '21 at 12:15//
starts a standard comment, so you can just ignore it.The
– mgmalheiros Jul 23 '21 at 13:33#define
part looks to be from theinput.h
header file from the Linux kernel, so it is just documenting the key code mapping between Linux terminal and X11...