How to open new tab in existing terminal instead of new terminal instance?Force every new terminal to open in new tabWhat does the Ctrl-Alt-+ shortcut do?I accidentally made my terminal open another terminal when it starts. How can I fix it?How to open new tab in existing window using keyboard shortcuts on UbuntuForce every new terminal to open in new tabStart new gnome-terminal with several tabs and wait after command is runDevilspie window focusMake Ctrl-Alt-T to open a terminal tab if any terminal was openMove window to the other worksapce not working after UpateAlt-tab shortcut not working in Plasma 5ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window
Failed to fetch jessie backports repository
How to be diplomatic in refusing to write code that breaches the privacy of our users
How can I replace every global instance of "x[2]" with "x_2"
Understanding "audieritis" in Psalm 94
Can a monster with multiattack use this ability if they are missing a limb?
Modify casing of marked letters
Personal Teleportation as a Weapon
Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past
Why are on-board computers allowed to change controls without notifying the pilots?
What's the purpose of "true" in bash "if sudo true; then"
Can I Retrieve Email Addresses from BCC?
is this a spam?
Was the picture area of a CRT a parallelogram (instead of a true rectangle)?
Is it okay / does it make sense for another player to join a running game of Munchkin?
Was Spock the First Vulcan in Starfleet?
Teaching indefinite integrals that require special-casing
What are the ramifications of creating a homebrew world without an Astral Plane?
What defines a dissertation?
Why is delta-v is the most useful quantity for planning space travel?
How do I define a right arrow with bar in LaTeX?
Products and sum of cubes in Fibonacci
Mapping a list into a phase plot
How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?
Bash method for viewing beginning and end of file
How to open new tab in existing terminal instead of new terminal instance?
Force every new terminal to open in new tabWhat does the Ctrl-Alt-+ shortcut do?I accidentally made my terminal open another terminal when it starts. How can I fix it?How to open new tab in existing window using keyboard shortcuts on UbuntuForce every new terminal to open in new tabStart new gnome-terminal with several tabs and wait after command is runDevilspie window focusMake Ctrl-Alt-T to open a terminal tab if any terminal was openMove window to the other worksapce not working after UpateAlt-tab shortcut not working in Plasma 5ctrl-alt-t opens new terminal window instead of new tab while gnome terminal is active window
When pressing Ctrl-Alt-T in Ubuntu 18.04, a new terminal instance is opened. Is there a way to tweak the shortcut so if a terminal instance is already opened, then it just gets focused and a new tab is opened?
I'm tired of having 100 terminals opened because of my Ctrl-Alt-T habit.
I'm using hyper terminal, but something working with gnome-terminal would be a good start!
18.04 gnome shortcut-keys gnome-terminal
add a comment |
When pressing Ctrl-Alt-T in Ubuntu 18.04, a new terminal instance is opened. Is there a way to tweak the shortcut so if a terminal instance is already opened, then it just gets focused and a new tab is opened?
I'm tired of having 100 terminals opened because of my Ctrl-Alt-T habit.
I'm using hyper terminal, but something working with gnome-terminal would be a good start!
18.04 gnome shortcut-keys gnome-terminal
1
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
1
I removed that ;-)
– RoVo
yesterday
3
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
@vanadium I don't know when, but this has apparently been fixed. Enteringgnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.
– Charles Green
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday
add a comment |
When pressing Ctrl-Alt-T in Ubuntu 18.04, a new terminal instance is opened. Is there a way to tweak the shortcut so if a terminal instance is already opened, then it just gets focused and a new tab is opened?
I'm tired of having 100 terminals opened because of my Ctrl-Alt-T habit.
I'm using hyper terminal, but something working with gnome-terminal would be a good start!
18.04 gnome shortcut-keys gnome-terminal
When pressing Ctrl-Alt-T in Ubuntu 18.04, a new terminal instance is opened. Is there a way to tweak the shortcut so if a terminal instance is already opened, then it just gets focused and a new tab is opened?
I'm tired of having 100 terminals opened because of my Ctrl-Alt-T habit.
I'm using hyper terminal, but something working with gnome-terminal would be a good start!
18.04 gnome shortcut-keys gnome-terminal
18.04 gnome shortcut-keys gnome-terminal
edited yesterday
DK Bose
14.8k124288
14.8k124288
asked yesterday
Benjamin BarroisBenjamin Barrois
23428
23428
1
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
1
I removed that ;-)
– RoVo
yesterday
3
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
@vanadium I don't know when, but this has apparently been fixed. Enteringgnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.
– Charles Green
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday
add a comment |
1
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
1
I removed that ;-)
– RoVo
yesterday
3
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
@vanadium I don't know when, but this has apparently been fixed. Enteringgnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.
– Charles Green
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday
1
1
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
1
1
I removed that ;-)
– RoVo
yesterday
I removed that ;-)
– RoVo
yesterday
3
3
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
@vanadium I don't know when, but this has apparently been fixed. Entering
gnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.– Charles Green
yesterday
@vanadium I don't know when, but this has apparently been fixed. Entering
gnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.– Charles Green
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday
add a comment |
2 Answers
2
active
oldest
votes
Use Tilix !
You can set the behaviour in the Preferences -> Global:
Screenshot from Tilix website:
add a comment |
I tested the following script in a virtual machine running Ubuntu 18.04
gt.sh
#!/usr/bin/env bash
if wmctrl -lx | grep -q "gnome-terminal-server.Gnome-terminal"
then
wmctrl -a "dkb@dkb" && sleep 1s && xdotool key "ctrl+shift+T"
else
gnome-terminal
fi
An important point to note is the line with wmctrl -a "dkb@dkb"
. Here, wmctrl is bringing into focus the window containing "dkb@dkb" in the window title. In your case, it will be something else based on your username. So use part of what you see in the terminal's title instead of "dkb@dkb".
I bound the script gt.sh to Ctrl+Super+G. Now, whenever I press the shortcut,
wmctrl checks whether an instance of gnome-terminal is running.- If there's no running instance, gnome-terminal is launched.
- If there's an existing instance, the gnome-terminal window is brought into focus and an additional tab is opened.
- The sleep value maybe reduced further if absolutely necessary.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128516%2fhow-to-open-new-tab-in-existing-terminal-instead-of-new-terminal-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
Use Tilix !
You can set the behaviour in the Preferences -> Global:
Screenshot from Tilix website:
add a comment |
Use Tilix !
You can set the behaviour in the Preferences -> Global:
Screenshot from Tilix website:
add a comment |
Use Tilix !
You can set the behaviour in the Preferences -> Global:
Screenshot from Tilix website:
Use Tilix !
You can set the behaviour in the Preferences -> Global:
Screenshot from Tilix website:
answered yesterday
RoVoRoVo
7,9481943
7,9481943
add a comment |
add a comment |
I tested the following script in a virtual machine running Ubuntu 18.04
gt.sh
#!/usr/bin/env bash
if wmctrl -lx | grep -q "gnome-terminal-server.Gnome-terminal"
then
wmctrl -a "dkb@dkb" && sleep 1s && xdotool key "ctrl+shift+T"
else
gnome-terminal
fi
An important point to note is the line with wmctrl -a "dkb@dkb"
. Here, wmctrl is bringing into focus the window containing "dkb@dkb" in the window title. In your case, it will be something else based on your username. So use part of what you see in the terminal's title instead of "dkb@dkb".
I bound the script gt.sh to Ctrl+Super+G. Now, whenever I press the shortcut,
wmctrl checks whether an instance of gnome-terminal is running.- If there's no running instance, gnome-terminal is launched.
- If there's an existing instance, the gnome-terminal window is brought into focus and an additional tab is opened.
- The sleep value maybe reduced further if absolutely necessary.
add a comment |
I tested the following script in a virtual machine running Ubuntu 18.04
gt.sh
#!/usr/bin/env bash
if wmctrl -lx | grep -q "gnome-terminal-server.Gnome-terminal"
then
wmctrl -a "dkb@dkb" && sleep 1s && xdotool key "ctrl+shift+T"
else
gnome-terminal
fi
An important point to note is the line with wmctrl -a "dkb@dkb"
. Here, wmctrl is bringing into focus the window containing "dkb@dkb" in the window title. In your case, it will be something else based on your username. So use part of what you see in the terminal's title instead of "dkb@dkb".
I bound the script gt.sh to Ctrl+Super+G. Now, whenever I press the shortcut,
wmctrl checks whether an instance of gnome-terminal is running.- If there's no running instance, gnome-terminal is launched.
- If there's an existing instance, the gnome-terminal window is brought into focus and an additional tab is opened.
- The sleep value maybe reduced further if absolutely necessary.
add a comment |
I tested the following script in a virtual machine running Ubuntu 18.04
gt.sh
#!/usr/bin/env bash
if wmctrl -lx | grep -q "gnome-terminal-server.Gnome-terminal"
then
wmctrl -a "dkb@dkb" && sleep 1s && xdotool key "ctrl+shift+T"
else
gnome-terminal
fi
An important point to note is the line with wmctrl -a "dkb@dkb"
. Here, wmctrl is bringing into focus the window containing "dkb@dkb" in the window title. In your case, it will be something else based on your username. So use part of what you see in the terminal's title instead of "dkb@dkb".
I bound the script gt.sh to Ctrl+Super+G. Now, whenever I press the shortcut,
wmctrl checks whether an instance of gnome-terminal is running.- If there's no running instance, gnome-terminal is launched.
- If there's an existing instance, the gnome-terminal window is brought into focus and an additional tab is opened.
- The sleep value maybe reduced further if absolutely necessary.
I tested the following script in a virtual machine running Ubuntu 18.04
gt.sh
#!/usr/bin/env bash
if wmctrl -lx | grep -q "gnome-terminal-server.Gnome-terminal"
then
wmctrl -a "dkb@dkb" && sleep 1s && xdotool key "ctrl+shift+T"
else
gnome-terminal
fi
An important point to note is the line with wmctrl -a "dkb@dkb"
. Here, wmctrl is bringing into focus the window containing "dkb@dkb" in the window title. In your case, it will be something else based on your username. So use part of what you see in the terminal's title instead of "dkb@dkb".
I bound the script gt.sh to Ctrl+Super+G. Now, whenever I press the shortcut,
wmctrl checks whether an instance of gnome-terminal is running.- If there's no running instance, gnome-terminal is launched.
- If there's an existing instance, the gnome-terminal window is brought into focus and an additional tab is opened.
- The sleep value maybe reduced further if absolutely necessary.
answered 11 hours ago
DK BoseDK Bose
14.8k124288
14.8k124288
add a comment |
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1128516%2fhow-to-open-new-tab-in-existing-terminal-instead-of-new-terminal-instance%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
1
Please use animated gifs only to add value to a question or answer.
– DK Bose
yesterday
1
I removed that ;-)
– RoVo
yesterday
3
Possible duplicate of Force every new terminal to open in new tab
– vanadium
yesterday
@vanadium I don't know when, but this has apparently been fixed. Entering
gnome-terminal --tab
in a terminal in 18.10 does in fact, open a new terminal for me.– Charles Green
yesterday
@Charles Green Indeed it does when you run the command in gnome-terminal. However, it does not behave this way if you launch the command or a script containing the command with a hotkey.
– vanadium
yesterday