How to programmatically rotate the screen in Gnome 3.28 (Wayland)?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I know how to rotate the screen in Xorg using xrandr or in Wayland using the gnome-control-center GUI, but is there a way to do it in Wayland using a command line interface or an API call ?



Context: I have a convertible laptop which is not supported by iio-sensor-proxy, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.










share|improve this question

























    up vote
    0
    down vote

    favorite












    I know how to rotate the screen in Xorg using xrandr or in Wayland using the gnome-control-center GUI, but is there a way to do it in Wayland using a command line interface or an API call ?



    Context: I have a convertible laptop which is not supported by iio-sensor-proxy, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.










    share|improve this question























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I know how to rotate the screen in Xorg using xrandr or in Wayland using the gnome-control-center GUI, but is there a way to do it in Wayland using a command line interface or an API call ?



      Context: I have a convertible laptop which is not supported by iio-sensor-proxy, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.










      share|improve this question













      I know how to rotate the screen in Xorg using xrandr or in Wayland using the gnome-control-center GUI, but is there a way to do it in Wayland using a command line interface or an API call ?



      Context: I have a convertible laptop which is not supported by iio-sensor-proxy, and I would like to use a script or shortcut to quickly rotate the screen. Going back to Xorg is not an option.







      gnome wayland






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Aug 26 at 17:35









      Element-126

      135




      135




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          A partial solution is to set the rotate-monitor key to some keybinding using gsettings or dconf-editor.



          For instance, the following command will cause Ctrl+F8 to rotate the screen counterclockwise:



          $ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"


          This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.






          share|improve this answer




















            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: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            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%2f464947%2fhow-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            A partial solution is to set the rotate-monitor key to some keybinding using gsettings or dconf-editor.



            For instance, the following command will cause Ctrl+F8 to rotate the screen counterclockwise:



            $ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"


            This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.






            share|improve this answer
























              up vote
              0
              down vote













              A partial solution is to set the rotate-monitor key to some keybinding using gsettings or dconf-editor.



              For instance, the following command will cause Ctrl+F8 to rotate the screen counterclockwise:



              $ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"


              This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.






              share|improve this answer






















                up vote
                0
                down vote










                up vote
                0
                down vote









                A partial solution is to set the rotate-monitor key to some keybinding using gsettings or dconf-editor.



                For instance, the following command will cause Ctrl+F8 to rotate the screen counterclockwise:



                $ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"


                This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.






                share|improve this answer












                A partial solution is to set the rotate-monitor key to some keybinding using gsettings or dconf-editor.



                For instance, the following command will cause Ctrl+F8 to rotate the screen counterclockwise:



                $ gsettings set org.gnome.mutter.keybindings rotate-monitor "['XF86RotateWindows', '<Control>F8']"


                This does not allow the user to specify the target orientation, but only to rotate the screen until the desired orientation is reached.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Aug 28 at 23:02









                Element-126

                135




                135



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f464947%2fhow-to-programmatically-rotate-the-screen-in-gnome-3-28-wayland%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?