You are not logged in.

#1 2020-05-02 15:15:45

WilliS
Member
Registered: 2020-02-25
Posts: 4

[SOLVED] Preserve keyboard layout per application

In LXQT there is a plugin for changing keyboard layout kbindicator. Before some time ago it started flooding journalctl with this error:

lxqt-panel[908]: QString::arg: Argument missing: true, us

After I removed this indicator from panel no errors were logging into journalctl anymore.

I replaced kbindicator with gxkb which works nicely but I was used to be able to preserve a layout per application without changing it with a key shortcut.
You can see this setting in picture below: Switching policy > Application
https://i.imgur.com/yQ9PJOm.png

I'm unable to find out where is this configuration saved when I can not use kbindicator.
Here is a source code for the layout setting: https://github.com/lxqt/lxqt-panel/blob … ttings.cpp

I'm looking for a solution where I can imitate kbindicator setting or get rid of those annoying errors in journalclt and continue using default kbindicator.
Thank you for advices

EDIT
I managed to set layout per application to persist after reboot with gxkb. I'm still not sure whether this option is part of X server, lxqt session, gxkb or any other application.

kbindicator flooding journalctl is already known bug:
https://github.com/lxqt/lxqt-panel/issues/1391

Last edited by WilliS (2020-05-02 20:19:45)

Offline

#2 2020-05-02 20:01:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,822

Re: [SOLVED] Preserve keyboard layout per application

The normal approach is that the keyboard switching daemon tracks the active window and acts depending on some window properties (title, id, pid, class, …) - X11 does not have an "application" concept, this is all between cilents.

Please replace the oversized image w/ a link or thumbnail (<= 200x200), thanks.

Online

Board footer

Powered by FluxBB