https://bugs.documentfoundation.org/show_bug.cgi?id=108151

--- Comment #21 from Eyal Rozenberg <[email protected]> ---
(In reply to Buovjaga from comment #14 on bug 113298)
> A verbose layout query would be:
> 
> setxkbmap -query -verbose 10

On my system, with XOrg, this gives me the set of cycle-able layouts, but not
the current one, e.g.

layout:     us,il
variant:    ,

regardless of whether I'm typing Hebrew or English.

But here's a small and poorly-designed repository which tells you what the
current layout is:

https://github.com/nonpop/xkblayout-state

basically, it uses X11/XKBlib.h

and makes a few calls it. See this file:

https://github.com/nonpop/xkblayout-state/blob/master/XKeyboard.cpp

if xkb is also available on Wayland then this might work too; otherwise - I
would be quite happy with an initial implementation that only works on X.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to