This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # can change the device name here | |
| HID_NAME='Keychron Keychron K2 Pro' | |
| # loop over possible devices | |
| for f in /dev/hidraw* | |
| do | |
| DEVICE_NAME=$(basename ${f}) | |
| if grep "$HID_NAME" "/sys/class/hidraw/${DEVICE_NAME}/device/uevent"; | |
| then | |
| # device matches product name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| _ | |
| - - /, /, |\ 222222222222222 | |
| )/ )/ ) ' _ \\ 2:::::::::::::::22 | |
| )__)__) \\ /\\ < \, ,._-_ / \\ _-_, 2::::::222222:::::2 | |
| ~)__)__) || / /-|| || || || ||_. 2222222 2:::::2 | |
| ) ) ) || /\\ (( || || || || ~ || 2:::::2 | |
| /-_/-_/ \\ || \/\\ \\, \\/ ,-_- 2:::::2 :::::: | |
| / 2222::::2 :::::: | |
| (, 22222::::::22 :::::: | |
| .--.--.-----. 22::::::::222 |