使用 libinput 将触摸屏和 wacom 平板电脑映射到 wayland 下的不同显示器

使用 libinput 将触摸屏和 wacom 平板电脑映射到 wayland 下的不同显示器

我最近切换到 wayland,并在 Ubuntu 20.04 上运行 sway。我正在尝试将我的触摸屏和 wacom 平板电脑映射到特定的显示器。我有 3 个显示器已连接且工作正常。我一直在阅读libinput文档但无法找到解决方案。 PC 识别这些设备,并且它们可以工作,但是它们被映射到所有可用区域。我尝试使用xinput map-to-output,但它显示一条警告消息,然后给出错误:

WARNING: running xinput against an Xwayland server. See the xinput man page for details.
Unable to find output 'eDP-1'. Output may not be connected.

任何帮助表示赞赏。

答案1

我在这里找到了答案: https://man.archlinux.org/man/sway-input.5

将其添加到配置中可以解决问题

input <input_device_identifier> map_to_output <output_device_identifier>

相关内容