After I navigate out to a webpage or editor, is there any way to bring all the open terminals back to the front in their original positions? It is a bit of a pain clicking the terminal icon and then bringing each one back individually.
Thanks!
Example:
- Pre-shortcut:
- Post-shortcut:
Best Answer
You can press Alt+Tab to switch forward between windows and Alt+Shift+Tab to switch back between windows. This shortcut is made to work in almost all graphical operating systems. Yow can also use Super+W and arrow keys for the same purpose.
After you bring one terminal window in the front, press Alt+~ to bring all other terminal windows in the front one by one:
To automatically bring all open terminals in the front (not one by one as I described before) you will need to add a keyboard shortcut for the following script (script taken from Adobe's answer and improved considering that version of script hasn't worked for me):
Don't forget to make the script executable:
After you test the script in terminal, you must to see: