Thanks, I had no idea this was possible. I’ve added it now for Ubuntu, here are the instructions.
sudo apt install ibus ibus-gtk ibus-qt4 ibus-m17n ibus-table
(Not sure if all these are strictly necessary!) Then:
System Settings ⇨ Text Entry ⇨ Input sources to use ⇨ ⊞ ⇨ Sanskrit IAST
In the same window, ensure that “Show current input source in the menu bar” is checked. (It should be on by default.)
Now you can change input language to Sanskrit via the icon in the top bar.
It works great in most applications. However, not in Sublime Text It’s a known limitation, and there are workarounds for CJK languages, which may well help.
It is certainly easier and faster to input this way if you’re typing just Pali/Sanskrit. But if it’s an occasional Pali word you need—which is the case for most of us, I assume—it’s not really usable, as you have to constantly switch languages. Anyway, it’s a great option to have in your toolkit.