Ha kiváncsi vagy, hogy milyen XLib atomjaid vannak:#include <stdio.h>
#include <X11/Xlib.h>
char cont;
int error(Display *dpy, XErrorEvent *e)
{
cont = 0;
return 0;
}
int main (int argc, char *argv[])
{
int i;
Display *dpy;
XSetErrorHandler(&error);
cont = 1;
dpy = XOpenDisplay(NULL);
i = 1;
while (cont)
{
printf("%d: \"%s\"\n", i, XGetAtomName(dpy, i));
++i;
}
XCloseDisplay(dpy);
return 0;
}
Fordítás:cc -O2 listatoms.c -lX11 -o listatoms
strip --strip-all ./listatoms Használat:./listatoms > atoms.txt |