mirror of
https://github.com/Ahwxorg/nixos-config.git
synced 2025-12-04 15:00:13 +01:00
8 lines
207 B
Bash
Executable file
8 lines
207 B
Bash
Executable file
#!/usr/bin/env bash
|
|
|
|
FILES=/dev/hidraw*
|
|
for f in $FILES; do
|
|
FILE=${f##*/}
|
|
DEVICE="$(cat /sys/class/hidraw/${FILE}/device/uevent | grep HID_NAME | cut -d '=' -f2)"
|
|
printf "%s \t %s\n" $FILE "$DEVICE"
|
|
done
|