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

Clash 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)
mouse
add a comment |Â
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)
mouse
add a comment |Â
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)
mouse
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
mouse
edited Mar 17 at 22:00
Martin Thornton
2,40541730
2,40541730
asked Mar 17 at 21:32
Nicole Loren
1
1
add a comment |Â
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
add a comment |Â
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.
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.
edited Mar 18 at 1:18
answered Mar 18 at 1:13
stumblebee
2,3083922
2,3083922
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password