From: Scott Worley Date: Thu, 26 Dec 2013 09:03:53 +0000 (-0800) Subject: Use a glob as the default --device: *kbd* X-Git-Tag: v1.0.0~7 X-Git-Url: http://git.scottworley.com/keystroke-timestamps/commitdiff_plain/aa11b409c9d3c3483b63830a0cf92660ca619009?ds=sidebyside;hp=-c Use a glob as the default --device: *kbd* --- aa11b409c9d3c3483b63830a0cf92660ca619009 diff --git a/keystroke-timestamps.c b/keystroke-timestamps.c index 976e37b..36d1cfc 100644 --- a/keystroke-timestamps.c +++ b/keystroke-timestamps.c @@ -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 },