$ sudo apt-get scim scim-m17n scim-gtk2-immodule ttf-kannada-fonts
$ scim-setup &
and assign ctrl+alt+space
as the trigger for switching keyboard layouts.
Create 75scim file under /etc/X11/Xsession.d/
with following lines
(if you have 90im-switch, better to remove it for this setup)