Sharp vector country flags for the KDE Plasma 6 keyboard layout indicator, instead of the blurry emoji flags Plasma shows by default.
Flagpole works like the built-in indicator: click or scroll it to switch layouts, or right-click it to pick one from a menu with each layout's flag.
Pick one of three sets in the widget's settings:
Layouts without a flag in the chosen set, such as Braille or Latin American, show their text label instead. Circle Flags also has flags for the Arabic and Esperanto layouts.
Like the built-in indicator, Flagpole can show the flag, the layout's label, or the label over the flag:
Both settings are in the widget's configuration page:
Flagpole needs KDE Plasma 6.0 or later.
-
Download this repository and open a terminal in its folder.
-
Install the widget:
tools/install.sh
This restarts Plasma's desktop shell, so the panels flicker for a moment.
-
Right-click the system tray's arrow → Configure System Tray… → Entries. Set Flagpole to Shown when relevant and Keyboard Layout to Disabled.
To update, run tools/install.sh again from a newer copy. Your settings are kept.
To uninstall, run kpackagetool6 -t Plasma/Applet -r pro.maxalt.flagpole, log
out and back in, and set Keyboard Layout back to Shown when relevant.
tools/install.shalso works for trying out changes: it copies the working copy over the installed widget and restarts the shell.tools/fetch-flags.shdownloads the flag sets intopackage/contents/flags/. The versions are pinned at the top of the script. It keeps only the flags of countries that have an XKB keyboard layout, since the widget cannot show any other.
Flagpole is licensed under the GNU GPL v3 or later. Flag artwork:
Twemoji (CC-BY 4.0),
Circle Flags (MIT),
flag-icons (MIT).
Each set's license is included in its folder under package/contents/flags/.