82

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
    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. Jul 16, 2019 at 19:41

8 Answers 8

53

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. 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. Oct 9, 2017 at 11:55
  • 1
    That's the most useful tool from all. It just works out of the box! Oct 9, 2017 at 21:59
  • 1
    Awesome tool. Works great inside a VMware macOS 10.12 guest.
    – Sébastien
    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
    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
    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 Windows-style Back and Forward (just like Sensible Side Buttons - in fact, I copied their code) or to Switching Spaces. It also features a refined Smooth-Scrolling algorithm, which I think strikes a great balance between fluidity and control, and more.

Mac Mouse Fix is very light on system resources and it's a System Preferences Plugin so there's no status bar item. I tried to make it as clutter-free as possible.

On top of that, it's 100% free, it doesn't sell your data or anything, it's lightweight, easy-to-use, and fully open source.

I really hope that you'll find Mac Mouse Fix useful!

Download | Github

4
  • 2
    When you hit gold between some upvoted answers
    – azerafati
    Oct 20, 2019 at 8:44
  • 1
    This answer needs more upvotes 🎉
    – antoine
    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
    Jan 28, 2021 at 13:32
  • Upvoted and gave a star on github for this amazing thing. Thanks
    – jyoti proy
    Jul 29, 2021 at 9:07
12

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
    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
    Nov 12, 2013 at 16:52
  • 1
    I did it. No success...
    – napolux
    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
    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
    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 .