From 5560126a74704d0a704df312f488da011c9bb79b Mon Sep 17 00:00:00 2001 From: Jeff Zohrab Date: Sat, 6 Feb 2016 13:57:06 -0500 Subject: [PATCH] Recognize other Logitech keyboard. Device name 'Eee PC WMI hotkeys' has EV=100013. Tweaked regex to handle. --- src/logkeys.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logkeys.cc b/src/logkeys.cc index 6fa12c0..c683fd3 100644 --- a/src/logkeys.cc +++ b/src/logkeys.cc @@ -332,7 +332,7 @@ void determine_input_device() // extract input number from /proc/bus/input/devices (I don't know how to do it better. If you have an idea, please let me know.) // The compiler automatically concatenates these adjacent strings to a single string. const char* cmd = EXE_GREP " -E 'Handlers|EV=' /proc/bus/input/devices | " - EXE_GREP " -B1 'EV=12001[3Ff]' | " + EXE_GREP " -B1 'EV=1[02]001[3Ff]' | " EXE_GREP " -Eo 'event[0-9]+' "; std::stringstream output(execute(cmd));