start new:
tmux
start new with session name:
tmux new -s myname
/* | |
* | |
* obj-m := fan.o | |
* KDIR := /lib/modules/$(shell uname -r)/build | |
* PWD := $(shell pwd) | |
* | |
* all: | |
* $(MAKE) -C $(KDIR) M=$(PWD) modules | |
* | |
* clean: |
// compile with `gcc -I/usr/include getxkblayout.c -lX11 -lxkbfile` | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <X11/XKBlib.h> | |
#include <X11/extensions/XKBrules.h> | |
int main(int argc, char **argv) { | |
Display *dpy = XOpenDisplay(NULL); |