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.

  • just_another_person@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    4 hours ago

    Ah, then you probably want KDE’s kiosk mode for a second screen with a second user that you can set the defined activity for. Should be quick and easy that way versus trying to split a session and window input.