expose which is the primary display

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

set_primary_output(output: string)
Argument
Type
Description
outputstringallow null
Select which primary output to use
destroy()
Destroy the primary output notifier.
primary_output(output_name: string)
Argument
Type
Description
output_namestring
the name of the output
Provide the current primary output's name

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


Compositor Support

Mutter
Mutter
47.3
KWin
KWin
6.3
Sway
Sway
1.10
COSMIC
COSMIC
0.1
Hyprland
Hyprland
0.44
niri
25.01
Weston
Weston
14
Mir
Mir
2.19
GameScope
GameScope
3.15.14
Jay
1.9.0
Labwc
Labwc
0.8.2
Wayfire
0.9.0
Treeland
Treeland
0.5.17
Louvre
Louvre
2.14.1
treeland_output_manager_v1
x
x
x
x
x
x
x
x
x
x
x
x
1
x

SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT