My issue is about caps LED indicating current keyboard layout. It is not possible to set it up.
When I tried to set it up in setxkbmap option like grp_led:caps - it makes my LED be turned on always.
So I tried to solve this issue with custom daemons (repo https://github.com/bvn13/kb-layout-caps-led). I tried to determine current layout with gsettings get org.gnome.desktop.input-sources mru-sources but it works in case of manually change the layout only.
But I have an option org.gnome.desktop.input-sources -> per-window enabled (in dconf utility). It breaks any possibility to actually detect current keyboard layout at all. When I switch to window with different keyboard layout the command gsettings get org.gnome.desktop.input-sources mru-sources shows the older one.
How to detect it actually?
Original here https://gitlab.gnome.org/GNOME/gnome-shell/issues/1252