Proposal: configure devices with their name and their connector
Input devices
Currently input devices are configured with their wlr_input_device.name
- but if you have two identical devices, you can't configure them independently:
[backend/libinput/events.c:73] Added Metadot - Das Keyboard Das Keyboard [9456:320]
[backend/libinput/events.c:73] Added Metadot - Das Keyboard Das Keyboard [9456:320]
Unfortunately, inputs devices don't seem to have a serial number - only a friendly name, manufacturer and model.
Proposal: being able to configure them by their connector (retrieved from udev). We could add a char *connector
field to wlr_input_device
for that.
-
Find a way to get the connector name of an input device and expose it -
Allow rootston config to use this to configure input devices
Ouputs
Outputs are always identified by their connector for now: VGA-1
, HDMI-1-A
... However, if you have for instance two DisplayPort connectors, it can make more sense to configure outputs by their name (just like input devices right now). Also outputs have a serial number which can be used to uniquely identify them (given a valid EDID).
Proposal: being able to configure them by their name (manufacturer, model and serial). The wlr_output
currently has a name
field used for the connector name - we could rename it to connector
and add a serial
field (make
and model
are already here).
-
Add a serial
field -
Find a better name for thename
field -
Allow rootston config to use make
,model
andserial
to configure outputs