Skip to main content

leftwm_core/config/
workspace_config.rs

1use serde::{Deserialize, Serialize};
2
3#[derive(Serialize, Default, Deserialize, Debug, Clone, PartialEq)]
4pub struct Workspace {
5    pub x: i32,
6    pub y: i32,
7    pub height: i32,
8    pub width: i32,
9    pub output: String,
10    pub relative: Option<bool>,
11    pub layouts: Option<Vec<String>>,
12    /// The default layout from the config; introduced in 0.5.4
13    #[serde(default)]
14    pub default_layout: Option<String>,
15}