Hi Lists, hi Guiseppe, Not really a documentation, but I got pointed to fcitx on the chakra mailing lists today, which has a xlib/xkb reference implementation for reading and setting the required keyboard configuration without external commands (though, still parsing evdev.xml/evdev.extras.xml). With a bit of effort it can be either turned in a library or just transformed to fit your needs.
https://github.com/fcitx/fcitx/blob/master/src/module/xkb/xkb.c Kind regards, Georg On Sun, Sep 2, 2012 at 10:50 AM, Giuseppe Penone <gius...@gmail.com> wrote: > Hi Georg, > I've been also searching same as you since I wrote a simple applet for the > lxde panel > to handle keyboard layouts (www.giuspen.com/customs). > In the end I generated my own glib key-value files for layouts and variants, > models and toggle options > using python scripts taking information from the command "man -P cat > xkeyboard-config". > And I ended up using system calls to setxkbmap. > I also would be interested in direct calls to xkb lib but didn't find. > Cheers, > Giuseppe. > > > > On Sun, Sep 2, 2012 at 4:52 AM, Georg Grabler <ggrab...@gmail.com> wrote: >> >> Hello List :). >> >> I've been trying and trying again in the xkb direction to implement >> anything proper. I always ended up parsing the XML files myself, >> setting layouts by external console commands since xkb seems not to >> provide any .. at least working dbus interface without external tools >> (and i know your stance about that part - I'm fine with that). >> >> I tried to find a documentation (something like doxygen) for xkb >> public interfaces. I had no luck, there was something like libxkbui, >> but the documentation link does not work on freedesktop. Looking >> closer, I think it wouldn't match my needs to read and set all >> available keyboard layout and model anyway, but still. >> >> Is there any public interface and documentation about it? Maybe I'm just >> blind. >> >> Kind regards, >> Georg >> _______________________________________________ >> xorg@lists.x.org: X.Org support >> Archives: http://lists.freedesktop.org/archives/xorg >> Info: http://lists.x.org/mailman/listinfo/xorg >> Your subscription address: gius...@gmail.com > > _______________________________________________ xorg@lists.x.org: X.Org support Archives: http://lists.freedesktop.org/archives/xorg Info: http://lists.x.org/mailman/listinfo/xorg Your subscription address: arch...@mail-archive.com