Skip to content

Add per-keyboard device targeting UI #203

@malpern

Description

@malpern

Summary

Kanata already supports per-device rules via device-if in defcfg, and KeyPath preserves these when users write them manually in keypath.kbd. However, there's no UI for selecting which keyboard a rule applies to.

Karabiner-Elements has full UI support for this — users can target specific connected keyboards from the Devices tab. We should build equivalent UI support.

Current state

  • Kanata device-if works if users edit config manually
  • kanata-users.md documents that device filters are preserved
  • No device selection in the rules UI (custom rules only support global or app-specific)
  • VirtualHID exclusion is auto-generated but that's a safety mechanism, not user-facing

What's needed

  • Device detection and selection UI
  • Per-device rule targeting in the custom rules editor
  • Config generation to emit device-if blocks
  • Update karabiner-users.md to move per-device targeting from Karabiner's strengths to the comparison table once shipped

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions