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

Allow disabling send events by type and identifier #8462

Open
diegoviola opened this issue Nov 17, 2024 · 1 comment
Open

Allow disabling send events by type and identifier #8462

diegoviola opened this issue Nov 17, 2024 · 1 comment
Labels
enhancement New feature or incremental improvement

Comments

@diegoviola
Copy link

diegoviola commented Nov 17, 2024

  • Description:

I have a keyboard that reports mouse functionality in swaymsg -t get_inputs:

Input device: Logitech USB Keyboard
  Type: Mouse
  Identifier: 1133:49995:Logitech_USB_Keyboard
  Product ID: 49995
  Vendor ID: 1133
  Libinput Send Events: enabled

Input device: Logitech USB Keyboard
  Type: Keyboard
  Identifier: 1133:49995:Logitech_USB_Keyboard
  Product ID: 49995
  Vendor ID: 1133
  Active Keyboard Layout: English (US)
  Libinput Send Events: enabled

I've been looking to disable "Libinput Send Events" for Identifier: 1133:49995:Logitech_USB_Keyboard (Type: Mouse) and I couldn't find a way to do this.

The sway-input(5) man page says it is possible to use input <identifier> and apparently it is also possible to say input type:mouse but I couldn't find a way to specify both type and identifier.

I cannot use type:mouse alone because I have a real mouse plugged on this computer:

Input device: Logitech USB Optical Mouse
  Type: Mouse
  Identifier: 1133:49271:Logitech_USB_Optical_Mouse
  Product ID: 49271
  Vendor ID: 1133
  Libinput Send Events: enabled

and I want to be specific about which devices to disable events for, in this case the keyboard that reports itself as a mouse.

$ swaymsg -t get_version
sway version 1.10

Thanks.

@diegoviola diegoviola added the enhancement New feature or incremental improvement label Nov 17, 2024
@diegoviola
Copy link
Author

diegoviola commented Nov 17, 2024

Looks like it's possible on river:

$ riverctl list-inputs
keyboard-1133-49995-Logitech_USB_Keyboard
	configured: false

pointer-1133-49995-Logitech_USB_Keyboard
	configured: false

$ riverctl input pointer-1133-49995-Logitech_USB_Keyboard events disabled

$ riverctl list-input-configs
pointer-1133-49995-Logitech_USB_Keyboard
	events: disabled

@diegoviola diegoviola changed the title Allow disabling of devices by type and identifier Allow disabling send events by type and identifier Nov 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or incremental improvement
Development

No branches or pull requests

1 participant