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: |
| #include <iostream> | |
| #include <ctime> | |
| #include <cstdlib> | |
| #include <string> | |
| #include <vector> | |
| using namespace std; | |
| class Boat | |
| { |
| // 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); |
| #include <X11/Xlib.h> | |
| #include <X11/Xutil.h> | |
| int main(int argc, char* argv[]) | |
| { | |
| Display* display = XOpenDisplay(NULL); | |
| XVisualInfo vinfo; | |
| XMatchVisualInfo(display, DefaultScreen(display), 32, TrueColor, &vinfo); |