Get current language input layout
SR_team <[email protected]> Sun, 19 Sep 2021 14:30:28 +0300
| Newsgroups | gmane.comp.kde.devel.kwin |
|---|---|
| Message-ID | <34082489.jD8KFvFgHt@srpc> |
--nextPart1788592.vmu3lDtp46 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8"; protected-headers="v1" From: SR_team <[email protected]> To: [email protected] Subject: Get current language input layout Date: Sun, 19 Sep 2021 14:30:28 +0300 Message-ID: <34082489.jD8KFvFgHt@srpc> Disposition-Notification-To: SR_team <[email protected]> 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. --nextPart1788592.vmu3lDtp46 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQEzBAABCAAdFiEEziVWzdnT9eW66KqoOlmBpdncB14FAmFHH1QACgkQOlmBpdnc B17p6AgAn+vZm1e1PKAf9UVGUnEgS7ql3MUMpVLkKmxZ0aafFM8BI8ozFjBTdqzd C6kiefGRMPqeth0yLugZNwzWg2s8HLmGNqFB50bS5pxhE7GaLNwq0y8awkWDELeb fDtjSXYfdu3Y0PIS+pYSv+F/maErTNNqyHXc2YtBmRvveOlSuZ7ZvPV7cRbxzMp4 0g1v6DVl/0vh/vN9Ti61ueBMzBiLV9Spj/Q4B6UOrFNLxE+0MtnAGC1DNQCa8Xwz Y4YcoxtN1pc3A4LHhcy2o7ic/GfCckd/aSwjwxjaDTPM2mZqXoKhNIAHxMObOiSo ri3jbte/OkfItguM6R4jy6i+Dnvd1w== =DCzC -----END PGP SIGNATURE----- --nextPart1788592.vmu3lDtp46--