How to extract keyboard layout icon

Solution 1:

You can use apple-kbd-dat-icon-extract.py from https://github.com/phible/scripts:

curl https://raw.githubusercontent.com/phible/scripts/master/apple-kbd-dat-icon-extract.py -o a.py;mkdir icons;python a.py -o icons