Skip to content

gnchrv/macos-pointer-coordinates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pointer Coordinates

A lightweight macOS menu bar app that displays the current cursor position as a floating label next to the pointer, updated in real time at around 60 FPS.

macOS Swift License

An example of the app launched and stopped via a Raycast script using the toggle command below

A compact pill label follows the cursor in real time, sitting just to its right and below the tip. Coordinates use a top-left origin — matching the native macOS screenshot tool — with monospaced digits so the label width stays stable as values change. The overlay is click-through, appears on all Spaces, and adapts to Light and Dark Mode automatically.

Usage

The app lives in the menu bar. Click the icon to open the menu, then choose Quit to exit.

Command Line

Build and launch

Compiles the app from source, stops any already-running instance, and launches the result.

bash build.sh

Launch

Starts the pre-built app without recompiling.

open PointerCoordinates.app

Stop

Terminates the running app process by its exact binary name.

pkill -x PointerCoordinates

Toggle

Checks whether the app is currently running and either stops it or starts it accordingly. Useful for binding to a keyboard shortcut or a shell alias.

if pgrep -x PointerCoordinates > /dev/null; then
    pkill -x PointerCoordinates
else
    open /path/to/PointerCoordinates.app
fi

License

MIT

About

macOS menu bar app that displays cursor coordinates as a floating overlay next to the pointer

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors