The i3 FAQ has migrated to https://github.com/i3/i3/discussions. All content here is read-only.
Ask Your Question
0

xmodmap alters i3 shortcuts

asked 2013-10-15 21:51:31 +0000

BatmanAoD gravatar image

updated 2013-10-17 17:05:14 +0000

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.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-10-17 17:05:45 +0000

BatmanAoD gravatar image

This bug was apparently fixed in i3 version 4.0.2.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-10-15 21:51:31 +0000

Seen: 223 times

Last updated: Oct 17 '13