一个全局工厂,用于接收特定于 river 的状态信息的对象。它可用于实现例如状态栏 (status bar)。
destroy()
此请求表明客户端将不再使用 river_status_manager 对象。通过此实例创建的对象不受影响。
get_river_output_status(id: new_id<zriver_output_status_v1>, output: object<wl_output>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<zriver_output_status_v1> | |
| output | object<wl_output> |
这将为给定的 wl_output 创建一个新的 river_output_status 对象。
get_river_seat_status(id: new_id<zriver_seat_status_v1>, seat: object<wl_seat>)
参数 | 类型 | 描述 |
|---|---|---|
| id | new_id<zriver_seat_status_v1> | |
| seat | object<wl_seat> |
这将为给定的 wl_seat 创建一个新的 river_seat_status 对象。
此接口允许客户端接收有关 output 当前窗口状态的信息。
destroy()
此请求表明客户端将不再使用 river_output_status 对象。
focused_tags(tags: uint)
参数 | 类型 | 描述 |
|---|---|---|
| tags | uint | 32-bit bitfield |
在绑定接口时发送一次,之后在 output 的标签焦点改变时再次发送。
view_tags(tags: array)
参数 | 类型 | 描述 |
|---|---|---|
| tags | array | array of 32-bit bitfields |
在绑定接口时发送一次,之后在 output 的标签状态改变时再次发送。
urgent_tags(tags: uint)
参数 | 类型 | 描述 |
|---|---|---|
| tags | uint | 32-bit bitfield |
在绑定接口时发送一次,之后在具有至少一个紧急视图的标签集发生改变时再次发送。
layout_name_clear()
当当前布局名称被移除且未设置新名称时发送,例如当活动布局生成器 (layout generator) 断开连接时。
此接口允许客户端接收有关 seat 焦点的 output 以及在输出级别操作还是在视图级别操作等状态的信息。
destroy()
此请求表明客户端将不再使用 river_seat_status 对象。
在绑定接口时发送一次,之后在 seat 的 output 焦点改变时再次发送。
Sent whenever an output loses focus.
focused_view(title: string)
参数 | 类型 | 描述 |
|---|---|---|
| title | string | title of the focused view |
Sent once on binding the interface and again whenever the focused view or a property thereof changes. The title may be an empty string if no view is focused or the focused view did not set a title.
合成器支持
Cage | COSMIC | GameScope | Hyprland | Jay | KWin | Labwc | Louvre | Mir | Muffin | Mutter | niri | phoc | river | Sway | Treeland | Wayfire | Weston | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| zriver_status_manager_v1 | x | x | x | x | x | x | x | x | x | x | x | x | x | 4 | x | x | x | x |
Copyright
Copyright 2020 The River Developers
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.