Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combos involving "parenleft" and "parenright" don't work as expected. #863

Open
lululock71 opened this issue Mar 15, 2024 · 1 comment
Open

Comments

@lululock71
Copy link

lululock71 commented Mar 15, 2024

Hi,

So I've been experimenting with my AZERTY keyboard, trying to "invert" the functions of the number row, while allowing to use "R_Shift" to type uppercase accented characters (É, È, Ç, À, etc.).

But since "parenleft" and "parenright" also need to be reversed, I was expecting it to work the same as for the other keys of the number row. But apparently, it doesn't.

I've set "parenleft" as the input. That's what the "5" key outputs when it is lowercase. So I've set the output as "Shift_L + parenleft" because I want that key to output a "5" when I don't press "Shift_L". But when I try to inject the preset, it will still output "parenleft". I've checked for typos and I don't think it is wrong. All the other keys work as expected with a similar output command "Shift_L + whatever-the-key".

The same issue happens with "parenright", which is bellow the degree symbol. I've tried to remap it as well as part of my troubleshooting and it happens it doesn't work either.

Share some logs please:

  1. input-remapper-control --version

input-remapper 2.0.1 f5151aab27ae0e7d8b1f0c80ce92a718e3a86e71 https://github.com/sezanzeb/input-remapper python-evdev 1.6.1

  1. which linux distro (ubuntu 20.04, manjaro, etc.)

Arch Linux, last updated 15/03/2024 (but had the issue for a few weeks already)
Kernel : 6.7.8-arch1-1

  1. echo $XDG_SESSION_TYPE

x11
Haven't tried Wayland.

  1. which desktop environment (gnome, plasma, xfce4, etc.)

Xfce 4.18, Xfwm 4

  1. sudo ls -l /proc/1/exe

lrwxrwxrwx 1 root root 0 15 mars 14:26 /proc/1/exe -> /usr/lib/systemd/systemd

  1. paste the affected preset .json file from ~/.config/input-remapper-2/presets
    {
        "input_combination": [
            {
                "type": 1,
                "code": 2,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + ampersand",
        "name": "NumRowLow1 (&)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 3,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + eacute",
        "name": "NumRowLow2 (\u00e9)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 4,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + quotedbl",
        "name": "NumRowLow3 (\")",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 5,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + apostrophe",
        "name": "NumRowLow4 (')",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 6,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + parenleft",
        "name": "NumRowLow5 (()",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 7,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + minus",
        "name": "NumRowLow6 (-)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 8,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + egrave",
        "name": "NumRowLow7 (\u00e8)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 9,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + underscore",
        "name": "NumRowLow8 (_)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 10,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + ccedilla",
        "name": "NumRowLow9 (\u00e7)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 11,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "Shift_L + agrave",
        "name": "NumRowLow0 (\u00e0)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 54,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 10,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "key(Caps_Lock).key(ccedilla).key(Caps_Lock)",
        "name": "MajCcedilla (Shift R + ccdilla)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 54,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 11,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "key(Caps_Lock).key(agrave).key(Caps_Lock)",
        "name": "MajAgrave (Shift R + agrave)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 54,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 8,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "key(Caps_Lock).key(egrave).key(Caps_Lock)",
        "name": "MajEgrave (Shift R + egrave)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 54,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 3,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "key(Caps_Lock).key(eacute).key(Caps_Lock)",
        "name": "MajEacute (Shift R + eacute)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 54,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 40,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "key(Caps_Lock).key(ugrave).key(Caps_Lock)",
        "name": "MajUgrave (Shift R + ugrave)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 2,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "ampersand",
        "name": "NumRowHigh1 (Shift L + ampersand)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 3,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "eacute",
        "name": "NumRowHigh2 (Shift L + eacute)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 4,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "quotedbl",
        "name": "NumRowHigh3 (Shift L + quotedbl)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 5,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "apostrophe",
        "name": "NumRowHigh4 (Shift L + apostrophe)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 6,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "parenleft",
        "name": "NumRowHigh5 (Shift L + parenleft)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 7,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "minus",
        "name": "NumRowHigh6 (Shift L + minus)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 8,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "egrave",
        "name": "NumRowHigh7 (Shift L + egrave)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 9,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "underscore",
        "name": "NumRowHigh8 (Shift L + underscore)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 10,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "ccedilla",
        "name": "NumRowHigh9 (Shift L + ccedilla)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 100,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 3,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "ISO_Level3_Shift + eacute",
        "name": "NumRowGr (ISO Level3 Shift + eacute)",
        "mapping_type": "key_macro"
    },
    {
        "input_combination": [
            {
                "type": 1,
                "code": 42,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            },
            {
                "type": 1,
                "code": 11,
                "origin_hash": "748e31550c24fc009038438dc4fce338"
            }
        ],
        "target_uinput": "keyboard",
        "output_symbol": "agrave",
        "name": "NumRowHigh0 (Shift L + agrave)",
        "mapping_type": "key_macro"
    }
]
  1. sudo pkill -f input-remapper-service && input-remapper-gtk -d, apply the preset and hit your key. Then share that log.

Provided command doesn't open input-remapper :


Authorization required, but no authorization protocol specified
NumRowLow5 (()
Authorization required, but no authorization protocol specified

(input-remapper-gtk:2777): Gtk-WARNING **: 14:45:36.182: cannot open display: :0.0```


14. `sudo evtest` while the previous command is running, to see how events are injected. Devices starting with `input-remapper ...` are of interest.

Can't open input-remapper as root.
@TheSpaceSheep
Copy link

TheSpaceSheep commented Mar 26, 2024

I have the exact same issue on Debian 12 using KDE Plasma with Wayland.
Same problem when I try to remap anything to ISO_Level3_Shift + parenleft (which corresponds to "[" on azerty keyboards). "(" is outputted instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants