kernc

Results 397 comments of kernc

This is certainly a common use case, but distinguishing imported `my_lib.my_function` (that you want to show) from imported `re` (that you don't) is near impossible. Pdoc should honor [**`__all__`**](https://docs.python.org/3/tutorial/modules.html#importing-from-a-package) when...

I'm not sure applied function decorators are really of a huge interest to the API user. Decorators are supposed to be rather transparent in how they modify the underlying function...

The SUID wrappers are llk.cc and llkk.cc: https://github.com/kernc/logkeys/tree/master/src When built, they are sometimes put into /usr/sbin/ I think. Pull requests regarding per-user welcome. :smiley: One needs root to read /dev/input/\*...

Yeah, the timestamp is [printed when Enter key is pressed](https://github.com/kernc/logkeys/blob/7a9f19fb6b152d9f00a0b3fe29ab266ff1f88129/src/logkeys.cc#L575-L585).

Does `setleds` work, as [pointed out in this SO thread](https://stackoverflow.com/a/48178231/1090455)?

We already use `setleds` in case `xset` fails: https://github.com/kernc/logkeys/blob/2539ccb89e20a3fbdeaa186f62e54719602a7143/src/logkeys.cc#L52 Do you have it installed (part of _kbd_ package).

[Reading `/sys/class/leds/inputX::capslock/brightness`](https://www.reddit.com/r/swaywm/comments/fx1a3q/num_lockcaps_lock_hijacking/fms8psh/) is another option ...

``` bash $ command grep -E 'Handlers|EV=' /tmp/devices.txt | command grep -B1 'EV=1[02]001[3Ff]' | command grep -Eo 'event[0-9]+' event3 ``` I believe it should. Does [returning `string` like that](https://github.com/kernc/logkeys/blob/master/src/logkeys.cc#L69) work...

What happens if you `killall -STOP logkeys` and `killall -CONT logkeys` afterwards? Does it get the events it missed?