Key remapping using xmodmap does not work for some gtk applications

5

2

I tried to remap some keys using xmodmap. For example,

xmodmap -e "keycode 118 = Next"

maps Insert key of my laptop (XPS 13 9360) to PgDn. It works for some applications such as firefox and visual studio code, but does not work for some other applications including gnome-terminal, xfce4-terminal, epiphany, and gedit. I'm running gnome 3.24 / Wayland / Archlinux. I have no idea why some applications don't work properly with xmodmap. Any suggestion?


Edit: Ok, I gave up xmodmap. Instead I decided to touch xkb. Editing some entries of two files pc and altwin under /usr/share/X11/xkb/symbols/ seems to work well.

guest

Posted 2017-08-03T08:40:45.763

Reputation: 51

Thanks, I've been looking all over for a solution to this and your edit finally helped me figure out how to solve this for myself. :) – Emil Kantis – 2018-11-07T08:06:11.680

No answers