Developer's Guide to KKBSwitch
KKBSwitch can be manipulated programmatically via DCOP. It exports an interface named KBSwitchIntf. The interface offers the following methods.
This method returns the number of configured keyboard groups (layouts).
This method does the same thing as clicking on the KKBSwitch's tray icon, i.e. makes the next keyboard layout active. If in "toggle mode", toggles between the two recently used ones, just like clicking on the tray icon does.
This method makes the layout whose number is groupno active (like selecting a layout from the tray icon popup menu).
This method returns the list of the keyboard layout names, as configured in XKeyboard.
|Using KKBSwitch||Up||Credits and License|