Skip to content

lightgun-poc / lib/gnome / detectGnomeMonitors

Function: detectGnomeMonitors() ​

detectGnomeMonitors(ffi): MonitorRect[]

Defined in: lib/gnome.ts:338

The monitors as GNOME lays them out — the SAME pixel space absolute aim is injected in, which is why lib/monitors prefers this over xrandr on Wayland: Xwayland's geometry only happens to agree with the stage, and stops agreeing once it renders at native scale.

Parameters ​

ffi ​

Ffi

Returns ​

MonitorRect[]

Throws ​

When there is no session bus or GNOME Shell does not answer.

Released under the MIT License.