Skip to content

Xmodmap mappings do not work with modifiers #4622

@deft01

Description

@deft01

System

OS: Debian10
Version: 0.7.0-dev (12fbd00)
Linux/BSD: X11, i3wm

Prelude

Hello guys, I have some trouble making my xmodmap configuration working with alacritty. This conf was working well with the Terminator terminal and after few tests I think it is probably an Alacritty problem.
When I combine my xmodmap shortcut with Ctrl it fail. I added the tests I have made in Terminator as witness tests.
I do my test with the command showkey -a. My keyboard layout is dvorak.
I verified that my alacritty.yml is well loaded and it has no shorcuts in it (an almost empty config file).

This is my xmodmap configuration :
The goal of this config file is to create shorcuts for arrows keys. It works by combining the Caps lock key with the c,t,n,h letters (ex : Caps + c, Caps + t, etc.).

        ! -*- coding: utf-8 -*-
	! presonnal layout keyboard script

	! arrows addidion
	keycode 66 = Mode_switch
	! keycode 64 = Mode_switch
	keysym h = h H Left
	keysym n = n N Right
	keysym c = c C Up
	keysym t = t T Down

	! end up addition
	keysym r = r R End
	keysym g = g G Home
	keysym l = l L Delete

Xmodmap arrows shortcuts working well in Terminator and Alacritty

Alacritty is working well for left, up, right and down xmodmap mappings.
As you can see a Terminator test (where everything is working well)

^[[A 	 27 0033 0x1b
 	 91 0133 0x5b
 	 65 0101 0x41
^[[B 	 27 0033 0x1b
 	 91 0133 0x5b
 	 66 0102 0x42
^[[D 	 27 0033 0x1b
 	 91 0133 0x5b
 	 68 0104 0x44
^[[C 	 27 0033 0x1b
 	 91 0133 0x5b
 	 67 0103 0x43

Alacritty output for the same keys working well too:
image

Problem : Ctrl key combined Xmodmap shorcuts are working well in Terminator but not in Alacritty

Now the problem is comming when i try to combine the left and right xmodmap shortcuts with the Ctrl key (to jump words instead for letters).
On terminator this is working well as you can see :

^[[1;5D 	 27 0033 0x1b
 	 91 0133 0x5b
 	 49 0061 0x31
 	 59 0073 0x3b
 	 53 0065 0x35
 	 68 0104 0x44
^[[1;5C 	 27 0033 0x1b
 	 91 0133 0x5b
 	 49 0061 0x31
 	 59 0073 0x3b
 	 53 0065 0x35
 	 67 0103 0x43

But in Alacritty it is not doing the job :
image

I'm stuck to this diagnostic and don't know how to investigate further. Maybe it is not an Alacritty related problem and maybe you can help me fix it.
Let me know if i have to give you more informations on my config or anything else like logs etc.

Thanks for the great job you'r doing with this project ! 😄

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions