Override inet using xkb under Linux

2019-07-22 13:17发布

问题:

I'm on Arch Linux (everything's up to date).

I know how to define a new keyboard layout based on those under /usr/share/X11/xkb/symbols: I successfully created (and used) one from scratch but there's one little thing I still can't do... overriding keys from /usr/share/X11/xkb/symbols/inet. In particular, I'd like to disable I232 and I233 (brightness keys) without modifying /usr/share/X11/xkb/symbols/inet itself. Are those keys "protected" in a way they can't be overridden in a keyboard layout? I CAN disable those keys using xmodmap, but I'd like to disable them in my keyboard layout (under /usr/share/X11/xkb/symbols).

Any idea?