xmodmap alters i3 shortcuts
I'm having an issue that seems to be somewhat similar to the one in question 676. It's different enough, however, that I'm not sure it's actually the same. After using xmodmap to set keycode 0x09 = Return
, $mod+Esc
opens a new terminal window but $mod+Enter
just sends a "return" code to the program in the active window (so, for instance, in a text editor I get newlines). (Note that my $mod
is Mod4
, so my problem is not due to the oddities of the caps lock key itself.)
The xmodmap
line in my i3 config:
exec xmodmap -e 'clear Lock' -e 'keycode 0x42 = Escape' -e 'keycode 0x09 = Return'
xmodmap -pm
:
xmodmap: up to 4 keys per modifier, (keycodes in parentheses):
shift Shift_L (0x32), Shift_R (0x3e)
lock
control Control_L (0x25), Control_R (0x69)
mod1 Alt_L (0x40), Alt_R (0x6c), 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)
xmodmap -pke | grep Return
:
keycode 9 = Return NoSymbol Return
keycode 36 = Return NoSymbol Return
I've tried mapping 36 (the Enter key) to "Return Return Return," but that didn't seem to change anything.
EDIT: this error is with i3 version 4.0.1.