Zeus Panchenko <[email protected]> writes:

> René Neumann <[email protected]> wrote:
>> 
>> Just to avoid confusion: What exactly do you mean by 'charset'? I
>> figured you ment 'keyboard layout', and this is what I answered.
>> 
>
> definitely keyboard layout
> sorry for mistake

If there was some sort of "window switching hook" that could be used to
execute a command and which would be called by i3 when focus changes,
users could set up something to switch keyboard layouts depending on
which window has the focus.  I'm thinking of something similar to the
'for_window' option along the lines of:


focused_window [title=".*"] exec xmodmap ~/.Xmodmap-std
focused_window [title="ru"] exec xmodmap ~/.Xmodmap-ru
focused_window [title="emacs"] exec xmodmap ~/.Xmodmap-programming


However, it might be difficult to sufficiently differentiate the windows
with only the criteria that are currently available.


It is easily possible to have different locale in different windows. You
can always set environment variables like 'LANG' and 'LC_MESSAGES'
before starting an application.  That probably goes for every
application, the only requirement being that the given locale is (and
translations for the app are) available on the system.


-- 
"Object-oriented programming languages aren't completely convinced that
you should be allowed to do anything with functions."
http://www.joelonsoftware.com/items/2006/08/01.html

Reply via email to