If you are still on X11 rather than Wayland, then xinput --map-to-display has the option of taking a device ID instead of a string. The main headache of that is that the ID numbers can change between boot, so you'd have to devise your own way of getting the right ID number.
Statistics: Posted by 6by9 — Fri Jul 11, 2025 10:15 am