Written by Alexander Iliev, this plugin allows you to setup and use multiple (currently up to 4 due to X11 protocol limitation) keyboard layouts.
You can choose the keyboard model, what key combination to use to switch between the layouts, the actual keyboard layouts, the way in which the current layout is being displayed (country flag image or text) and the layout policy, which is whether to store the layout globally (for all windows), per application or per window.
If a certain flag is missing, the plugin will fallback to displaying the layout as text.
The plugin detects any change in the layout configuration (e.g. setxkbmap invocations) and reconfigures itself to use the new settings.
NOTE: Lots of code was borrowed from the XfKC project by Gauvain Pocentek.
Once the plugin is added to a panel, it displays the current keyboard layout configuration.
The keyboard layouts, keyboard model and layout change shortcut key can be configured from the settings dialog. A default layout is selected through the list of the configured layouts and this layout is used for all new windows.
The plugin can manage the layout globally (one common layout for all windows), per application and per window.
If more than three layouts are configured, then, when clicked, the plugin pops-up a menu with the available layouts. If there are two layouts configured, then the layout is changed right away with a click on the plugin.
If for some language more than one variant is configured, then a little black circle with thin white outline is added to the bottom right corner of the flag image for the second variant, or if the display type of the plugin is set to “text”, then a little dot is shown after the language text (as a subscript). Two of those circles/dots are added for the third variant for the same language and three for the fourth /though I doubt someone uses more than two variants of the same language at all :)/.
The plugin handles runtime layout configuration changes and configures it's settings accordingly.
Currently the plugin cannot handle well most of the XKB options. Actually it will overwrite all but the first group: option found in the running configuration. This will change in future versions.
- The plugin in action:
- The settings dialog:
- xfce4-xkb-plugin 0.8.2 released (2020/12/24 17:16)
xfce4-xkb-plugin 0.8.2 is now available for download from https://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.8/xfce4-xkb-plugin-0.8.2.tar.bz2 https://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.8/xfce4-xkb-plugin-0.8.2.tar.bz2?sha1 https://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.8/xfce4-xkb-plugin-0.8.2.tar.bz2?sha256 What is xfce4-xkb-plugin? ========================= XKB layout switching panel plug-in for the Xfce desktop environment Website: https://docs.xfce.org/panel-plugins/xfce4-xkb-plugin Release notes for 0.8.2 ======================= - Fix build with panel 4.15 - Update configure.ac.in syntax - scale alternate layout dots to be visible on hi dpi displays - Add basic GitLab pipeline - Minor build updates - Update URLs from goodies.x.o to docs.x.o (Bug #16184) - Update .gitignore - s/http/https - Update Myanmar flag - Improve spacing (Bug #14684) - Fix compilation warnings - Add -lX11 to libxkb_la_LIBADD - Translation Updates: Albanian, Arabic, Armenian (Armenia), Asturian, Basque, Belarusian, Bulgarian, Catalan, Chinese (China), Chinese (Taiwan), Croatian, Czech, Danish, Dutch, Eastern Armenian, English (Australia), English (Canada), English (United Kingdom), Estonian, Finnish, French, Galician, Georgian, German, Greek, Hebrew, Hungarian, Icelandic, Indonesian, Interlingue, Italian, Japanese, Kazakh, Korean, Latvian, Lithuanian, Malay, Norwegian Bokmål, Occitan (post 1500), Polish, Portuguese, Portuguese (Brazil), Romanian, Russian, Serbian, Slovak, Slovenian, Spanish, Swedish, Thai, Turkish, Ukrainian, Urdu, Urdu (Pakistan), Uyghur, Uzbek, Uzbek (Latin)
- libgtk+ >= 2.6.0
- libxfce4panel >= 4.8.0
- libxfce4util >= 4.8.0
- libxfce4ui >= 4.8.0
- libxklavier >= 5.0
- librsvg >= 2.18
- libwnck >= 2.12