1. Get the touch device name(s)¶
libinput list-devices2. Get the monitor output name(s)¶
wrl-randr3. Configure cosmic-comp¶
$EDITOR ~/.config/cosmic/com.system76.CosmicComp/v1/input_devicesSample config¶
{
"[Touch Device Name]": (
state: Enabled,
map_to_output: Some("Monitor-output-name")
),
}Example
Here’s a working configuration for my ThinkPad P51 with an embedded Wacom touchscreen/pen and an external ThinkVision T24t-20 touchscreen-enabled monitor connected to an nVidia eGPU:
{
"Wacom Pen and multitouch sensor Finger": (
state: Enabled,
map_to_output: Some("eDP-1")
),
"Wacom Pen and multitouch sensor Pen": (
state: Enabled,
map_to_output: Some("eDP-1")
),
"Melfas LGDisplay Incell Touch": (
state: Enabled,
map_to_output: Some("Unknown-1")
),
}