Skip to content

Using second left and right mouse buttons on a Lenovo P50 as back and forward?

I have a Lenovo P50, and I primarily use the bottom mouse buttons for left and right click. I was thinking it would be handy to remap the upper left and right buttons as back and forward buttons for quicker web browsing. Is there a way to do this on just these buttons?

Edit: Using Xorg, but I'd be happy to switch to Wayland if I need to.

Edited 15 Nov 2017. We only hold this version.

2 points11 comments
Open on Reddit
About this post
Posted
Archived
Edited
Score
2 · 100% up
Kind
Text
ID
7d75ro

Author

25
posts
254
comments
14
media
View profile

12 comments

Are you using X11 or Wayland?

In case you're using X11 try "imwheel".

2 points

I'm using X11.

I looked into it a little, and I think imwheel sees the two left mouse buttons as the same input, right?

1 points

There's a tool which shows what button(s) you press, but I cannot remember its name. Try googling for it. This way you can see if the buttons send the same signals or not.

1 points
unknown author

Deleted before we saved it.

1 points

this is kind of cheater mode....

since firefox has button 8 & 9 as back and forward (for mice that have them) - you can use this to you advantage.

for example:

xinput "TPPS/2 IBM TrackPoint" 8 2 9 4 5 6 7

that would set what would normally be button1&3 to 8&9 respectively.

you can check xorg.conf/xinput for details on how to make persistent.

2 points

Ooooh, that sounds promising! I figured the touchpad and, well, titty mouse would be different devices!

1 points

If you're using wayland and you figure it out, pls post your solution.

1 points

I'm using Xorg, but I definitely will post a solution if I find one!

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.