artginzburg / MiddleClick-Sonoma

 "Wheel click" with three-finger click/tap for Trackpad and Magic Mouse.
GNU General Public License v3.0
1.47k stars 85 forks source link
64-bit macos middleclick

MiddleClick

Emulate a scroll wheel click with three finger Click or Tap on MacBook trackpad and Magic Mouse

with macOS Sonoma14 support!


:mag: Usage

It's more than just `⌘`+click

`System-wide` · close tabs by middleclicking on them

`In Safari` · middleclicking on a link opens it in background

`In Terminal` · paste selected text


Install

Via :beer: Homebrew Cask (Recommended)

brew install --cask --no-quarantine middleclick

Check out the cask if you're interested

Direct Download

Latest Release  ·  GitHub release > Additionally, you may also view Earlier Releases


Hide Status Bar Item

  1. Holding , drag it away from the status bar until you see a :heavy_multiplication_x: (cross icon)
  2. Let it go

To recover the item, just open MiddleClick when it's already running

Add Login Item

Make it open automatically when you log in

Just add MiddleClick to your "Login Items".

(it's handy to be done using command line)

```ps1 osascript -e 'tell application "System Events" to make login item at end with properties {path:"/Applications/MiddleClick.app", hidden:true}' ```

Preferences

Number of Fingers

defaults write com.rouge41.middleClick fingers 4

Default is 3

Tapping preferences

Max Distance Delta

defaults write com.rouge41.middleClick maxDistanceDelta 0.03

Default is 0.05

Max Time Delta

defaults write com.rouge41.middleClick maxTimeDelta 150

Default is 300


This fork differs from the base fork in some ways - Configurations: Number of Fingers, Click or Tap - preferred setting is saved for every user - Removed old 32-bit/PowerPc `relaunch` binary due to it's incompatibility with macOS 10.15 Catalina and greater. Replaced with inline restarting of the app - The App will not only restart on waking the Mac, but when a new touch device is added (so it immediately gains middleclicking ability) and when a display is added/reconfigured (for proper click positioning)

Attention! Make sure to:

  1. Quit an old version of MiddleClick
  2. Remove it from the privacy settings
  3. Enable the new version in privacy settings when prompted

The app should be closed when you change the privacy settings, otherwise the Mouse may not be clickable and you may have to killall MiddleClick via terminal or even force restart the Mac.

Credits

This project was made by [Clément Beffa](//clement.beffa.org/), Extended by [LoPablo](//github.com/LoPablo) and [artginzburg](//github.com/artginzburg) (it's me)