How to lock a HID device to a specific window or screen?

On kde/wayland

i want to lock a keyboard and controller so they are only seen by one window, as in inputs only go that window and it cant move elsewhere.

Also using nixos.

  • Yardy Sardley@lemmy.ca
    link
    fedilink
    arrow-up
    1
    ·
    15 hours ago

    There’s a kiosk-style compositor called cage that would work, at least for your main concern.

    Then maybe use waypipe over ssh to do your work in the background. Alternatively, you can research setting up a multi-seat display manager, but I think you would need at least 2 GPUs to implement that properly.