'How to choose a default tab focus in gnome-terminal?

I have a bash script which opens several tabs inside one window and I want to choose one tabe to be the default focus

for example the below script opens 3 tabs on one window:

gnome-terminal --tab --geometry="100x20" --title="TAB1" -- bash -ic "command1"
gnome-terminal --tab --geometry="100x20" --title="TAB2" -- bash -ic "command2"
gnome-terminal --tab --geometry="100x20" --title="TAB3" -- bash -ic "command3"

So, let's say I want tab2 to be the focus after running the script and openning the window. Is there a way to specify that from the script?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source