Print my keyboard layout: proof of concept
curl https://raw.githubusercontent.com/nogaems/pmkl/master/{0001-keyboard-layout-indicator.patch} --create-dirs -o /etc/portage/patches/x11-misc/xscreensaver-<version>/#1
emerge -1 xscreensaver
This patch will add keyboard layout indicator to the xscreensaver lock screen. Like this:
This wigdet has been tested on xscreensaver of version 5.40
. In further you must be careful in using this patch with the new versions of xscreensaver.
You must suffer. Or build xscreensaver bypassing your packet manager by this way:
cd <directory-with-sources-of-xscreensaver>
curl https://raw.githubusercontent.com/nogaems/pmkl/master/0001-keyboard-layout-indicator.patch | patch -p1
./configure
make
sudo make install
But don't forget to suffer.