summaryrefslogtreecommitdiffstatshomepage
Commit message (Collapse)AuthorAgeFilesLines
* Tidy main loop formattingGravatar Antti Korpi2020-03-221-6/+5
|
* Query for specific XInput2 versionGravatar Antti Korpi2020-03-221-4/+14
| | | | | | | | | | | | This is necessary to guarantee the same API in case future versions of XInput decide to break backward compatibility in their defaults. Quoting `man 3 xiqueryversion`: > Clients are required to use XIQueryVersion instead of > XGetExtensionVersion if they use XI2 calls. The server may treat a > client differently depending on the supported version announced by the > client.
* Refactor: Avoid underscores in non-const var namesGravatar Antti Korpi2020-03-221-3/+3
|
* Readme: Correct example output whitespaceGravatar Antti Korpi2020-03-221-6/+6
|
* Readme: Add badge to show off code sizeGravatar Antti Korpi2020-03-221-1/+1
|
* Readme: Add ideas for logging other X11 eventsGravatar Antti Korpi2020-02-121-4/+15
| | | | Ref issue #2.
* Merge branch 'travis-not-again'Gravatar Antti Korpi2020-01-131-0/+2
|\
| * Travis: Just use clangGravatar Antti Korpi2020-01-131-1/+0
| | | | | | | | | | | | | | GCC is failing with "undefined reference" https://travis-ci.org/anko/xkbcat/jobs/636386190 for reasons I cannot comprehend or reproduce anywhere else, but clang is passing like it's supposed to, so I guess that's our life now.
| * Debugging Travis again: Try both clang and gccGravatar Antti Korpi2020-01-131-0/+3
|/ | | | | | I have no idea how the build is failing with the $(CC) change. Flags look the same. Only difference is it's defaulting to gcc. Let's see if this changes anything.
* Readme: Revert to normal Travis badgeGravatar Antti Korpi2020-01-131-1/+1
| | | | The fancy one was unreliable.
* Readme: Text improvements, build badge with dateGravatar Antti Korpi2020-01-131-19/+22
|
* Use $(CC) in makefile, over hardcoding compilerGravatar Antti Korpi2020-01-132-3/+1
| | | | | Who knows what C compiler users like to use. This should cause the right one to be chosen automatically.
* Readme: Add Travis badgeGravatar Antti Korpi2019-11-221-1/+1
|
* Travis: Add build specGravatar Antti Korpi2019-11-221-0/+10
|
* Cleanup: Minor formatting fix in history docGravatar Antti Korpi2019-11-221-1/+1
|
* Readme: minor typos and language improvementsGravatar Antti Korpi2018-01-281-3/+2
|
* Readme: Note libXi dependencyGravatar Antti Korpi2018-01-281-0/+3
|
* Make `make clean` actually clean somethingGravatar Antti Korpi2018-01-281-1/+1
| | | | Whoops.
* Use rm --force at cleanupGravatar Antti Korpi2017-06-261-1/+1
| | | | | Avoids errors when nothing is there to be cleaned up: that's a successful cleanup too.
* Remove .PHONY make targetGravatar Antti Korpi2017-06-261-3/+0
| | | | | I think this is a remnant from some time ago when output executable wasn't called "xkbcat", but it is now, so the .PHONY is unnecessary.
* Readme: clarify other recommendations' wordingGravatar Antti Korpi2016-05-161-3/+3
|
* Readme: Link to keysniffer (global logging)Gravatar Antti Korpi2016-05-161-11/+16
|
* Compile to C99 instead of GNU11Gravatar Antti Korpi2016-04-221-1/+1
| | | | Simpler, now that we don't need the time structs anymore.
* Use XInput2 raw master device instead of pollingGravatar Antti Korpi2016-04-223-50/+45
| | | | Neater implementation, better performance.
* Clearer wording on how related programs differGravatar Antti Korpi2016-03-051-3/+3
|
* Note that versions follow semverGravatar An Ko2016-02-161-2/+7
|
* Remove "-time": instead recommend an external toolGravatar An Ko2016-02-162-17/+12
| | | | Undoing my unnecessary feature creep.
* Remove silly and distracting GIFGravatar An Ko2016-02-151-5/+1
|
* Flush on writeGravatar Antti K2014-08-051-0/+3
| | | | Ensures that all output is received immediately if it's being piped.
* Unextract printKeyPressGravatar Antti K2014-08-021-19/+17
| | | | | | This is clearer to read, as the amount of state being passed into the utility function caused more distracting boilerplate than having a separate function was worth.
* Document keyState functionGravatar Antti K2014-08-021-0/+4
| | | | Yeah, that did look a bit arcane.
* Move keypress print func to before mainGravatar Antti K2014-08-021-14/+12
| | | | | Means we need no separate declaration, and it's a lot easier to infer that the function is pure.
* Also document timestamp flag in usage printGravatar Antti K2014-08-021-1/+1
|
* Document timestamp flagGravatar Antti K2014-08-011-1/+2
|
* Print epoch timestamps given `-time`Gravatar Antti K2014-08-011-12/+20
| | | | | | | It's seconds since epoch. People tend to type faster than that, but this is a standard format. Existing options work the same way.
* Image creditGravatar An2014-07-301-0/+2
|
* Document with readmeGravatar Antti K2014-07-301-0/+67
|
* Clarify what I've learnt of the historyGravatar Antti K2014-07-301-3/+10
| | | | | It's quite a mess, but these links might clear stuff up for someone who wants to know more.
* Convert `compile` script to makefileGravatar Antti K2014-07-302-1/+7
| | | | More standard this way.
* Clearer history expositionGravatar Antti K2014-07-302-16/+11
|
* Report exact unexpected argumentGravatar Antti K2014-07-301-1/+1
|
* `puts` when `printf`ing a string onlyGravatar Antti K2014-07-301-2/+1
| | | | | Easier to read. (Compilers would probably optimise the `printf` into a `puts` anyway.)
* Crank up optimisationGravatar Antti K2014-07-301-1/+1
| | | | | Since this thing runs many times a second, but is very small, optimise aggressively.
* Small clarificationsGravatar Antti K2014-07-301-6/+6
| | | | | | | Improved comments. Moved declaration of `printKeyPress` further down to decrease cognitive load.
* Remove extraneous bracketsGravatar Antti K2014-07-301-1/+1
|
* Consistency: Make default display a const char *Gravatar Antti K2014-07-302-7/+7
| | | | | | | Yep, `hostname` is a `const char *` too, even though it's potentially being assigned to. This is [unintuitive](http://stackoverflow.com/a/9834194/777586), but intentional.
* Minor spacing and arrangementGravatar Antti K2014-07-301-10/+7
|
* Prune includesGravatar Antti K2014-07-301-2/+0
| | | | | Since XKBlib pulls in all of our other X dependencies, there's no need to separately `#include` them.
* Simplify result printingGravatar Antti K2014-07-301-26/+14
| | | | | | | | | There's no need to copy strings around when all we want is to print it anyway. This is faster and easier to read. Also made the output format adapt to whether `printKeyUps` is set: There's no need to print `+` and `-` if all that we're printing is keydowns anyway.
* Conciser global-description commentGravatar Antti K2014-07-301-6/+1
|