pub struct Output {
pub name: String,
pub active: bool,
pub primary: bool,
pub current_workspace: Option<String>,
pub rect: (i32, i32, i32, i32),
}
Expand description
A single output (display)
Fields§
§name: String
The name of this output (as seen in xrandr).
active: bool
Whether the output is currently active (has a valid mode).
primary: bool
Whether the output is currently the primary output.
current_workspace: Option<String>
The name of the current workspace that is visible on this output. None if the output is not active.
rect: (i32, i32, i32, i32)
The rectangle of this output (equals the rect of the output it is on), consists of x, y, width, height.