As you might know, MATE is a fork of Gnome 2 with a traditional Desktop interface like a taskbar, system tray and apps menu. MATE is developed along with Linux Mint, which is one of the most popular Linux distros these days. In this article, I would like to show you how to enable and set custom flags for the keyboard layout indicator in MATE.
In MATE, when you have more than one keyboard layout, a special indicator appears in the panel (Taskbar) which shows the current keyboard layout. By default, it shows two letters to indicate the layout, for example, en - for English, or ru for Russian. Here is how it looks in Linux Mint 18.2:
Another useful feature of the indicator is the ability to maintain the keyboard layout per app window or globally for all running apps.
On of the lesser known options of the keyboard indicator in MATE is the ability to show flags instead of letters to indicate the current layout. This option is quite hidden and needs to be enabled with dconf. The easiest way to edit dcong options is dconf-editor, an app whose UI reminds of regedit.exe in Windows.
Note: In my Linux Mint, dconf-editor hasn't been installed. I had to install it manually. Here is how it can be done.
- Open Root Terminal.
# apt-get install dconf-editor
To enable flags for MATE Keyboard Layout Indicator, you need to do the following.
- Grab a nice set of flags in the PNG format. For example, I will use these:
- With your favorite file manager, create the following directory structure:
/home/your user name/.icons/flags
You can save your time by opening a new terminal instance and typing the following command:
mkdir -p ~/.icons/flags/
This will create all the required directories at once.
- Name your PNG files using the naming scheme used by the indicator. For example, you have to save your USA flag as us.png and your Russian flag as ru.png.
- Now, press the Alt + F2 keys together to open the "Run Application" dialog and type dconf-editor in the text box. Hit Enter to execute the app.
- In dconf-editor, expand the tree on the left to
- In the right pane, enable the option 'show-flags'.
Voila, you just applied custom flag images to the Keyboard Indicator of MATE. The change will take effect instantly.
Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:
If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!
6 thoughts on “Enable Flags for MATE Keyboard Layout Indicator”
I will pick USA flag
That’s so nice, it’s just too bad I don’t require two keyboards so presumably I won’t have any indicator.
You are welcome.
thanks a lot for sharing
BTW in debian buster no need to create a flag folder anymore.