I use three different layouts and looking code to change layout programmaticaly from .bashrc function.
|
|
||||
|
For example, to get the US layout (that is, by the way, excellent for programming; see this question). In X, try In the Linux console, add This may require some fiddling; possibly, you'd like to write aliases and/or functions in your |
||||
|
|
|
It is indeed strange that X11 doesn't provide a standard tool to switch to a given layout (when you define several with setxkbmap). But I just found a tool that can do it: https://github.com/nonpop/xkblayout-state With it you can get/set the current layout, either by name or by position in your layout stack. |
|||
|
|

setxkbmap? – Marco Oct 30 '12 at 19:21.bashrcis definitely not the right file for this. It's run when you start a shell, not when you log in. See Alternative to .bashrc – Gilles Oct 31 '12 at 21:37