I use tmux and I prefer only one instance of gnome-terminal open all the time. With the following script I achieve:
- Open a new terminal if there is no any terminal opened
- If terminal is already opened it will bring that terminal to the active workspace and focuses it
- If you execute script sitting on the active terminal, it minimizes the terminal