I'm trying to remap my Insert key to End and shift+Insert to Home on Ubuntu 16.10. Inspired by Map Super+[Left|Right] to Home/End and some other resources I made the following mysymbols file:
partial modifier_keys
xkb_symbols "insert_end_home" {
key <INS> {[ End, Home ]};
};
It works for the End, but shift+Insert does not produce the Home function. How can I fix this?
EDIT
After modifying with xmodmap as suggested by @dirkt I still get only Home or only End. Here is the output of xev when I press Insert and then when I press shift+Insert. There is indeed a FocusOut event, but what does it mean?
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56790713, (-342,308), root:(439,360),
state 0x0, keycode 118 (keysym 0xff50, Home), same_screen YES,
XKeysymToKeycode returns keycode: 110
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56790753, (-342,308), root:(439,360),
state 0x0, keycode 118 (keysym 0xff50, Home), same_screen YES,
XKeysymToKeycode returns keycode: 110
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56796591, (-342,308), root:(439,360),
state 0x0, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyPress event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56796755, (-342,308), root:(439,360),
state 0x1, keycode 118 (keysym 0xff57, End), same_screen YES,
XKeysymToKeycode returns keycode: 115
XLookupString gives 0 bytes:
XmbLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56796811, (-342,308), root:(439,360),
state 0x1, keycode 118 (keysym 0xff57, End), same_screen YES,
XKeysymToKeycode returns keycode: 115
XLookupString gives 0 bytes:
XFilterEvent returns: False
KeyRelease event, serial 37, synthetic NO, window 0x3800001,
root 0xed, subw 0x0, time 56797003, (-342,308), root:(439,360),
state 0x1, keycode 50 (keysym 0xffe1, Shift_L), same_screen YES,
XLookupString gives 0 bytes:
XFilterEvent returns: False
FocusOut event, serial 37, synthetic NO, window 0x3800001,
mode NotifyNormal, detail NotifyNonlinear
PropertyNotify event, serial 37, synthetic NO, window 0x3800001,
atom 0x168 (_NET_WM_STATE), time 56802723, state PropertyNewValue
Also, here's the output of xmodmap -pm:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock Caps_Lock (0x42)
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Meta_L (0xcd)
mod2 Num_Lock (0x4d)
mod3
mod4 Super_L (0x85), Super_R (0x86), Super_L (0xce), Hyper_L (0xcf)
mod5 ISO_Level3_Shift (0x5c), Mode_switch (0xcb)