Switch all windows between main and secondary monitors











up vote
0
down vote

favorite












I'm looking for a way to take all the windows from the main monitor and move them to the secondary one, and simultaneously moving the windows from the secondary monitor to the main one.



I'm aware that Shift+Super+Arrow will move individual window to the right/left, but I'm looking for a one shot shortcut.



I'm using Ubuntu 18.10 with the default Gnome desktop.



Background



My monitors are set up in a way that the main monitor is right in front of me and the secondary is tilted to the side.
I often find myself researching something on the web and then going back to write code on my IDE while keeping the browser open on the other monitor.
So what happens is either I do the searches on the secondary monitor (with my head tilted to the monitor), and then resume normal position to write code, or (too often) I'm searching on the main monitor than continue to work on the code on the secondary monitor in an uncomfortable head position.



I'd like to have a way to quickly switch between them upon changing the main focus such that the main focus window will always be on the main monitor.



If such a thing is not currently possible, I'd love to hear some insight on where should I start in implementing such a feature.



Edit:



This thread seems to attempt to find a solution (3 years ago) using wmctrl.
But wmctrl is a buggy utility that produces inconsistent results.










share|improve this question




























    up vote
    0
    down vote

    favorite












    I'm looking for a way to take all the windows from the main monitor and move them to the secondary one, and simultaneously moving the windows from the secondary monitor to the main one.



    I'm aware that Shift+Super+Arrow will move individual window to the right/left, but I'm looking for a one shot shortcut.



    I'm using Ubuntu 18.10 with the default Gnome desktop.



    Background



    My monitors are set up in a way that the main monitor is right in front of me and the secondary is tilted to the side.
    I often find myself researching something on the web and then going back to write code on my IDE while keeping the browser open on the other monitor.
    So what happens is either I do the searches on the secondary monitor (with my head tilted to the monitor), and then resume normal position to write code, or (too often) I'm searching on the main monitor than continue to work on the code on the secondary monitor in an uncomfortable head position.



    I'd like to have a way to quickly switch between them upon changing the main focus such that the main focus window will always be on the main monitor.



    If such a thing is not currently possible, I'd love to hear some insight on where should I start in implementing such a feature.



    Edit:



    This thread seems to attempt to find a solution (3 years ago) using wmctrl.
    But wmctrl is a buggy utility that produces inconsistent results.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I'm looking for a way to take all the windows from the main monitor and move them to the secondary one, and simultaneously moving the windows from the secondary monitor to the main one.



      I'm aware that Shift+Super+Arrow will move individual window to the right/left, but I'm looking for a one shot shortcut.



      I'm using Ubuntu 18.10 with the default Gnome desktop.



      Background



      My monitors are set up in a way that the main monitor is right in front of me and the secondary is tilted to the side.
      I often find myself researching something on the web and then going back to write code on my IDE while keeping the browser open on the other monitor.
      So what happens is either I do the searches on the secondary monitor (with my head tilted to the monitor), and then resume normal position to write code, or (too often) I'm searching on the main monitor than continue to work on the code on the secondary monitor in an uncomfortable head position.



      I'd like to have a way to quickly switch between them upon changing the main focus such that the main focus window will always be on the main monitor.



      If such a thing is not currently possible, I'd love to hear some insight on where should I start in implementing such a feature.



      Edit:



      This thread seems to attempt to find a solution (3 years ago) using wmctrl.
      But wmctrl is a buggy utility that produces inconsistent results.










      share|improve this question















      I'm looking for a way to take all the windows from the main monitor and move them to the secondary one, and simultaneously moving the windows from the secondary monitor to the main one.



      I'm aware that Shift+Super+Arrow will move individual window to the right/left, but I'm looking for a one shot shortcut.



      I'm using Ubuntu 18.10 with the default Gnome desktop.



      Background



      My monitors are set up in a way that the main monitor is right in front of me and the secondary is tilted to the side.
      I often find myself researching something on the web and then going back to write code on my IDE while keeping the browser open on the other monitor.
      So what happens is either I do the searches on the secondary monitor (with my head tilted to the monitor), and then resume normal position to write code, or (too often) I'm searching on the main monitor than continue to work on the code on the secondary monitor in an uncomfortable head position.



      I'd like to have a way to quickly switch between them upon changing the main focus such that the main focus window will always be on the main monitor.



      If such a thing is not currently possible, I'd love to hear some insight on where should I start in implementing such a feature.



      Edit:



      This thread seems to attempt to find a solution (3 years ago) using wmctrl.
      But wmctrl is a buggy utility that produces inconsistent results.







      shortcut-keys multiple-monitors






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 22 at 12:52

























      asked Nov 22 at 11:11









      Liran Funaro

      1014




      1014



























          active

          oldest

          votes











          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',
          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%2f1095073%2fswitch-all-windows-between-main-and-secondary-monitors%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f1095073%2fswitch-all-windows-between-main-and-secondary-monitors%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

          Mont Emei

          Province de Neuquén

          Journaliste