]> git.scottworley.com Git - keystroke-timestamps/blobdiff - keystroke-timestamps.c
Use a glob as the default --device: *kbd*
[keystroke-timestamps] / keystroke-timestamps.c
index 976e37b1a1b1a86fc538d0202a6407e1d6122685..36d1cfcd1a24390e128c4627ffabf5c0f95d18ba 100644 (file)
@@ -13,7 +13,7 @@
 int main (int argc, char **argv)
 {
   int print_usec = 0;
-  char* device = strdup("/dev/input/by-path/platform-i8042-serio-0-event-kbd");
+  char* device = strdup("/dev/input/by-path/*kbd*");
   struct option long_options[] = {
     {"device", required_argument, 0,            'd' },
     {"usec",   no_argument,       &print_usec,  1   },