I would like to know, if there is possible to use keyboard shortcut to focus on first idle (non working) terminal window in unity (13.10)? Something like Ctr+Alt+T, but before opening the new instance of terminal, searching for any idle instance?
Ubuntu – Keyboard shortcut to focus on (idle) terminal
gnome-terminalshortcut-keysunity
Related Question
- Ubuntu – Keyboard shortcut to switch focus between separate X screens
- Ubuntu – Keyboard shortcut for Gnome-Terminal profile change
- Ubuntu – keyboard shortcut for multiple monitors
- Ubuntu – Ubuntu 14.04 Calculator does not get focus when opened from keyboard shortcut
- Ubuntu – “Focus application” keyboard shortcut in Lubuntu (LXDE)
- Ubuntu – Key shortcut to invoke last opened terminal
Best Answer
First set the world "Terminal" to appear in the window title of your gnome-terminal. To do this, when you are in gnome-terminal go to Edit → Profile Preferences, select Title and Command tab and be sure that the field Initial title contain the word "Terminal":
Second, add a new custom keyboard shortcut for the following command:
To do this, go to System Settings → Keyboard, Shortcuts tab, select Custom Shortcut and add a new custom shortcut:
As you can see, I chose as shortcut F8 key which is working great in this case for me.
Note:
wmctrl
andxdotool
must to be installed in order to use them. If you don't have them installed, you can install them from terminal using: