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.

  • SpiderUnderUrBed@lemmy.zipOP
    link
    fedilink
    arrow-up
    1
    ·
    4 hours ago

    My use case is an expo, we have a game people can play on display and I’m doing things on my main screen, ideally I can continue doing work while people try the game but at the bare minimum I would like the keyboard to he restricted to that app.

    • just_another_person@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      3 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.