AyatanaIndicators / ayatana-indicator-keyboard

Ayatana Indicator Keyboard Applet
GNU General Public License v3.0
2 stars 6 forks source link

Request for feature: show current keyboard layout as country flag #8

Closed N0rbert closed 3 years ago

N0rbert commented 3 years ago

As long time Ubuntu MATE user I expect that keyboard indicator can indicate current keyboard layout as country flag. Currently default MATE keyboard indicator allows one to have the country flag after setting the following setting:

gsettings set org.mate.peripherals-keyboard-xkb.indicator show-flags true

The below screenshot indicates this functionality with current MATE Control Center on Ubuntu MATE 21.04 daily:

mcc-k-menu

If it is possible please implement the above functionality in ayatana-indicator-keyboard.

sunweaver commented 3 years ago

@N0rbert: any idea where the code for the default MATE keyboard indicator (the one you used for your screenshot) resides? That would be helpful for porting that functionality over.

N0rbert commented 3 years ago

It is default MATE keyboard applet. For flag see https://github.com/mate-desktop/libmatekbd/blob/01ff58dfc264ccaf7d8cabf42d6e8e6229ae5d21/libmatekbd/matekbd-indicator-config.c#L42 .

Thanks.

tari01 commented 3 years ago

@N0rbert @sunweaver

Unfortunately we cannot implement this. The Ayatana keyboard indicator uses a very different approach from MATE keyboard indicator: we are strictly indicating languages, not countries (see https://github.com/AyatanaIndicators/ayatana-indicator-keyboard/issues/9). One may choose one layout, but reside in a completely different country, which would raise all sort of inappropriate behaviour...

Closing, thus.