Skip to content

Instantly share code, notes, and snippets.

@buzztaiki
Last active November 20, 2025 14:15
Show Gist options
  • Select an option

  • Save buzztaiki/4e4bec0a929285b16efb3f2cb52056bf to your computer and use it in GitHub Desktop.

Select an option

Save buzztaiki/4e4bec0a929285b16efb3f2cb52056bf to your computer and use it in GitHub Desktop.
https://remap-keys.app/configure を linux で動かす

https://remap-keys.app/configure を linux で動かす

ぐぐって出てきた情報通りにやっても今いちうまく動かなかったのでめも。

結論としては /etc/udev/rules.d/70-hid.rules に以下の内容を書けば良い:

KERNEL=="hidraw*", ATTRS{idVendor}=="3265", ATTRS{idProduct}=="0011", MODE="0660", TAG+="uaccess"

書いたら

注意点は以下

  • TAG+="uaccess" を使うには /usr/lib/udev/rules.d/73-seat-late.rules の前に読み込まれる必要がある事。
    • そのために 70- になっている。
    • 参考: systemd/systemd#4288 (comment)
    • TAG+="uaccess" ではなくて、GROUP="input" 等にして、ユーザーをそのグループに所属するのでもよい。この場合は順番に影響されない。
  • hidraw* の subsystem は usb ではなく hidraw である事。
    • この例では subsystem を省略てしてるけど。
    • udevadm info 等すると分かる。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment