mirror of
https://github.com/swaywm/sway.git
synced 2024-11-22 07:51:28 +00:00
ipc: add "power" to output reply
This commit is contained in:
parent
80e386fd97
commit
11e05c5711
|
@ -277,6 +277,8 @@ static void ipc_json_describe_enabled_output(struct sway_output *output,
|
||||||
json_object_object_add(object, "active", json_object_new_boolean(true));
|
json_object_object_add(object, "active", json_object_new_boolean(true));
|
||||||
json_object_object_add(object, "dpms",
|
json_object_object_add(object, "dpms",
|
||||||
json_object_new_boolean(wlr_output->enabled));
|
json_object_new_boolean(wlr_output->enabled));
|
||||||
|
json_object_object_add(object, "power",
|
||||||
|
json_object_new_boolean(wlr_output->enabled));
|
||||||
json_object_object_add(object, "layout", json_object_new_string("output"));
|
json_object_object_add(object, "layout", json_object_new_string("output"));
|
||||||
json_object_object_add(object, "orientation",
|
json_object_object_add(object, "orientation",
|
||||||
json_object_new_string(
|
json_object_new_string(
|
||||||
|
@ -354,6 +356,7 @@ json_object *ipc_json_describe_disabled_output(struct sway_output *output) {
|
||||||
json_object_new_string(wlr_output->name));
|
json_object_new_string(wlr_output->name));
|
||||||
json_object_object_add(object, "active", json_object_new_boolean(false));
|
json_object_object_add(object, "active", json_object_new_boolean(false));
|
||||||
json_object_object_add(object, "dpms", json_object_new_boolean(false));
|
json_object_object_add(object, "dpms", json_object_new_boolean(false));
|
||||||
|
json_object_object_add(object, "power", json_object_new_boolean(false));
|
||||||
|
|
||||||
json_object_object_add(object, "current_workspace", NULL);
|
json_object_object_add(object, "current_workspace", NULL);
|
||||||
|
|
||||||
|
|
|
@ -213,7 +213,10 @@ following properties:
|
||||||
: Whether this output is active/enabled
|
: Whether this output is active/enabled
|
||||||
|- dpms
|
|- dpms
|
||||||
: boolean
|
: boolean
|
||||||
: Whether this output is on/off (via DPMS)
|
: (Deprecated, use _power_ instead) Whether this output is on/off (via DPMS)
|
||||||
|
|- power
|
||||||
|
: boolean
|
||||||
|
: Whether this output is on/off
|
||||||
|- primary
|
|- primary
|
||||||
: boolean
|
: boolean
|
||||||
: For i3 compatibility, this will be false. It does not make sense in Wayland
|
: For i3 compatibility, this will be false. It does not make sense in Wayland
|
||||||
|
|
Loading…
Reference in a new issue