iCanHazShortcut icon indicating copy to clipboard operation
iCanHazShortcut copied to clipboard

Mouse buttons

Open FossPrime opened this issue 7 years ago • 7 comments

Any chance we could assign mouse buttons?

FossPrime avatar Sep 18 '18 21:09 FossPrime

Why? I honestly see no point in developing such a functionality...
But! You can use Karabiner to assign any mouse button to any key (F13-F19 are perfect for that) and then just press that mouse button in iCHS hotkey selector.

deseven avatar Sep 18 '18 21:09 deseven

I'll look into karabiner again. I need it to switch workspaces faster with my extra side mouse (4 & 5) buttons.

FossPrime avatar Sep 18 '18 21:09 FossPrime

Hmm... Even if i'll be able figure out how to grab mouse buttons i'm not sure how to test is reliably, my mouse only have 2 (well, actually 3) buttons. I'll see what i can do, but for now your best bet is to assign your mouse buttons to some keys via Karabiner.

deseven avatar Sep 18 '18 21:09 deseven

Wait a sec, i found my old mouse and it has 2 additional buttons. So, what you need to do is:

  1. Assign button4 to some free unused key, for example F20:

  2. Make sure that your mouse is enabled in Devices tab:

  3. Create a shortcut as usual, press your mouse button with active shortcut selector:

And that's it.

deseven avatar Sep 18 '18 21:09 deseven

SOOOO glad Karabiner works on the Mac again... It's control and command swapping feature is better than the mac's built in.

FossPrime avatar Sep 18 '18 22:09 FossPrime

Don't close it, i'll try to at least look into it in the future.

deseven avatar Sep 18 '18 22:09 deseven

Actually there is no point to use iCHS for that at all. Karabiner is all you need, since those are system-level shortcuts anyway, you can simply redefine them in system shortcuts:

deseven avatar Sep 18 '18 22:09 deseven