Magic Mouse Bash script for connect apple magic mouse automatically in Ubuntu Perform the installation steps as root user Download installation script curl -O https://raw.githubusercontent.com/gorobey/magic-mouse/main/install.sh Run it bash install.sh Add the mac address of the mouse nano /usr/bin/magic_mouse