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













2















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!










share|improve this question



















  • 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















2















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!










share|improve this question



















  • 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













2












2








2








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!










share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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. 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












  • 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







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










2 Answers
2






active

oldest

votes


















3














Use Tilix !



You can set the behaviour in the Preferences -> Global:



on new instance setting




Screenshot from Tilix website:



Tilix]






share|improve this answer






























    0














    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.

    gnome-terminal with tabs opened






    share|improve this answer






















      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
      );



      );













      draft saved

      draft discarded


















      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









      3














      Use Tilix !



      You can set the behaviour in the Preferences -> Global:



      on new instance setting




      Screenshot from Tilix website:



      Tilix]






      share|improve this answer



























        3














        Use Tilix !



        You can set the behaviour in the Preferences -> Global:



        on new instance setting




        Screenshot from Tilix website:



        Tilix]






        share|improve this answer

























          3












          3








          3







          Use Tilix !



          You can set the behaviour in the Preferences -> Global:



          on new instance setting




          Screenshot from Tilix website:



          Tilix]






          share|improve this answer













          Use Tilix !



          You can set the behaviour in the Preferences -> Global:



          on new instance setting




          Screenshot from Tilix website:



          Tilix]







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered yesterday









          RoVoRoVo

          7,9481943




          7,9481943























              0














              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.

              gnome-terminal with tabs opened






              share|improve this answer



























                0














                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.

                gnome-terminal with tabs opened






                share|improve this answer

























                  0












                  0








                  0







                  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.

                  gnome-terminal with tabs opened






                  share|improve this answer













                  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.

                  gnome-terminal with tabs opened







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered 12 hours ago









                  DK BoseDK Bose

                  14.8k124288




                  14.8k124288



























                      draft saved

                      draft discarded
















































                      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.




                      draft saved


                      draft discarded














                      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





















































                      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







                      Popular posts from this blog

                      getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                      Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                      Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.