Added in 2.3

$screenhz

Returns the refresh rate of the first screen found.


$screenhz(N)

Returns the refresh rate of the Nth screen found.

Parameters

Parameter Description
N If N = 0, the number of screens found, otherwise the Nth screen.

Example

; Print number of screens.
//echo -ag $screenhz(0)

; Print the refresh rate of the first screen found.
//echo -ag $screenhz(1)