Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Cosmic DE: Map touch device to monitor

Gotta touch…

refuge.coop
GPC.solutions SAS
EMA Tech.

1. Get the touch device name(s)

libinput list-devices

2. Get the monitor output name(s)

wrl-randr

3. Configure cosmic-comp

$EDITOR ~/.config/cosmic/com.system76.CosmicComp/v1/input_devices

Sample 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")
        ),
}