Skip to content

zwlr_output_configuration_head_v1¤

wayland.zwlr_output_configuration_head_v1 ¤

Head configuration

This object is used by the client to update a single head's configuration.

It is a protocol error to set the same property twice.

Methods:

error ¤

set_mode ¤

set_mode(mode: zwlr_output_mode_v1) -> None

Set the mode

This request sets the head's mode.

set_custom_mode ¤

set_custom_mode(width: int, height: int, refresh: int) -> None

Set a custom mode

This request assigns a custom mode to the head. The size is given in physical hardware units of the output device. If set to zero, the refresh rate is unspecified.

It is a protocol error to set both a mode and a custom mode.

Parameters:

  • width ¤

    (int) –

    Width of the mode in hardware units

  • height ¤

    (int) –

    Height of the mode in hardware units

  • refresh ¤

    (int) –

    Vertical refresh rate in mhz or zero

set_position ¤

set_position(x: int, y: int) -> None

Set the position

This request sets the head's position in the global compositor space.

Parameters:

  • x ¤

    (int) –

    X position in the global compositor space

  • y ¤

    (int) –

    Y position in the global compositor space

set_transform ¤

set_transform(transform: transform) -> None

Set the transform

This request sets the head's transform.

set_scale ¤

set_scale(scale: float) -> None

Set the scale

This request sets the head's scale.

set_adaptive_sync ¤

set_adaptive_sync(state: adaptive_sync_state) -> None

Enable/disable adaptive sync

This request enables/disables adaptive sync. Adaptive sync is also known as Variable Refresh Rate or VRR.