2 This code is based upon some lines(actually two lines :-)
3 in E-Leds by Mathias Meisfjordskar<mathiasm@ifi.uio.no>
8 #include <X11/XKBlib.h>
9 #include <libdockapp/dockapp.h>
11 #include "include/kleds.h"
14 Returns the turned on leds:
24 if (XkbGetIndicatorState(DADisplay
, XkbUseCoreKbd
, &states
) != Success
)
26 perror("Error while reading Indicator status\n");
29 return (states
& 0x7);