#include #include int main() { Display *dpy = XOpenDisplay(NULL); //XkbBell(dpy,None,0,None); XBell(dpy, 0); XFlush(dpy); XCloseDisplay(dpy); return 0; }