Type deai.plugin.xorg:RandrExt

See Connection.randr for more information about this type

Properties

modes

Available modes from RandR

outputs

Outputs

modes: [Mode]
Type:

[Mode]

Available modes from RandR

outputs: [Output]
Type:

[Output]

Outputs

Generally, outputs are what we would call monitors.

Methods

configure_outputs(configs)

Configure the outputs.

find_output(monitor_info)

Find the output that corresponds to a monitor.

monitor_info()

Get the monitor information for each connected monitor.

configure_outputs(configs) void
Return type:

void

Parameters:

configs ([OutputConfig]) – The configuration

Configure the outputs.

Set the position and size of the outputs according to configuration. The outputs you want to configure must ALL appear in the configuration list, even if you don’t place any positional constraints on them. The positional constraints MUST NOT refer to any outputs that are not in the configuration list. If the constraints are impossible to satisfy, then an error will be raised.

find_output(monitor_info) Output
Return type:

Output

Parameters:

monitor_info (MonitorInfo) – The monitor information. This can also be a string, in which case it is treated as the name of the output.

Find the output that corresponds to a monitor.

The argument is a MonitorInfo object. But not all of its fields need to be filled in. Only the fields present will be used in the search, and the output field will be ignored. If there are multiple outputs that match the information given, any of them may be returned.

monitor_info() object
Return type:

object

Get the monitor information for each connected monitor.

Returns a table of monitor information, indexed by the name of the output, each value is of type MonitorInfo.

Signals

output-change(output)

An output’s configuration changed

view-change(view)

A view’s configuration changed

signal output-change(output)
Parameters:

output (Output) – the output that changed.

An output’s configuration changed

signal view-change(view)
Parameters:

view (View) – the view that changed.

A view’s configuration changed