Tuesday, May 28, 2019

Re: The right way to view the current input layout in X

On 28.05.2019. 14:45, Максим wrote:

> I saw this option
> Not exactly what I want:
>
> "~ $ setxkbmap -query
> rules: base
> model: pc105
> layout: us,ru
> options: grp:alt_space_toggle"
>
> I would like to know whether it is "en" or "ru" right now
>
> --
> Best Regards
> Maksim Rodin

Hi Maksim,

I use the following command to enable switching with Alt-Shift between English
US, Serbian Latin and Serbian Cyrillic layouts:

setxkbmap -option grp:switch,grp:alt_shift_toggle,grp_led:scroll us,rs,rs ,latin,


When keyboard layout is the first one specified (English US), Scroll Lock LED on
keyboard is turned on, otherwise it is off. That's allow me to switch layouts
fast, without looking at the screen.

Hope this helps.

Zeljko

No comments:

Post a Comment