summaryrefslogtreecommitdiffstats
path: root/src/udev/generate-keyboard-keys-list.sh
blob: cd6ef9c93b10d6303ba2b0e1a8e788bf7d7dab98 (plain)
1
2
3
4
#!/bin/sh -e

cpp -dM -include linux/input.h - </dev/null | \
    awk '/^#define[ \t]+KEY_[^ ]+[ \t]+[0-9K]/ { if ($2 != "KEY_MAX") { print $2 } }'