How do I map a mouse key to act as the middle mouse button with Xbindkeys?

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








up vote
0
down vote

favorite












I have a Logitech trackman mouse lacking a middle wheel. I would like to map the little button circled here:





When I use xev it shows both of those buttons as "button 1", which seems odd. I would like to make it my middle click and scroll wheel button. In Windows when I utilize the button it allows me to "open links in a new tab" and get the scroll arrow on screen to scroll.



But I do not know what exactly to write into the .xbindkeysrc file, and where to start the line (after the "End of xbindkeys configuration", or before). Also when I start the code, do I need a # in front of it?



It would be extremely awesome if you could answer with exactly what I need to paste into the file (and where)










share|improve this question



























    up vote
    0
    down vote

    favorite












    I have a Logitech trackman mouse lacking a middle wheel. I would like to map the little button circled here:





    When I use xev it shows both of those buttons as "button 1", which seems odd. I would like to make it my middle click and scroll wheel button. In Windows when I utilize the button it allows me to "open links in a new tab" and get the scroll arrow on screen to scroll.



    But I do not know what exactly to write into the .xbindkeysrc file, and where to start the line (after the "End of xbindkeys configuration", or before). Also when I start the code, do I need a # in front of it?



    It would be extremely awesome if you could answer with exactly what I need to paste into the file (and where)










    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I have a Logitech trackman mouse lacking a middle wheel. I would like to map the little button circled here:





      When I use xev it shows both of those buttons as "button 1", which seems odd. I would like to make it my middle click and scroll wheel button. In Windows when I utilize the button it allows me to "open links in a new tab" and get the scroll arrow on screen to scroll.



      But I do not know what exactly to write into the .xbindkeysrc file, and where to start the line (after the "End of xbindkeys configuration", or before). Also when I start the code, do I need a # in front of it?



      It would be extremely awesome if you could answer with exactly what I need to paste into the file (and where)










      share|improve this question















      I have a Logitech trackman mouse lacking a middle wheel. I would like to map the little button circled here:





      When I use xev it shows both of those buttons as "button 1", which seems odd. I would like to make it my middle click and scroll wheel button. In Windows when I utilize the button it allows me to "open links in a new tab" and get the scroll arrow on screen to scroll.



      But I do not know what exactly to write into the .xbindkeysrc file, and where to start the line (after the "End of xbindkeys configuration", or before). Also when I start the code, do I need a # in front of it?



      It would be extremely awesome if you could answer with exactly what I need to paste into the file (and where)







      mouse






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 17 at 22:00









      Martin Thornton

      2,40541730




      2,40541730










      asked Mar 17 at 21:32









      Nicole Loren

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          With all the different X implementations, The most reliable method is to set input device options is by using xinput as shown In this answer. In your case the "option name" you want to look for will be something like "button" or "click action" depending how your devices names button options.






          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',
            convertImagesToLinks: true,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1016858%2fhow-do-i-map-a-mouse-key-to-act-as-the-middle-mouse-button-with-xbindkeys%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













            With all the different X implementations, The most reliable method is to set input device options is by using xinput as shown In this answer. In your case the "option name" you want to look for will be something like "button" or "click action" depending how your devices names button options.






            share|improve this answer


























              up vote
              0
              down vote













              With all the different X implementations, The most reliable method is to set input device options is by using xinput as shown In this answer. In your case the "option name" you want to look for will be something like "button" or "click action" depending how your devices names button options.






              share|improve this answer
























                up vote
                0
                down vote










                up vote
                0
                down vote









                With all the different X implementations, The most reliable method is to set input device options is by using xinput as shown In this answer. In your case the "option name" you want to look for will be something like "button" or "click action" depending how your devices names button options.






                share|improve this answer














                With all the different X implementations, The most reliable method is to set input device options is by using xinput as shown In this answer. In your case the "option name" you want to look for will be something like "button" or "click action" depending how your devices names button options.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 18 at 1:18

























                answered Mar 18 at 1:13









                stumblebee

                2,3083922




                2,3083922



























                     

                    draft saved


                    draft discarded















































                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1016858%2fhow-do-i-map-a-mouse-key-to-act-as-the-middle-mouse-button-with-xbindkeys%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

                    What makes Checkinstall packages not suitable for distribution?

                    Running the scala interactive shell from the command line