You are not logged in.

#1 2025-01-03 11:09:05

kim1
Member
Registered: 2024-06-18
Posts: 4

How to define list of excluded keys for libinput DisableWhileTyping?

Hi,

in my libinput config,

/etc/X11/xorg.conf.d/30-touchpad.conf

, I currently have

Option "DisableWhileTyping" "1"

.

This option disables the trackpad for a short while while a key is pressed. The exception is modifier keys to allow for things like Ctrl + click.

As I have rebound my modifier keys onto other keys in software with xkb, Ctrl + click does not work for me as the physical key is not known to libinput as a modifier key.

In particular, my Ctrl key is mapped onto the physical backslash key:

key <BKSL> { [    Control_R ],
                 actions[Group1] = [ SetMods(mods=Control) ] };

Is there a way to provide a custom list of key codes that bypass the DisableWhileTyping option? If not, can I have libinput recognize that the key is a modifier key in some other way? Maybe there is a way to change the xkb config instead, to make it compatible?

Thanks, Kim

Last edited by kim1 (2025-01-03 11:12:31)

Offline

#2 2025-01-03 20:30:25

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: How to define list of excluded keys for libinput DisableWhileTyping?

You could try to alter the assignment below libinput, not above - does https://wiki.archlinux.org/title/Input_ … ities#keyd work as desired?

Offline

#3 2025-01-04 18:24:08

kim1
Member
Registered: 2024-06-18
Posts: 4

Re: How to define list of excluded keys for libinput DisableWhileTyping?

That's a good hint. Thanks!

Offline

#4 2025-01-04 20:30:36

seth
Member
Registered: 2012-09-03
Posts: 60,768

Re: How to define list of excluded keys for libinput DisableWhileTyping?

In case it pans out to be a solution and in general please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB