84

I recently bought a Logitech M560 mouse.

It works fine on my Mac, but I wonder if there's a software/prefpane (free or paid) I can use to map the additional buttons I have on my mouse (i.e. to open dashboard, select line, etc...)

Logitech at the moment offers no support for Mac for this model (I was aware of this when I bought the mouse)

enter image description here

Without any configuration the bottom side button works as "Add bookmark" in Chrome, so I think I can do something for this...

2
  • I can't add an answer, but the correct answer is to install Logitech Control Centre. I did this with my M510 and my back and forward buttons work now. I didn't even have to configure anything. Here is where to get it. No need to purchase any apps.
    – Delorean
    Commented Oct 13, 2017 at 20:57
  • 3
    For newer devices (e.g. M510), as of July 2019, the correct software to install is called "Logitech Options". I tried the Control Center software and it immediately told me that my device was not supported. Commented Jul 16, 2019 at 19:41

8 Answers 8

54

Thanks to the previous answers, I have successfully used BetterTouchTool to map three different buttons:

  • Usign "Normal Mice" tab:
    • Button 3 (Wheel Left)
    • Button 4 (Wheel right)
  • Usign "Keyboard" tab:
    • cmd + D (Back), which I assigned to "Middle click".

Two buttons remain unmappable (Forward and Middle click), but it is better than nothing. Hope that it will fit to your needs.

1
  • For the other buttons use the Key Sequence option to record a series of keys, these buttons actually do execute unique sequences of presses that you can map. Commented Oct 25, 2017 at 17:45
45

If you're interested in using the side buttons for navigation, I made an open-source menu bar utility called SensibleSideButtons that solves this problem. Instead of binding the side buttons to keyboard shortcuts like most of the other programs mentioned here, mine instead binds them to virtual left and right swipe gestures. This approach offers several benefits: almost universal adoption across the OS (including Xcode), avoidance of destructive behavior, no menu bar blink or annoying noises, commands only sent to the specific window under your cursor.

(This assumes that your side buttons emit standard M4 and M5 events.)

7
  • 7
    Tried it. Easy setup (nothing to configure), and back/forward worked on Chrome/Finder/XCode as expected. Thank you. Commented Oct 9, 2017 at 11:55
  • 1
    That's the most useful tool from all. It just works out of the box! Commented Oct 9, 2017 at 21:59
  • 1
    Awesome tool. Works great inside a VMware macOS 10.12 guest.
    – Sébastien
    Commented Dec 6, 2017 at 9:26
  • Will SensibleSideButtons work when the logitech control panel is installed? I installed it but doesn't make any difference for the side buttons of my M560.
    – m000
    Commented Feb 7, 2018 at 15:16
  • 1
    It did not work out of the box for me, since I was also using USBOverdrive. I had to delete buttons 4 and 5 from my USBOverdrive profiles before it worked.
    – Andreas
    Commented Jan 12, 2019 at 23:39
22

I've used Steermouse in the past with excellent results.

0
17

I made Mac Mouse Fix.

It lets you remap your side buttons to back and forward among many other cool features that make your mouse better.

On top of that it's open source, lightweight, easy to use and 100% free.

Download | GitHub


Update

I've made some changes to the pricing model:

  • Mac Mouse Fix 2
    Remains 100% free, and I plan to keep supporting it.
    Download
  • The latest version of Mac Mouse Fix
    Free for 30 days, costs a few dollars to own.
    Download

Thanks for your support - enjoy the app!

Mac Mouse Fix 3 UI Screenshot of Mac Mouse Fix version 3 ^

5
  • 2
    When you hit gold between some upvoted answers
    – azerafati
    Commented Oct 20, 2019 at 8:44
  • 1
    This answer needs more upvotes 🎉
    – antoine
    Commented May 4, 2020 at 0:12
  • Thanks a lot. I have a mouse with a 3rd button below the wheel, would be nice to be able to use this one as well (for instance to keep the wheel button click to close tabs and that extra button to start spaces).
    – Tim Autin
    Commented Jan 28, 2021 at 13:32
  • Upvoted and gave a star on github for this amazing thing. Thanks
    – jyoti proy
    Commented Jul 29, 2021 at 9:07
  • Thanks for the positive feedback guys! @TimAutin The app currently doesn't work with some of the buttons on some Logitech Mice, and the app is not designed to be used alongside Logitech Options. You can find out more about these and other caveats in the Questions. Commented May 13 at 17:11
13

I have used USB Overdrive

The USB Overdrive is a device driver for Mac OS X that handles any USB mouse / trackball / joystick / gamepad / media keyboard and any Bluetooth mouse from any manufacturer and lets you configure them either globally or on a per-application, per-device basis. Note that the Apple Magic Mouse and Magic Trackpad are not handled by the USB Overdrive to let Mac OS X implement its full multitouch support.

Worked really well .

0
11

BetterTouchTool

BetterTouchTool will allow you to map mouse buttons to keyboard shortcuts or predefined actions. Simply click in the area with the button that you want to map, select a modifier key if you wish, then choose a keyboard shortcut or predefined action to map.

4
  • 1
    Not working with the M560. Additional buttons are not recognized.
    – napolux
    Commented Nov 12, 2013 at 14:04
  • 1
    @Napolux Make sure you haven't got any other mouse drivers/software that might affect it (go to BTT → Settings and check the potential conflicts list at the bottom), and don't forget to give BTT accessibility access :)
    – grg
    Commented Nov 12, 2013 at 16:52
  • 1
    I did it. No success...
    – napolux
    Commented Nov 12, 2013 at 20:47
  • 1
    Tried all the tools listed on this page and only this one let me assign M570 buttons successfully. Others would say they worked in the app but did not in practice
    – stonedauwg
    Commented Mar 26, 2018 at 13:46
7

According to an answer on a similar question, it's possible to use a program called Karabiner to detect the Logitec Windows-specific keyboard events sent by the M560, and translate them to regular keyboard or mouse button events that tools such as BetterTouchTool can pick up on.

Please see the original answer on the duplicate question for full details, including a Karabiner configuration file for the M560.

1
  • Unfortunately for MacOS Sierra (10.12) onwards Karabiner Elements doesn't currently provide for mouse/pointing device support - See my answer below on Hammerspoon as an alternative.
    – Pierz
    Commented Oct 30, 2017 at 10:40
1

Hammerspoon is another free open source versatile tool that may be used to map the keys on the mouse to different functions - with many other options/plugins (known as 'Spoons') available. You'll need to install the tool and supply it with some appropriate config - see examples here for mouse remapping. Here is an example config that remaps the Logitech Marble mouse right mini-button(4) to as a Middle click(2):

hs.eventtap.new({4,25,26},
    function(e)
        local pressedMouseButton = e:getProperty(hs.eventtap.event.properties['mouseEventButtonNumber'])
        if pressedMouseButton == 4 then
           mousepos = hs.mouse.getAbsolutePosition()
           hs.eventtap.event.newMouseEvent(e:getType(),mousepos):setProperty(hs.eventtap.event.properties.mouseEventButtonNumber, 2):post()
        end
    end
):start() 

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .