I wonder how to edit the following two files, so that I can change the system keyboard layout. It seems they are binary resource files, but I'm not sure.
/System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-B.dat
/System/Library/Keyboard\ Layouts/AppleKeyboardLayouts.bundle/Contents/Resources/AppleKeyboardLayouts-L.dat
I could use Ukelele to create a custom layout, but I would like to know how Ukelele reads the current layouts, and more over whether it is posible to edit the system layout directly.


apple-kbd-dat-icon-extract.py"icon from .dat file extraction script" is at https://apple.stackexchange.com/questions/147820/how-to-extract-keyboard-layout-icon/147853#147853 – cachius Jun 14 '23 at 09:48