[Touch Bar] Assigning input source language to Touchbar button?

Kind of like the native "Input Sources" button, but I would like to assign custom flag icons within BTT and if possible, make it a single-tap language switch instead of opening a sub group. Is it possible? Thank you.