Stacking sequences, external strain and a vertical electric field can be used to effectively modulate the electronic structures of graphyne-based homo- and hetero-structures.