Deepin: shortcut to move window to other monitor











up vote
0
down vote

favorite












I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).



I already tried the next script I used on XFCE:



yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
git clone https://github.com/calandoa/movescreen.git
sudo mv movescreen/movescreen.py /usr/bin
rm -rf movescreen//usr/local/bin/movescreen.py
sudo chmod a+rx /usr/bin/movescreen.py


Menu | All settings | Keyboard | Application shortcuts | Add



/usr/local/bin/movescreen.py left Ctrl+Super+Left



/usr/local/bin/movescreen.py right Ctrl+Super+Right



but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.



How can I add a command to move a window to left/right monitor?










share|improve this question




























    up vote
    0
    down vote

    favorite












    I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).



    I already tried the next script I used on XFCE:



    yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
    git clone https://github.com/calandoa/movescreen.git
    sudo mv movescreen/movescreen.py /usr/bin
    rm -rf movescreen//usr/local/bin/movescreen.py
    sudo chmod a+rx /usr/bin/movescreen.py


    Menu | All settings | Keyboard | Application shortcuts | Add



    /usr/local/bin/movescreen.py left Ctrl+Super+Left



    /usr/local/bin/movescreen.py right Ctrl+Super+Right



    but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.



    How can I add a command to move a window to left/right monitor?










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).



      I already tried the next script I used on XFCE:



      yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
      git clone https://github.com/calandoa/movescreen.git
      sudo mv movescreen/movescreen.py /usr/bin
      rm -rf movescreen//usr/local/bin/movescreen.py
      sudo chmod a+rx /usr/bin/movescreen.py


      Menu | All settings | Keyboard | Application shortcuts | Add



      /usr/local/bin/movescreen.py left Ctrl+Super+Left



      /usr/local/bin/movescreen.py right Ctrl+Super+Right



      but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.



      How can I add a command to move a window to left/right monitor?










      share|improve this question















      I use manjaro deepin and even thou I love this beautiful desktop environment I really miss a keyboard shortcut that let me move a window from one monitor to the other (2 monitors).



      I already tried the next script I used on XFCE:



      yaourt -S --noconfirm xorg-xprop xorg-xwininfo xorg-xrandr wmctrl
      git clone https://github.com/calandoa/movescreen.git
      sudo mv movescreen/movescreen.py /usr/bin
      rm -rf movescreen//usr/local/bin/movescreen.py
      sudo chmod a+rx /usr/bin/movescreen.py


      Menu | All settings | Keyboard | Application shortcuts | Add



      /usr/local/bin/movescreen.py left Ctrl+Super+Left



      /usr/local/bin/movescreen.py right Ctrl+Super+Right



      but it didn't work. I tryed adding this shortcut using deepin Control Center, not the XFCE way.



      How can I add a command to move a window to left/right monitor?







      keyboard-shortcuts multi-monitor manjaro deepin






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 1 at 6:33

























      asked Mar 29 at 5:23









      Damon Hill

      3019




      3019






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          diff --git a/movescreen.py b/movescreen.py
          index b6bd4ad..99b7a7c 100755
          --- a/movescreen.py
          +++ b/movescreen.py
          @@ -23,7 +23,7 @@ if 2 < len(sys.argv):
          else:
          # Get focused window
          out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
          - id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
          + id = re.search('window id # (0x[0-9a-f]+)', out).group(1)


          # Get screens information





          share|improve this answer








          New contributor




          Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.


















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "106"
            };
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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%2funix.stackexchange.com%2fquestions%2f434223%2fdeepin-shortcut-to-move-window-to-other-monitor%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            diff --git a/movescreen.py b/movescreen.py
            index b6bd4ad..99b7a7c 100755
            --- a/movescreen.py
            +++ b/movescreen.py
            @@ -23,7 +23,7 @@ if 2 < len(sys.argv):
            else:
            # Get focused window
            out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
            - id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
            + id = re.search('window id # (0x[0-9a-f]+)', out).group(1)


            # Get screens information





            share|improve this answer








            New contributor




            Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.






















              up vote
              0
              down vote













              diff --git a/movescreen.py b/movescreen.py
              index b6bd4ad..99b7a7c 100755
              --- a/movescreen.py
              +++ b/movescreen.py
              @@ -23,7 +23,7 @@ if 2 < len(sys.argv):
              else:
              # Get focused window
              out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
              - id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
              + id = re.search('window id # (0x[0-9a-f]+)', out).group(1)


              # Get screens information





              share|improve this answer








              New contributor




              Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.




















                up vote
                0
                down vote










                up vote
                0
                down vote









                diff --git a/movescreen.py b/movescreen.py
                index b6bd4ad..99b7a7c 100755
                --- a/movescreen.py
                +++ b/movescreen.py
                @@ -23,7 +23,7 @@ if 2 < len(sys.argv):
                else:
                # Get focused window
                out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
                - id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
                + id = re.search('window id # (0x[0-9a-f]+)', out).group(1)


                # Get screens information





                share|improve this answer








                New contributor




                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                diff --git a/movescreen.py b/movescreen.py
                index b6bd4ad..99b7a7c 100755
                --- a/movescreen.py
                +++ b/movescreen.py
                @@ -23,7 +23,7 @@ if 2 < len(sys.argv):
                else:
                # Get focused window
                out = subprocess.check_output(['xprop', '-root', '_NET_ACTIVE_WINDOW']).decode('ascii', 'ignore')
                - id = re.search("window id # (0x[0-9a-f]+),", out).group(1)
                + id = re.search('window id # (0x[0-9a-f]+)', out).group(1)


                # Get screens information






                share|improve this answer








                New contributor




                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 2 days ago









                Jiageng Yu

                1




                1




                New contributor




                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Jiageng Yu is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






























                     

                    draft saved


                    draft discarded



















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f434223%2fdeepin-shortcut-to-move-window-to-other-monitor%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

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt