useWindowPosition

provides the current location of the window on the users monitor

Demo

Move your window around

X: 0, Y: 0

Usage

const { const screenX: Signal<number>screenX, const screenY: Signal<number>screenY } = 
function useWindowPosition(): {
    screenX: Signal<number>;
    screenY: Signal<number>;
}
useWindowPosition
()