From ca9004e5fab51f1d0a8deb7240f4136ecf76ba8a Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Mon, 1 Sep 2025 23:07:14 -0700 Subject: Skip any normal letter keys I want to know specifically which keys I use the most that _aren't_ just letters. I have a keyboard layout that I like just fine, but I want to know which special keys I actually use the most. --- xkbcat.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xkbcat.c b/xkbcat.c index 762c394..b7be2aa 100644 --- a/xkbcat.c +++ b/xkbcat.c @@ -3,6 +3,9 @@ #include #include +#define XK_LATIN1 +#include + #include #include #include @@ -145,6 +148,11 @@ int main(int argc, char *argv[]) { continue; } } + + if ((s >= XK_A && s <= XK_Z) || (s >= XK_a && s <= XK_z)) { + continue; + } + char *str = XKeysymToString(s); if (NULL == str) continue; -- cgit v1.3-2-g0d8e