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
How can I get through very long and very dry, but also very useful technical documents when learning a new tool?
Valid Badminton Score?
Why Were Madagascar and New Zealand Discovered So Late?
Using parameter substitution on a Bash array
Dot above capital letter not centred
Is there any reason not to eat food that's been dropped on the surface of the moon?
What is the intuitive meaning of having a linear relationship between the logs of two variables?
Understanding "audieritis" in Psalm 94
Efficiently merge handle parallel feature branches in SFDX
Implement the Thanos sorting algorithm
I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?
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
Your magic is very sketchy
Everything Bob says is false. How does he get people to trust him?
At which point does a character regain all their Hit Dice?
There is only s̶i̶x̶t̶y one place he can be
Short story about space worker geeks who zone out by 'listening' to radiation from stars
Is expanding the research of a group into machine learning as a PhD student risky?
Do I need a multiple entry visa for a trip UK -> Sweden -> UK?
Greatest common substring
How to be diplomatic in refusing to write code that breaches the privacy of our users
Is a roofing delivery truck likely to crack my driveway slab?
Is HostGator storing my password in plaintext?
Tiptoe or tiphoof? Adjusting words to better fit fantasy races
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 12 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