Relative Content

Tag Archive for cmacosmouse-cursorlaunchdmacos-carbon

Creating a macOS CLI Program in C to Hide Cursor after Delay Using LaunchAgent

I aim to develop a command-line program for macOS in C that hides the cursor system-wide after 8 seconds of inactivity, similar to Cursorcerer but using a LaunchAgent service and a configuration file (~/.config/cursorhiderrc). Cursorcerer’s code is unavailable, but references suggest utilizing Apple hook functions (like those detailed here: https://web.archive.org/web/20150609013355/http://lists.apple.com:80/archives/carbon-dev/2006/Jan/msg00555.html). How can I achieve this functionality?