Skip to content
maxaltproPublic

About

SVG country flags for the KDE Plasma 6 keyboard layout indicator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

3 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flagpole

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.

Flag sets

Pick one of three sets in the widget's settings:

The three flag sets in a system tray, each with ten example flags

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.

Display styles

Like the built-in indicator, Flagpole can show the flag, the layout's label, or the label over the flag:

The flag, label, and label over flag display styles in a system tray

Both settings are in the widget's configuration page:

Flagpole's settings: display style and flag set

Installation

Flagpole needs KDE Plasma 6.0 or later.

  1. Download this repository and open a terminal in its folder.

  2. Install the widget:

    tools/install.sh

    This restarts Plasma's desktop shell, so the panels flicker for a moment.

  3. 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.

Development

  • tools/install.sh also works for trying out changes: it copies the working copy over the installed widget and restarts the shell.
  • tools/fetch-flags.sh downloads the flag sets into package/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.

License

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/.

About

SVG country flags for the KDE Plasma 6 keyboard layout indicator

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages