[modules/layout] add a new - generic - layout module

Add a new module "layout" that will eventually evolve into the only
keyboard layout module.

Right now, it uses an external binary (get-kbd-layout) to determine the
layout of a keyboard device (because I did not manage to call libX11
with ctypes correctly).

see #788
see #790
This commit is contained in:
tobi-wan-kenobi 2021-05-16 21:09:58 +02:00
parent 902288f30d
commit dfd23a44de
5 changed files with 93 additions and 0 deletions

13
util/Makefile Normal file
View file

@ -0,0 +1,13 @@
CC=gcc
CFLAGS=
%.o: %.c
$(CC) -c -o $@ $< $(CFLAGS)
../bin/get-kbd-layout: layout.o
$(CC) -o $@ layout.o -lX11
.PHONY: clean
clean:
rm -f *.o