I have recently started using MMM-config. I was unable to determine how to use it with modules that have sub-configs or that it is unaware of, such as MMM-TouchButton.
MMM-TouchButton requires buttons to be defined in the config, but each button has a sub-config with the information about the individual button (such as icon, command/action, etc). By itself, this would not be a huge problem since I have been using MM for years prior to cool new tools like MMM-config. The problem happens when it appears that MMM-config clobbers configs that it did not create, or maybe just configs that it is not aware of (such as these MMM-TouchButton sub-configs).
Since I am new to MMM-config, I may have done something wrong somewhere along the way.
Example of MMM-TouchButton config (entered manually):
module: "MMM-TouchButton",
position: "top_left",
config: {
buttons: [
{
name: "Suspend",
icon: "fa fa-pause",
command: "/usr/bin/systemctl",
args: "suspend",
},
]
},
Config for MMM-TouchButton after going into MMM-config to change an unrelated setting (such as switching the default clock module from 12-hour time to 24-hour time) without even touching/expanding the MMM-TouchButton settings:
{
module: "MMM-TouchButton",
position: "top_left",
config: {
buttons: [
"[object Object]"
]
},
disabled: false,
hiddenOnStartup: false,
configDeepMerge: false,
order: "*",
animateIn: "None",
animateOut: "None"
},