inputplug is a very simple daemon which monitors XInput events and runs arbitrary scripts on hierarchy change events (such as a device being attached, removed, enabled or disabled). For example, inputplug can be used in shell scripts which monitor attachments of keyboards in order to run change keyboard mappings with commands like "setxkbmap -option ctrl:nocaps". WWW: https://github.com/andrewshadura/inputplug
13 lines
248 B
C
13 lines
248 B
C
--- inputplug.c.orig 2020-10-10 11:36:14 UTC
|
|
+++ inputplug.c
|
|
@@ -3,6 +3,9 @@
|
|
#include <assert.h>
|
|
#include <unistd.h>
|
|
#include <errno.h>
|
|
+#if __FreeBSD__
|
|
+#include <signal.h>
|
|
+#endif
|
|
#include <stdio.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|