How to add an icon to a keyboard layout

input-sourcekeyboardukelele

I am using ukelele to create some custom keyboard layouts.

I have created a .icns file which contains an image I would like to represent this keyboard layout.

How do I get my macOS Sierra MB Pro to associate this keyboard layout with this icon file? I cannot find an option in ukelele, if there is even one.

Best Answer

You just give the .icns file the same name you gave your .keylayout file and locate them in the same direcory.