config: update config format

This update will make it much easier to work with the widget configuration in C.