Get current language input layout
SR_team
me at sr.team
Sun Sep 19 12:30:28 BST 2021
Hi, I can simply get current language input layout on X11 from XKB. It's work
on all WM/DE, and it works on Wayland session via XWayland. But I want to get
language input layout on Wayland natively, without XWayland. My target DE is
KDE/Plasma. Can I get this information from KWin? May be in KWin exists
universal interface for X11/Wayland sessions to get current language layout?
I'm looked documentation for KWindowSystem (https://api.kde.org/frameworks/
kwindowsystem/html/classKWindowSystem.html) and KWaylandServer (https://
api.kde.org/frameworks/kwayland/html/namespaceKWayland_1_1Server.html). In
KWaylandServer I found KWaylandServer::InputMethodContextV1Interface, but I
don't know how to get access to this interface.
Also, I tryied detect current platform and active window from KWindowSystem in
my console app, but this always return is 0. Maybe it works only for window
apps, but I want to write a daemon to switch led color on my keyboard, when
language input layout is changed.
Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kwin/attachments/20210919/74308b19/attachment.sig>
More information about the kwin
mailing list