On Monday 10 Nov 2008 10:15:16 pm Tony Anderson wrote: > I have my XO set up to switch between us and np keyboard layouts. What I > need is a way in Python to find out which of these layouts is currently > selected. Try get_keyboard_mapping(). Clients get a MappingNotify event when the keyboard layout is changed in the X server. HTH .. Subbu