The quickest way to get the ini
file you need is exporting it from the the Settings -> Customization
dialog. Once you have this ini
file you can open and edit it to disable any widgets you don't need to see.
qgis --customizationfile qgis_custom.ini
TODO