Hi, Thanks. That may do it. Sugar is set up so the XO key with % and x (divide/multiply I suppose) is used to switch the keyboard layout.
Oops. No joy. The output of setxkbmap doesn't change when I switch layouts. Tony Ties Stuij wrote: > On Mon, Nov 10, 2008 at 9:07 PM, Tony Anderson <[EMAIL PROTECTED]> wrote: >> I am writing some python code which needs to interrogate the system >> to determine which keyboard layout is currently selected. The goal is to >> show an image of the keyboard for Nepali students with a US keyboard. I >> checked /home/olpc/.i18n but this does not change with the % x key. >> Anyone know how that can be determined? > > Hmm, I must confess I don't know what the % x key is. > If no, or before, a more elegant solution surfaces, you can always > grep through the 'setxkbmap -print' output, as Google told me. > > setxkbmap -print | grep xkb_symbols | sed 's|.*+\([^"]\+\)(.*|\1|' > > will print 'us' on my XO. > If you've got it set to 'us' of course. > > /Ties > >> Tony >> >> _______________________________________________ >> Devel mailing list >> Devel@lists.laptop.org >> http://lists.laptop.org/listinfo/devel >> > > . > _______________________________________________ Devel mailing list Devel@lists.laptop.org http://lists.laptop.org/listinfo/devel