Go to index / Go to protocols

treeland_output_manager_v1 ↗

manage output display configuration

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_output_manager_v1
treeland_output_manager_v1

Version 2
Compositor Support
Version 2
treeland 0.8.0

primary output and color control manager

Protocol for telling which is the primary display among the selection of enabled outputs.

treeland_output_manager_v1
request set_primary_output(
    output: string,
)
  • output — the name of the output to set as primary

Select which primary output to use

Select the primary output by name. The compositor will emit a primary_output event with the current primary output name upon binding.

treeland_output_manager_v1
event primary_output(
    output_name: string,
)
  • output_name — the name of the output

Provide the current primary output's name

Specifies which output is the primary one identified by their name.

treeland_output_manager_v1
request get_color_control(
    id: new_id<treeland_output_color_control_v1>,
    output: object<wl_output>,
)
Available since version 2

    Get color control interface for output.

    treeland_output_manager_v1
    request destroy()
    DestructorAvailable since version 2

      Destroy the primary output notifier.

      treeland_output_manager_v1
      treeland_output_color_control_v1

      Version 1

      per-output color temperature and brightness control

      Protocol for controlling color temperature and brightness settings of a specific output.

      treeland_output_color_control_v1
      request set_color_temperature(
          temperature: uint,
      )
      • temperature — color temperature in Kelvin

      Set color temperature for output

      Color temperature settings are applied only after a commit request is made. Setting a value outside the range [1000, 20000] is a protocol error.

      treeland_output_color_control_v1
      request set_brightness(
          brightness: fixed,
      )
      • brightness — brightness level (in range [0.0, 100.0])

      Set brightness for output.

      Brightness settings are applied only after a commit request is made. Setting a value outside the range [0.0, 100.0] is a protocol error.

      treeland_output_color_control_v1
      request commit()

        Commit the pending color settings changes for output.

        treeland_output_color_control_v1
        event result(
            success: uint,
        )
        • success — 1 if the commit was successful, 0 otherwise.

        The result of the last commit request.

        treeland_output_color_control_v1
        event color_temperature(
            temperature: uint,
        )
        • temperature — current color temperature in Kelvin

        Current color temperature for output.

        Provides the current color temperature setting of the output. Color temperature is valued in the range [1000, 20000]. Color temperature is defined as the corresponding temperature (in Kelvin) of the current white point of the display on a Planckian locus. With the current implementation, the neutral temperature is 6600K. This event is sent once after the treeland_output_color_control_v1 object is created, or right after when a color temperature change for the output is successfully committed.

        treeland_output_color_control_v1
        event brightness(
            brightness: fixed,
        )
        • brightness — current brightness level (in range [0.0, 100.0])

        Current brightness for output.

        Provides the current brightness setting of the output. Brightness is valued in the range [0.0, 100.0]. This event is sent once after the treeland_output_color_control_v1 object is created, or right after when a brightness change for the output is successfully committed.

        treeland_output_color_control_v1
        enum error {
            invalid_color_temperature = 1,
            invalid_brightness = 2,
        }
        • invalid_color_temperature — Invalid color temperature value provided.
        • invalid_brightness — Invalid brightness value provided.
        treeland_output_color_control_v1
        request destroy()
        Destructor

          Destroy the color control interface.