docs(config): encode defaults of unwrapped options into schema

This commit ensures that the various default values that the different
Option<T> config properties can be unwrapped to are encoded by schemars
so that they can be picked up by docgen and nixgen.
This commit is contained in:
LGUG2Z committed 2025-12-26 15:19:33 -08:00
1 parent 4e66b46e87
commit f290c7e037
16 files changed
+683 -456

No files matched your search

+4 -4
View File
@@ -45,10 +45,10 @@ deadlock $RUST_LOG="trace":
cargo run --bin komorebi --locked --no-default-features --features deadlock_detection
docgen starlight:
rm {{starlight}}/src/data/cli/macos/*.md
cargo run --package komorebic -- docgen --output {{starlight}}/src/data/cli/macos
schemars-docgen ./schema.json --output {{starlight}}/src/content/docs/reference/komorebi-macos.mdx --format mdx --title "komorebi.json (macOS)" --description "komorebi for Mac configuration schema reference"
schemars-docgen ./schema.bar.json --output {{starlight}}/src/content/docs/reference/bar-macos.mdx --format mdx --title "komorebi.bar.json (macOS)" --description "komorebi-bar for Mac configuration schema reference"
rm {{ starlight }}/src/data/cli/macos/*.md
cargo run --package komorebic -- docgen --output {{ starlight }}/src/data/cli/macos
schemars-docgen ./schema.json --output {{ starlight }}/src/content/docs/reference/komorebi-macos.mdx --format mdx --title "komorebi.json (macOS)" --description "komorebi for Mac configuration schema reference"
schemars-docgen ./schema.bar.json --output {{ starlight }}/src/content/docs/reference/bar-macos.mdx --format mdx --title "komorebi.bar.json (macOS)" --description "komorebi-bar for Mac configuration schema reference"
jsonschema:
cargo run --package komorebic -- static-config-schema > schema.json
+31 -18
View File
@@ -13,20 +13,30 @@ use serde::Serialize;
use std::collections::HashMap;
use std::path::PathBuf;
mod defaults {
pub const HEIGHT: f32 = 50.0;
pub const FONT_SIZE: f32 = 12.5;
pub const ICON_SCALE: f32 = 1.4;
pub const MAX_LABEL_WIDTH: f32 = 400.0;
pub const TRANSPARENCY_ALPHA: u8 = 200;
pub const WIDGET_SPACING: f32 = 10.0;
}
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
/// The `komorebi.bar.json` static configuration file reference for komorebi for Mac `v0.1.0`
///
/// `"$schema": "https://komorebi-for-mac.lgug2z.com/komorebi.bar.0.1.0.schema.json"`
pub struct KomobarConfig {
/// Bar height (default: 50)
/// Bar height
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::HEIGHT)))]
pub height: Option<f32>,
/// Bar padding. Use one value for all sides or use a grouped padding for horizontal and/or
/// vertical definition which can each take a single value for a symmetric padding or two
/// values for each side, i.e.:
/// ```json
/// "padding": {
/// "horizontal": 10
/// "horizontal": 10.0
/// }
/// ```
/// or:
@@ -38,20 +48,19 @@ pub struct KomobarConfig {
/// You can also set individual padding on each side like this:
/// ```json
/// "padding": {
/// "top": 10,
/// "bottom": 10,
/// "left": 10,
/// "right": 10,
/// "top": 10.0,
/// "bottom": 10.0,
/// "left": 10.0,
/// "right": 10.0
/// }
/// ```
/// By default, padding is set to 10 on all sides.
pub padding: Option<Padding>,
/// Bar margin. Use one value for all sides or use a grouped margin for horizontal and/or
/// vertical definition which can each take a single value for a symmetric margin or two
/// values for each side, i.e.:
/// ```json
/// "margin": {
/// "horizontal": 10
/// "horizontal": 10.0
/// }
/// ```
/// or:
@@ -63,13 +72,12 @@ pub struct KomobarConfig {
/// You can also set individual margin on each side like this:
/// ```json
/// "margin": {
/// "top": 10,
/// "bottom": 10,
/// "left": 10,
/// "right": 10,
/// "top": 10.0,
/// "bottom": 10.0,
/// "left": 10.0,
/// "right": 10.0
/// }
/// ```
/// By default, margin is set to 0 on all sides.
pub margin: Option<Margin>,
/// Bar positioning options
#[serde(alias = "viewport")]
@@ -80,17 +88,22 @@ pub struct KomobarConfig {
pub monitor: MonitorConfigOrIndex,
/// Font family
pub font_family: Option<String>,
/// Font size (default: 12.5)
/// Font size
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::FONT_SIZE)))]
pub font_size: Option<f32>,
/// Scale of the icons relative to the font_size [[1.0-2.0]]. (default: 1.4)
/// Scale of the icons relative to the font_size [[1.0-2.0]]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::ICON_SCALE)))]
pub icon_scale: Option<f32>,
/// Max label width before text truncation (default: 400.0)
/// Max label width before text truncation
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::MAX_LABEL_WIDTH)))]
pub max_label_width: Option<f32>,
/// Theme
pub theme: Option<KomobarTheme>,
/// Alpha value for the color transparency [[0-255]] (default: 200)
/// Alpha value for the color transparency [[0-255]]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::TRANSPARENCY_ALPHA)))]
pub transparency_alpha: Option<u8>,
/// Spacing between widgets (default: 10.0)
/// Spacing between widgets
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::WIDGET_SPACING)))]
pub widget_spacing: Option<f32>,
/// Visual grouping for widgets
pub grouping: Option<Grouping>,
+7 -2
View File
@@ -24,6 +24,10 @@ use std::sync::atomic::Ordering;
static SHOW_KOMOREBI_LAYOUT_OPTIONS: AtomicUsize = AtomicUsize::new(0);
mod defaults {
pub const TRANSPARENCY_ALPHA: u8 = 200;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(tag = "kind")]
@@ -359,7 +363,8 @@ impl RenderConfig {
pub struct GroupingConfig {
/// Styles for the grouping
pub style: Option<GroupingStyle>,
/// Alpha value for the color transparency [[0-255]] (default: 200)
/// Alpha value for the color transparency [[0-255]]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::TRANSPARENCY_ALPHA)))]
pub transparency_alpha: Option<u8>,
/// Rounding values for the 4 corners. Can be a single or 4 values.
pub rounding: Option<RoundingConfig>,
@@ -390,7 +395,7 @@ pub enum GroupingStyle {
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
#[serde(untagged)]
pub enum RoundingConfig {
/// All 4 corners are the same
/// All 4 corners are the same
Same(f32),
/// All 4 corners are custom. Order: NW, NE, SW, SE
Individual([f32; 4]),
+6 -1
View File
@@ -17,6 +17,10 @@ use std::process::Command;
use std::time::Duration;
use std::time::Instant;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 10;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct BatteryConfig {
@@ -24,7 +28,8 @@ pub struct BatteryConfig {
pub enable: bool,
/// Hide the widget if the battery is at full charge
pub hide_on_full_charge: Option<bool>,
/// Data refresh interval (default: 10 seconds)
/// Data refresh interval in seconds
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
+6 -1
View File
@@ -16,12 +16,17 @@ use std::time::Instant;
use sysinfo::RefreshKind;
use sysinfo::System;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 10;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct CpuConfig {
/// Enable the Cpu widget
pub enable: bool,
/// Data refresh interval (default: 10 seconds)
/// Data refresh interval in seconds
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
+1 -1
View File
@@ -27,7 +27,7 @@ const ERROR_TEXT: &str = "Error";
pub struct KeyboardConfig {
/// Enable the Input widget
pub enable: bool,
/// Data refresh interval (default: 1 second)
/// Data refresh interval in seconds
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
+6 -1
View File
@@ -16,12 +16,17 @@ use std::time::Instant;
use sysinfo::RefreshKind;
use sysinfo::System;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 10;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct MemoryConfig {
/// Enable the Memory widget
pub enable: bool,
/// Data refresh interval (default: 10 seconds)
/// Data refresh interval in seconds
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
+6 -1
View File
@@ -24,6 +24,10 @@ use std::time::Duration;
use std::time::Instant;
use sysinfo::Networks;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 10;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct NetworkConfig {
@@ -40,7 +44,8 @@ pub struct NetworkConfig {
/// Characters to reserve for received and transmitted activity
#[serde(alias = "network_activity_fill_characters")]
pub activity_left_padding: Option<usize>,
/// Data refresh interval (default: 10 seconds)
/// Data refresh interval in seconds
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
+12 -3
View File
@@ -16,18 +16,27 @@ use std::time::Duration;
use std::time::Instant;
use sysinfo::Disks;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 10;
pub const SHOW_READ_ONLY_DISKS: bool = false;
pub const SHOW_REMOVABLE_DISKS: bool = true;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct StorageConfig {
/// Enable the Storage widget
pub enable: bool,
/// Data refresh interval (default: 10 seconds)
/// Data refresh interval in seconds
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
/// Show disks that are read only. (default: false)
/// Show disks that are read only
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::SHOW_READ_ONLY_DISKS)))]
pub show_read_only_disks: Option<bool>,
/// Show removable disks. (default: true)
/// Show removable disks
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::SHOW_REMOVABLE_DISKS)))]
pub show_removable_disks: Option<bool>,
/// Select when the current percentage is over this value [[1-100]]
pub auto_select_over: Option<u8>,
+6 -1
View File
@@ -23,6 +23,10 @@ use serde::Serialize;
use std::time::Duration;
use std::time::Instant;
mod defaults {
pub const CHANGING_ICON: bool = false;
}
lazy_static! {
static ref TIME_RANGES: Vec<(&'static str, NaiveTime)> = {
vec![
@@ -92,7 +96,8 @@ pub struct TimeConfig {
///}
/// ```
pub timezone: Option<String>,
/// Change the icon depending on the time. The default icon is used between 8:30 and 12:00. (default: false)
/// Change the icon depending on the time. The default icon is used between 8:30 and 12:00
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::CHANGING_ICON)))]
pub changing_icon: Option<bool>,
}
+7 -2
View File
@@ -14,12 +14,17 @@ use std::process::Command;
use std::time::Duration;
use std::time::Instant;
mod defaults {
pub const DATA_REFRESH_INTERVAL: u64 = 12;
}
#[derive(Copy, Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct UpdateConfig {
/// Enable the Update widget
pub enable: bool,
/// Data refresh interval (default: 12 hours)
/// Data refresh interval in hours
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DATA_REFRESH_INTERVAL)))]
pub data_refresh_interval: Option<u64>,
/// Display label prefix
pub label_prefix: Option<LabelPrefix>,
@@ -33,7 +38,7 @@ impl From<UpdateConfig> for Update {
let client = reqwest::blocking::Client::new();
if let Ok(response) = client
.get("https://api.github.com/repos/LGUG2Z/komorebi/releases/latest")
.get("https://api.github.com/repos/LGUG2Z/komorebi-for-mac/releases/latest")
.header("User-Agent", "komorebi-bar-version-checker")
.send()
{
+176 -81
View File
@@ -71,6 +71,27 @@ use std::path::PathBuf;
use std::sync::Arc;
use std::sync::atomic::Ordering;
mod defaults {
pub const RESIZE_DELTA: i32 = 50;
pub const BORDER_WIDTH: i32 = 6;
pub const BORDER_OFFSET: i32 = 5;
pub const BORDER_RADIUS: i32 = 10;
pub const BORDER_ENABLED: bool = true;
pub const MOUSE_FOLLOWS_FOCUS: bool = true;
pub const FLOAT_OVERRIDE: bool = false;
pub const DEFAULT_WORKSPACE_PADDING: i32 = 10;
pub const DEFAULT_CONTAINER_PADDING: i32 = 10;
// MonitorConfig defaults
pub const WINDOW_BASED_WORK_AREA_OFFSET_LIMIT: isize = 1;
// WorkspaceConfig defaults
pub const APPLY_WINDOW_BASED_WORK_AREA_OFFSET: bool = true;
pub const TILE: bool = true;
// Wallpaper defaults
pub const GENERATE_THEME: bool = true;
// AnimationsConfig defaults
pub const ANIMATION_FPS: u64 = 60;
}
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct BorderColours {
@@ -97,26 +118,33 @@ pub struct BorderColours {
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct ThemeOptions {
/// Specify Light or Dark variant for theme generation (default: Dark)
/// Specify Light or Dark variant for theme generation
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::ThemeVariant::Dark)))]
pub theme_variant: Option<komorebi_themes::ThemeVariant>,
/// Border colour when the container contains a single window (default: Base0D)
/// Border colour when the container contains a single window
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
pub single_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container contains multiple windows (default: Base0B)
/// Border colour when the container contains multiple windows
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0B)))]
pub stack_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is in monocle mode (default: Base0F)
/// Border colour when the container is in monocle mode
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0F)))]
pub monocle_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the window is floating (default: Base09)
/// Border colour when the window is floating
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base09)))]
pub floating_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused (default: Base01)
/// Border colour when the container is unfocused
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base01)))]
pub unfocused_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused and locked (default: Base08)
/// Border colour when the container is unfocused and locked
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base08)))]
pub unfocused_locked_border: Option<komorebi_themes::Base16Value>,
// /// Stackbar focused tab text colour (default: Base0B)
// #[serde(skip_serializing_if = "Option::is_none")]
@@ -127,8 +155,9 @@ pub struct ThemeOptions {
// /// Stackbar tab background colour (default: Base01)
// #[serde(skip_serializing_if = "Option::is_none")]
// pub stackbar_background: Option<komorebi_themes::Base16Value>,
/// Komorebi status bar accent (default: Base0D)
/// Komorebi status bar accent
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
pub bar_accent: Option<komorebi_themes::Base16Value>,
}
@@ -139,10 +168,11 @@ pub struct Wallpaper {
/// Path to the wallpaper image file
#[serde_as(as = "ResolvedPathBuf")]
pub path: PathBuf,
/// Generate and apply Base16 theme for this wallpaper (default: true)
/// Generate and apply Base16 theme for this wallpaper
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::GENERATE_THEME)))]
pub generate_theme: Option<bool>,
/// Specify Light or Dark variant for theme generation (default: Dark)
/// Specify theme options
#[serde(skip_serializing_if = "Option::is_none")]
pub theme_options: Option<ThemeOptions>,
}
@@ -154,17 +184,18 @@ pub struct Wallpaper {
pub struct WorkspaceConfig {
/// Name
pub name: String,
/// Layout (default: BSP)
/// Layout
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = DefaultLayout::BSP)))]
pub layout: Option<DefaultLayout>,
/// Layout-specific options (default: None)
/// Layout-specific options
#[serde(skip_serializing_if = "Option::is_none")]
pub layout_options: Option<LayoutOptions>,
// /// END OF LIFE FEATURE: Custom Layout (default: None)
// #[serde(skip_serializing_if = "Option::is_none")]
// #[serde_as(as = "Option<ResolvedPathBuf>")]
// pub custom_layout: Option<PathBuf>,
/// Layout rules in the format of threshold => layout (default: None)
/// Layout rules in the format of threshold => layout
#[serde(skip_serializing_if = "Option::is_none")]
pub layout_rules: Option<HashMap<usize, DefaultLayout>>,
/// Container padding (default: global)
@@ -179,29 +210,34 @@ pub struct WorkspaceConfig {
/// Permanent workspace application rules
#[serde(skip_serializing_if = "Option::is_none")]
pub workspace_rules: Option<Vec<MatchingRule>>,
/// Workspace specific work area offset (default: None)
/// Workspace specific work area offset
#[serde(skip_serializing_if = "Option::is_none")]
pub work_area_offset: Option<Rect>,
/// Apply this monitor's window-based work area offset (default: true)
/// Apply this monitor's window-based work area offset
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::APPLY_WINDOW_BASED_WORK_AREA_OFFSET)))]
pub apply_window_based_work_area_offset: Option<bool>,
/// Determine what happens when a new window is opened (default: Create)
/// Determine what happens when a new window is opened
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = WindowContainerBehaviour::Create)))]
pub window_container_behaviour: Option<WindowContainerBehaviour>,
/// Window container behaviour rules in the format of threshold => behaviour (default: None)
/// Window container behaviour rules in the format of threshold => behaviour
#[serde(skip_serializing_if = "Option::is_none")]
pub window_container_behaviour_rules: Option<HashMap<usize, WindowContainerBehaviour>>,
/// Enable or disable float override, which makes it so every new window opens in floating mode (default: false)
/// Enable or disable float override, which makes it so every new window opens in floating mode
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::FLOAT_OVERRIDE)))]
pub float_override: Option<bool>,
/// Enable or disable tiling for the workspace (default: true)
/// Enable or disable tiling for the workspace
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::TILE)))]
pub tile: Option<bool>,
/// Specify an axis on which to flip the selected layout (default: None)
/// Specify an axis on which to flip the selected layout
#[serde(skip_serializing_if = "Option::is_none")]
pub layout_flip: Option<Axis>,
/// Determine what happens to a new window when the Floating workspace layer is active (default: Tile)
/// Determine what happens to a new window when the Floating workspace layer is active
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = FloatingLayerBehaviour::Tile)))]
pub floating_layer_behaviour: Option<FloatingLayerBehaviour>,
/// Specify a wallpaper for this workspace
#[serde(skip_serializing_if = "Option::is_none")]
@@ -295,16 +331,17 @@ impl From<&Workspace> for WorkspaceConfig {
pub struct MonitorConfig {
/// Workspace configurations
pub workspaces: Vec<WorkspaceConfig>,
/// Monitor-specific work area offset (default: None)
/// Monitor-specific work area offset
#[serde(skip_serializing_if = "Option::is_none")]
pub work_area_offset: Option<Rect>,
/// Window based work area offset (default: None)
/// Window based work area offset
#[serde(skip_serializing_if = "Option::is_none")]
pub window_based_work_area_offset: Option<Rect>,
/// Open window limit after which the window based work area offset will no longer be applied (default: 1)
/// Open window limit after which the window based work area offset will no longer be applied
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::WINDOW_BASED_WORK_AREA_OFFSET_LIMIT)))]
pub window_based_work_area_offset_limit: Option<isize>,
/// Container padding (default: global)
/// Container padding
#[serde(skip_serializing_if = "Option::is_none")]
pub container_padding: Option<i32>,
/// Workspace padding (default: global)
@@ -313,8 +350,9 @@ pub struct MonitorConfig {
/// Specify a wallpaper for this monitor
#[serde(skip_serializing_if = "Option::is_none")]
pub wallpaper: Option<Wallpaper>,
/// Determine what happens to a new window when the Floating workspace layer is active (default: Tile)
/// Determine what happens to a new window when the Floating workspace layer is active
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = FloatingLayerBehaviour::Tile)))]
pub floating_layer_behaviour: Option<FloatingLayerBehaviour>,
/// Determine which position windows should be hidden at on this monitor
#[serde(skip_serializing_if = "Option::is_none")]
@@ -385,64 +423,75 @@ pub struct StaticConfig {
// /// DISCOURAGED: Minimum height for a window to be eligible for tiling
// #[serde(skip_serializing_if = "Option::is_none")]
// pub minimum_window_height: Option<i32>,
/// Delta to resize windows by (default 50)
/// Delta to resize windows by
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::RESIZE_DELTA)))]
pub resize_delta: Option<i32>,
/// Determine what happens when a new window is opened (default: Create)
/// Determine what happens when a new window is opened
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = WindowContainerBehaviour::Create)))]
pub window_container_behaviour: Option<WindowContainerBehaviour>,
/// Enable or disable float override, which makes it so every new window opens in floating mode
/// (default: false)
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::FLOAT_OVERRIDE)))]
pub float_override: Option<bool>,
/// Determines what happens on a new window when on the `FloatingLayer`
/// (default: Tile)
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = FloatingLayerBehaviour::Tile)))]
pub floating_layer_behaviour: Option<FloatingLayerBehaviour>,
/// Determines the placement of a new window when toggling to float (default: CenterAndResize)
/// Determines the placement of a new window when toggling to float
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = Placement::CenterAndResize)))]
pub toggle_float_placement: Option<Placement>,
/// Determines the `Placement` to be used when spawning a window on the floating layer with the
/// `FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float` (default: Center)
/// `FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float`
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = Placement::Center)))]
pub floating_layer_placement: Option<Placement>,
/// Determines the `Placement` to be used when spawning a window with float override active
/// (default: None)
#[serde(skip_serializing_if = "Option::is_none")]
pub float_override_placement: Option<Placement>,
/// Determines the `Placement` to be used when spawning a window that matches a
/// 'floating_applications' rule (default: None)
/// 'floating_applications' rule
#[serde(skip_serializing_if = "Option::is_none")]
pub float_rule_placement: Option<Placement>,
/// Determine what happens when a window is moved across a monitor boundary (default: Swap)
/// Determine what happens when a window is moved across a monitor boundary
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = MoveBehaviour::Swap)))]
pub cross_monitor_move_behaviour: Option<MoveBehaviour>,
/// Determine what happens when an action is called on a window at a monitor boundary (default: Monitor)
/// Determine what happens when an action is called on a window at a monitor boundary
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = CrossBoundaryBehaviour::Monitor)))]
pub cross_boundary_behaviour: Option<CrossBoundaryBehaviour>,
/// Determine what happens when commands are sent while an unmanaged window is in the foreground (default: Op)
/// Determine what happens when commands are sent while an unmanaged window is in the foreground
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = OperationBehaviour::Op)))]
pub unmanaged_window_operation_behaviour: Option<OperationBehaviour>,
/// Enable or disable mouse follows focus (default: true)
/// Enable or disable mouse follows focus
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::MOUSE_FOLLOWS_FOCUS)))]
pub mouse_follows_focus: Option<bool>,
/// Path to applications.json from komorebi-application-specific-configurations (default: None)
/// Path to applications.json from komorebi-application-specific-configurations
#[serde(skip_serializing_if = "Option::is_none")]
pub app_specific_configuration_path: Option<AppSpecificConfigurationPath>,
/// Width of window borders (default: 6)
/// Width of window borders
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(alias = "active_window_border_width")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::BORDER_WIDTH)))]
pub border_width: Option<i32>,
/// Offset of window borders (default: 5)
/// Offset of window borders
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(alias = "active_window_border_offset")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::BORDER_OFFSET)))]
pub border_offset: Option<i32>,
/// Radius of window borders (default: 10)
/// Radius of window borders
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::BORDER_RADIUS)))]
pub border_radius: Option<i32>,
/// Display window borders (default: true)
/// Display window borders
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(alias = "active_window_border")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::BORDER_ENABLED)))]
pub border: Option<bool>,
/// Window border colours for different container types (has no effect if a theme is defined)
#[serde(skip_serializing_if = "Option::is_none")]
@@ -455,7 +504,7 @@ pub struct StaticConfig {
// /// Active window border implementation (default: Komorebi)
// #[serde(skip_serializing_if = "Option::is_none")]
// pub border_implementation: Option<BorderImplementation>,
/// Add transparency to unfocused windows (default: false)
// /// Add transparency to unfocused windows (default: false)
// #[serde(skip_serializing_if = "Option::is_none")]
// pub transparency: Option<bool>,
// /// Alpha value for unfocused window transparency [[0-255]] (default: 200)
@@ -464,11 +513,13 @@ pub struct StaticConfig {
// /// Individual window transparency ignore rules
// #[serde(skip_serializing_if = "Option::is_none")]
// pub transparency_ignore_rules: Option<Vec<MatchingRule>>,
/// Global default workspace padding (default: 10)
/// Global default workspace padding
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DEFAULT_WORKSPACE_PADDING)))]
pub default_workspace_padding: Option<i32>,
/// Global default container padding (default: 10)
/// Global default container padding
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::DEFAULT_CONTAINER_PADDING)))]
pub default_container_padding: Option<i32>,
/// Monitor and workspace configurations
#[serde(skip_serializing_if = "Option::is_none")]
@@ -476,7 +527,7 @@ pub struct StaticConfig {
// /// Which Windows signal to use when hiding windows (default: Cloak)
// #[serde(skip_serializing_if = "Option::is_none")]
// pub window_hiding_behaviour: Option<HidingBehaviour>,
/// Global work area (space used for tiling) offset (default: None)
/// Global work area (space used for tiling) offset
#[serde(skip_serializing_if = "Option::is_none")]
pub global_work_area_offset: Option<Rect>,
/// Individual window floating rules
@@ -544,16 +595,20 @@ pub struct StaticConfig {
#[derive(Clone, Debug, Serialize, Deserialize, PartialEq)]
#[cfg_attr(feature = "schemars", derive(schemars::JsonSchema))]
pub struct AnimationsConfig {
/// Enable or disable animations (default: false)
/// Enable or disable animations
#[cfg_attr(feature = "schemars", schemars(extend("default" = PerAnimationPrefixConfig::Global(false))))]
pub enabled: PerAnimationPrefixConfig<bool>,
/// Set the animation duration in ms (default: 250)
/// Set the animation duration in ms
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = PerAnimationPrefixConfig::Global(250))))]
pub duration: Option<PerAnimationPrefixConfig<u64>>,
/// Set the animation style (default: Linear)
/// Set the animation style
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = PerAnimationPrefixConfig::Global(AnimationStyle::Linear))))]
pub style: Option<PerAnimationPrefixConfig<AnimationStyle>>,
/// Set the animation FPS (default: 60)
/// Set the animation FPS
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = defaults::ANIMATION_FPS)))]
pub fps: Option<u64>,
}
@@ -565,23 +620,29 @@ pub enum KomorebiTheme {
Catppuccin {
/// Name of the Catppuccin theme (theme previews: https://github.com/catppuccin/catppuccin)
name: komorebi_themes::Catppuccin,
/// Border colour when the container contains a single window (default: Blue)
/// Border colour when the container contains a single window
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Blue)))]
single_border: Option<komorebi_themes::CatppuccinValue>,
/// Border colour when the container contains multiple windows (default: Green)
/// Border colour when the container contains multiple windows
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Green)))]
stack_border: Option<komorebi_themes::CatppuccinValue>,
/// Border colour when the container is in monocle mode (default: Pink)
/// Border colour when the container is in monocle mode
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Pink)))]
monocle_border: Option<komorebi_themes::CatppuccinValue>,
/// Border colour when the window is floating (default: Yellow)
/// Border colour when the window is floating
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Yellow)))]
floating_border: Option<komorebi_themes::CatppuccinValue>,
/// Border colour when the container is unfocused (default: Base)
/// Border colour when the container is unfocused
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Base)))]
unfocused_border: Option<komorebi_themes::CatppuccinValue>,
/// Border colour when the container is unfocused and locked (default: Red)
/// Border colour when the container is unfocused and locked
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Red)))]
unfocused_locked_border: Option<komorebi_themes::CatppuccinValue>,
// /// Stackbar focused tab text colour (default: Green)
// #[serde(skip_serializing_if = "Option::is_none")]
@@ -592,31 +653,38 @@ pub enum KomorebiTheme {
// /// Stackbar tab background colour (default: Base)
// #[serde(skip_serializing_if = "Option::is_none")]
// stackbar_background: Option<komorebi_themes::CatppuccinValue>,
/// Komorebi status bar accent (default: Blue)
/// Komorebi status bar accent
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::CatppuccinValue::Blue)))]
bar_accent: Option<komorebi_themes::CatppuccinValue>,
},
/// A theme from base16-egui-themes
Base16 {
/// Name of the Base16 theme (theme previews: https://tinted-theming.github.io/tinted-gallery/)
name: komorebi_themes::Base16,
/// Border colour when the container contains a single window (default: Base0D)
/// Border colour when the container contains a single window
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
single_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container contains multiple windows (default: Base0B)
/// Border colour when the container contains multiple windows
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0B)))]
stack_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is in monocle mode (default: Base0F)
/// Border colour when the container is in monocle mode
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0F)))]
monocle_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the window is floating (default: Base09)
/// Border colour when the window is floating
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base09)))]
floating_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused (default: Base01)
/// Border colour when the container is unfocused
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base01)))]
unfocused_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused and locked (default: Base08)
/// Border colour when the container is unfocused and locked
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base08)))]
unfocused_locked_border: Option<komorebi_themes::Base16Value>,
// /// Stackbar focused tab text colour (default: Base0B)
// #[serde(skip_serializing_if = "Option::is_none")]
@@ -627,31 +695,38 @@ pub enum KomorebiTheme {
// /// Stackbar tab background colour (default: Base01)
// #[serde(skip_serializing_if = "Option::is_none")]
// stackbar_background: Option<komorebi_themes::Base16Value>,
/// Komorebi status bar accent (default: Base0D)
/// Komorebi status bar accent
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
bar_accent: Option<komorebi_themes::Base16Value>,
},
/// A custom Base16 theme
Custom {
/// Colours of the custom Base16 theme palette
colours: Box<komorebi_themes::Base16ColourPalette>,
/// Border colour when the container contains a single window (default: Base0D)
/// Border colour when the container contains a single window
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
single_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container contains multiple windows (default: Base0B)
/// Border colour when the container contains multiple windows
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0B)))]
stack_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is in monocle mode (default: Base0F)
/// Border colour when the container is in monocle mode
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0F)))]
monocle_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the window is floating (default: Base09)
/// Border colour when the window is floating
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base09)))]
floating_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused (default: Base01)
/// Border colour when the container is unfocused
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base01)))]
unfocused_border: Option<komorebi_themes::Base16Value>,
/// Border colour when the container is unfocused and locked (default: Base08)
/// Border colour when the container is unfocused and locked
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base08)))]
unfocused_locked_border: Option<komorebi_themes::Base16Value>,
// /// Stackbar focused tab text colour (default: Base0B)
// #[serde(skip_serializing_if = "Option::is_none")]
@@ -662,8 +737,9 @@ pub enum KomorebiTheme {
// /// Stackbar tab background colour (default: Base01)
// #[serde(skip_serializing_if = "Option::is_none")]
// stackbar_background: Option<komorebi_themes::Base16Value>,
/// Komorebi status bar accent (default: Base0D)
/// Komorebi status bar accent
#[serde(skip_serializing_if = "Option::is_none")]
#[cfg_attr(feature = "schemars", schemars(extend("default" = komorebi_themes::Base16Value::Base0D)))]
bar_accent: Option<komorebi_themes::Base16Value>,
},
}
@@ -895,10 +971,22 @@ impl StaticConfig {
DEFAULT_WORKSPACE_PADDING.store(workspace, Ordering::SeqCst);
}
border_manager::BORDER_WIDTH.store(self.border_width.unwrap_or(6), Ordering::SeqCst);
border_manager::BORDER_OFFSET.store(self.border_offset.unwrap_or(5), Ordering::SeqCst);
border_manager::BORDER_RADIUS.store(self.border_radius.unwrap_or(10), Ordering::SeqCst);
border_manager::BORDER_ENABLED.store(self.border.unwrap_or(true), Ordering::SeqCst);
border_manager::BORDER_WIDTH.store(
self.border_width.unwrap_or(defaults::BORDER_WIDTH),
Ordering::SeqCst,
);
border_manager::BORDER_OFFSET.store(
self.border_offset.unwrap_or(defaults::BORDER_OFFSET),
Ordering::SeqCst,
);
border_manager::BORDER_RADIUS.store(
self.border_radius.unwrap_or(defaults::BORDER_RADIUS),
Ordering::SeqCst,
);
border_manager::BORDER_ENABLED.store(
self.border.unwrap_or(defaults::BORDER_ENABLED),
Ordering::SeqCst,
);
if let Some(colours) = &self.border_colours {
if let Some(single) = colours.single {
@@ -1182,8 +1270,10 @@ impl StaticConfig {
unmanaged_window_operation_behaviour: value
.unmanaged_window_operation_behaviour
.unwrap_or(OperationBehaviour::Op),
resize_delta: value.resize_delta.unwrap_or(50),
mouse_follows_focus: value.mouse_follows_focus.unwrap_or(true),
resize_delta: value.resize_delta.unwrap_or(defaults::RESIZE_DELTA),
mouse_follows_focus: value
.mouse_follows_focus
.unwrap_or(defaults::MOUSE_FOLLOWS_FOCUS),
hotwatch: Hotwatch::new()?,
run_loop: CoreFoundationRunLoop(run_loop.clone()),
minimized_windows: HashMap::new(),
@@ -1526,7 +1616,10 @@ impl StaticConfig {
wm.enforce_workspace_rules()?;
border_manager::BORDER_ENABLED.store(value.border.unwrap_or(true), Ordering::SeqCst);
border_manager::BORDER_ENABLED.store(
value.border.unwrap_or(defaults::BORDER_ENABLED),
Ordering::SeqCst,
);
wm.window_management_behaviour.current_behaviour =
value.window_container_behaviour.unwrap_or_default();
wm.window_management_behaviour.float_override = value.float_override.unwrap_or_default();
@@ -1546,8 +1639,10 @@ impl StaticConfig {
wm.unmanaged_window_operation_behaviour = value
.unmanaged_window_operation_behaviour
.unwrap_or_default();
wm.resize_delta = value.resize_delta.unwrap_or(50);
wm.mouse_follows_focus = value.mouse_follows_focus.unwrap_or(true);
wm.resize_delta = value.resize_delta.unwrap_or(defaults::RESIZE_DELTA);
wm.mouse_follows_focus = value
.mouse_follows_focus
.unwrap_or(defaults::MOUSE_FOLLOWS_FOCUS);
wm.work_area_offset = value.global_work_area_offset;
// wm.focus_follows_mouse = value.focus_follows_mouse;
+54 -54
View File
@@ -232,8 +232,8 @@ let
};
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 10 seconds)";
default = 10;
description = "Data refresh interval in seconds";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -267,8 +267,8 @@ let
};
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 10 seconds)";
default = 10;
description = "Data refresh interval in seconds";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -549,8 +549,8 @@ let
};
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 10 seconds)";
default = 10;
description = "Data refresh interval in seconds";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -611,8 +611,8 @@ let
};
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 10 seconds)";
default = 10;
description = "Data refresh interval in seconds";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -659,8 +659,8 @@ let
};
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 10 seconds)";
default = 10;
description = "Data refresh interval in seconds";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -673,13 +673,13 @@ let
};
show_read_only_disks = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Show disks that are read only. (default: false)";
default = false;
description = "Show disks that are read only";
};
show_removable_disks = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Show removable disks. (default: true)";
default = true;
description = "Show removable disks";
};
};
}
@@ -694,8 +694,8 @@ let
options = {
changing_icon = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Change the icon depending on the time. The default icon is used between 8:30 and 12:00. (default: false)";
default = false;
description = "Change the icon depending on the time. The default icon is used between 8:30 and 12:00";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -747,8 +747,8 @@ let
options = {
data_refresh_interval = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Data refresh interval (default: 12 hours)";
default = 12;
description = "Data refresh interval in hours";
};
enable = lib.mkOption {
type = lib.types.bool;
@@ -785,8 +785,8 @@ in
};
font_size = lib.mkOption {
type = (lib.types.nullOr lib.types.number);
default = null;
description = "Font size (default: 12.5)";
default = 12.5;
description = "Font size";
};
frame = lib.mkOption {
type = (
@@ -828,13 +828,13 @@ in
};
height = lib.mkOption {
type = (lib.types.nullOr lib.types.number);
default = null;
description = "Bar height (default: 50)";
default = 50;
description = "Bar height";
};
icon_scale = lib.mkOption {
type = (lib.types.nullOr lib.types.number);
default = null;
description = "Scale of the icons relative to the font_size [[1.0-2.0]]. (default: 1.4)";
default = 1.4;
description = "Scale of the icons relative to the font_size [[1.0-2.0]]";
};
left_widgets = lib.mkOption {
type = (lib.types.listOf widgetConfig);
@@ -843,12 +843,12 @@ in
margin = lib.mkOption {
type = (lib.types.nullOr spacingKind);
default = null;
description = "Bar margin. Use one value for all sides or use a grouped margin for horizontal and/or\nvertical definition which can each take a single value for a symmetric margin or two\nvalues for each side, i.e.:\n```json\n\"margin\": {\n \"horizontal\": 10\n}\n```\nor:\n```json\n\"margin\": {\n \"vertical\": [top, bottom]\n}\n```\nYou can also set individual margin on each side like this:\n```json\n\"margin\": {\n \"top\": 10,\n \"bottom\": 10,\n \"left\": 10,\n \"right\": 10,\n}\n```\nBy default, margin is set to 0 on all sides.";
description = "Bar margin. Use one value for all sides or use a grouped margin for horizontal and/or\nvertical definition which can each take a single value for a symmetric margin or two\nvalues for each side, i.e.:\n```json\n\"margin\": {\n \"horizontal\": 10.0\n}\n```\nor:\n```json\n\"margin\": {\n \"vertical\": [top, bottom]\n}\n```\nYou can also set individual margin on each side like this:\n```json\n\"margin\": {\n \"top\": 10.0,\n \"bottom\": 10.0,\n \"left\": 10.0,\n \"right\": 10.0\n}\n```";
};
max_label_width = lib.mkOption {
type = (lib.types.nullOr lib.types.number);
default = null;
description = "Max label width before text truncation (default: 400.0)";
default = 400;
description = "Max label width before text truncation";
};
monitor = lib.mkOption {
type = (
@@ -893,7 +893,7 @@ in
padding = lib.mkOption {
type = (lib.types.nullOr spacingKind);
default = null;
description = "Bar padding. Use one value for all sides or use a grouped padding for horizontal and/or\nvertical definition which can each take a single value for a symmetric padding or two\nvalues for each side, i.e.:\n```json\n\"padding\": {\n \"horizontal\": 10\n}\n```\nor:\n```json\n\"padding\": {\n \"horizontal\": [left, right]\n}\n```\nYou can also set individual padding on each side like this:\n```json\n\"padding\": {\n \"top\": 10,\n \"bottom\": 10,\n \"left\": 10,\n \"right\": 10,\n}\n```\nBy default, padding is set to 10 on all sides.";
description = "Bar padding. Use one value for all sides or use a grouped padding for horizontal and/or\nvertical definition which can each take a single value for a symmetric padding or two\nvalues for each side, i.e.:\n```json\n\"padding\": {\n \"horizontal\": 10.0\n}\n```\nor:\n```json\n\"padding\": {\n \"horizontal\": [left, right]\n}\n```\nYou can also set individual padding on each side like this:\n```json\n\"padding\": {\n \"top\": 10.0,\n \"bottom\": 10.0,\n \"left\": 10.0,\n \"right\": 10.0\n}\n```";
};
position = lib.mkOption {
type = (
@@ -935,17 +935,6 @@ in
]
);
};
auto_select_fill = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
name = lib.mkOption {
type = (
lib.types.nullOr (
@@ -1232,17 +1221,6 @@ in
);
default = null;
};
accent = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
colours = lib.mkOption {
type = (
lib.types.nullOr (
@@ -1313,6 +1291,28 @@ in
);
default = null;
};
accent = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
auto_select_fill = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
};
}
)
@@ -1322,13 +1322,13 @@ in
};
transparency_alpha = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Alpha value for the color transparency [[0-255]] (default: 200)";
default = 200;
description = "Alpha value for the color transparency [[0-255]]";
};
widget_spacing = lib.mkOption {
type = (lib.types.nullOr lib.types.number);
default = null;
description = "Spacing between widgets (default: 10.0)";
default = 10;
description = "Spacing between widgets";
};
};
};
+133 -132
View File
@@ -210,8 +210,8 @@ let
options = {
generate_theme = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Generate and apply Base16 theme for this wallpaper (default: true)";
default = true;
description = "Generate and apply Base16 theme for this wallpaper";
};
path = lib.mkOption {
type = pathBuf;
@@ -224,28 +224,28 @@ let
options = {
bar_accent = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Komorebi status bar accent (default: Base0D)";
default = "Base0D";
description = "Komorebi status bar accent";
};
floating_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the window is floating (default: Base09)";
default = "Base09";
description = "Border colour when the window is floating";
};
monocle_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the container is in monocle mode (default: Base0F)";
default = "Base0F";
description = "Border colour when the container is in monocle mode";
};
single_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the container contains a single window (default: Base0D)";
default = "Base0D";
description = "Border colour when the container contains a single window";
};
stack_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the container contains multiple windows (default: Base0B)";
default = "Base0B";
description = "Border colour when the container contains multiple windows";
};
theme_variant = lib.mkOption {
type = (
@@ -256,25 +256,25 @@ let
]
)
);
default = null;
description = "Specify Light or Dark variant for theme generation (default: Dark)";
default = "Dark";
description = "Specify Light or Dark variant for theme generation";
};
unfocused_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the container is unfocused (default: Base01)";
default = "Base01";
description = "Border colour when the container is unfocused";
};
unfocused_locked_border = lib.mkOption {
type = (lib.types.nullOr base16Value);
default = null;
description = "Border colour when the container is unfocused and locked (default: Base08)";
default = "Base08";
description = "Border colour when the container is unfocused and locked";
};
};
}
)
);
default = null;
description = "Specify Light or Dark variant for theme generation (default: Dark)";
description = "Specify theme options";
};
};
}
@@ -304,8 +304,8 @@ in
]
)
);
default = null;
description = "Set the animation duration in ms (default: 250)";
default = 250;
description = "Set the animation duration in ms";
};
enabled = lib.mkOption {
type = (
@@ -314,12 +314,13 @@ in
lib.types.bool
]
);
description = "Enable or disable animations (default: false)";
default = false;
description = "Enable or disable animations";
};
fps = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Set the animation FPS (default: 60)";
default = 60;
description = "Set the animation FPS";
};
style = lib.mkOption {
type = (
@@ -330,8 +331,8 @@ in
]
)
);
default = null;
description = "Set the animation style (default: Linear)";
default = "Linear";
description = "Set the animation style";
};
};
}
@@ -350,12 +351,12 @@ in
)
);
default = null;
description = "Path to applications.json from komorebi-application-specific-configurations (default: None)";
description = "Path to applications.json from komorebi-application-specific-configurations";
};
border = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Display window borders (default: true)";
default = true;
description = "Display window borders";
};
border_colours = lib.mkOption {
type = (
@@ -401,18 +402,18 @@ in
};
border_offset = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Offset of window borders (default: 5)";
default = 5;
description = "Offset of window borders";
};
border_radius = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Radius of window borders (default: 10)";
default = 10;
description = "Radius of window borders";
};
border_width = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Width of window borders (default: 6)";
default = 6;
description = "Width of window borders";
};
cross_boundary_behaviour = lib.mkOption {
type = (
@@ -423,8 +424,8 @@ in
]
)
);
default = null;
description = "Determine what happens when an action is called on a window at a monitor boundary (default: Monitor)";
default = "Monitor";
description = "Determine what happens when an action is called on a window at a monitor boundary";
};
cross_monitor_move_behaviour = lib.mkOption {
type = (
@@ -436,18 +437,18 @@ in
]
)
);
default = null;
description = "Determine what happens when a window is moved across a monitor boundary (default: Swap)";
default = "Swap";
description = "Determine what happens when a window is moved across a monitor boundary";
};
default_container_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Global default container padding (default: 10)";
default = 10;
description = "Global default container padding";
};
default_workspace_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Add transparency to unfocused windows (default: false)\nGlobal default workspace padding (default: 10)";
default = 10;
description = "Global default workspace padding";
};
display_index_preferences = lib.mkOption {
type = (lib.types.nullOr (lib.types.attrsOf lib.types.str));
@@ -456,18 +457,18 @@ in
};
float_override = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Enable or disable float override, which makes it so every new window opens in floating mode\n(default: false)";
default = false;
description = "Enable or disable float override, which makes it so every new window opens in floating mode";
};
float_override_placement = lib.mkOption {
type = (lib.types.nullOr placement);
default = null;
description = "Determines the `Placement` to be used when spawning a window with float override active\n(default: None)";
description = "Determines the `Placement` to be used when spawning a window with float override active";
};
float_rule_placement = lib.mkOption {
type = (lib.types.nullOr placement);
default = null;
description = "Determines the `Placement` to be used when spawning a window that matches a\n'floating_applications' rule (default: None)";
description = "Determines the `Placement` to be used when spawning a window that matches a\n'floating_applications' rule";
};
floating_applications = lib.mkOption {
type = (lib.types.nullOr (lib.types.listOf matchingRule));
@@ -476,13 +477,13 @@ in
};
floating_layer_behaviour = lib.mkOption {
type = (lib.types.nullOr floatingLayerBehaviour);
default = null;
description = "Determines what happens on a new window when on the `FloatingLayer`\n(default: Tile)";
default = "Tile";
description = "Determines what happens on a new window when on the `FloatingLayer`";
};
floating_layer_placement = lib.mkOption {
type = (lib.types.nullOr placement);
default = null;
description = "Determines the `Placement` to be used when spawning a window on the floating layer with the\n`FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float` (default: Center)";
default = "Center";
description = "Determines the `Placement` to be used when spawning a window on the floating layer with the\n`FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float`";
};
floating_window_aspect_ratio = lib.mkOption {
type = (
@@ -503,7 +504,7 @@ in
global_work_area_offset = lib.mkOption {
type = (lib.types.nullOr rect);
default = null;
description = "Global work area (space used for tiling) offset (default: None)";
description = "Global work area (space used for tiling) offset";
};
ignore_rules = lib.mkOption {
type = (lib.types.nullOr (lib.types.listOf matchingRule));
@@ -524,12 +525,12 @@ in
container_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Container padding (default: global)";
description = "Container padding";
};
floating_layer_behaviour = lib.mkOption {
type = (lib.types.nullOr floatingLayerBehaviour);
default = null;
description = "Determine what happens to a new window when the Floating workspace layer is active (default: Tile)";
default = "Tile";
description = "Determine what happens to a new window when the Floating workspace layer is active";
};
wallpaper = lib.mkOption {
type = (lib.types.nullOr wallpaper);
@@ -539,12 +540,12 @@ in
window_based_work_area_offset = lib.mkOption {
type = (lib.types.nullOr rect);
default = null;
description = "Window based work area offset (default: None)";
description = "Window based work area offset";
};
window_based_work_area_offset_limit = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Open window limit after which the window based work area offset will no longer be applied (default: 1)";
default = 1;
description = "Open window limit after which the window based work area offset will no longer be applied";
};
window_hiding_position = lib.mkOption {
type = (
@@ -561,7 +562,7 @@ in
work_area_offset = lib.mkOption {
type = (lib.types.nullOr rect);
default = null;
description = "Monitor-specific work area offset (default: None)";
description = "Monitor-specific work area offset";
};
workspace_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
@@ -575,8 +576,8 @@ in
options = {
apply_window_based_work_area_offset = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Apply this monitor's window-based work area offset (default: true)";
default = true;
description = "Apply this monitor's window-based work area offset";
};
container_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
@@ -585,13 +586,13 @@ in
};
float_override = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Enable or disable float override, which makes it so every new window opens in floating mode (default: false)";
default = false;
description = "Enable or disable float override, which makes it so every new window opens in floating mode";
};
floating_layer_behaviour = lib.mkOption {
type = (lib.types.nullOr floatingLayerBehaviour);
default = null;
description = "Determine what happens to a new window when the Floating workspace layer is active (default: Tile)";
default = "Tile";
description = "Determine what happens to a new window when the Floating workspace layer is active";
};
initial_workspace_rules = lib.mkOption {
type = (lib.types.nullOr (lib.types.listOf matchingRule));
@@ -600,8 +601,8 @@ in
};
layout = lib.mkOption {
type = (lib.types.nullOr defaultLayout);
default = null;
description = "Layout (default: BSP)";
default = "BSP";
description = "Layout";
};
layout_flip = lib.mkOption {
type = (
@@ -614,7 +615,7 @@ in
)
);
default = null;
description = "Specify an axis on which to flip the selected layout (default: None)";
description = "Specify an axis on which to flip the selected layout";
};
layout_options = lib.mkOption {
type = (
@@ -663,12 +664,12 @@ in
)
);
default = null;
description = "Layout-specific options (default: None)";
description = "Layout-specific options";
};
layout_rules = lib.mkOption {
type = (lib.types.nullOr (lib.types.attrsOf defaultLayout));
default = null;
description = "Layout rules in the format of threshold => layout (default: None)";
description = "Layout rules in the format of threshold => layout";
};
name = lib.mkOption {
type = lib.types.str;
@@ -676,8 +677,8 @@ in
};
tile = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Enable or disable tiling for the workspace (default: true)";
default = true;
description = "Enable or disable tiling for the workspace";
};
wallpaper = lib.mkOption {
type = (lib.types.nullOr wallpaper);
@@ -686,18 +687,18 @@ in
};
window_container_behaviour = lib.mkOption {
type = (lib.types.nullOr windowContainerBehaviour);
default = null;
description = "Determine what happens when a new window is opened (default: Create)";
default = "Create";
description = "Determine what happens when a new window is opened";
};
window_container_behaviour_rules = lib.mkOption {
type = (lib.types.nullOr (lib.types.attrsOf windowContainerBehaviour));
default = null;
description = "Window container behaviour rules in the format of threshold => behaviour (default: None)";
description = "Window container behaviour rules in the format of threshold => behaviour";
};
work_area_offset = lib.mkOption {
type = (lib.types.nullOr rect);
default = null;
description = "Workspace specific work area offset (default: None)";
description = "Workspace specific work area offset";
};
workspace_padding = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
@@ -725,13 +726,13 @@ in
};
mouse_follows_focus = lib.mkOption {
type = (lib.types.nullOr lib.types.bool);
default = null;
description = "Enable or disable mouse follows focus (default: true)";
default = true;
description = "Enable or disable mouse follows focus";
};
resize_delta = lib.mkOption {
type = (lib.types.nullOr lib.types.int);
default = null;
description = "Delta to resize windows by (default 50)";
default = 50;
description = "Delta to resize windows by";
};
theme = lib.mkOption {
type = (
@@ -747,6 +748,28 @@ in
]
);
};
single_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
stack_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
colours = lib.mkOption {
type = (
lib.types.nullOr (
@@ -806,18 +829,7 @@ in
);
default = null;
};
floating_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
stack_border = lib.mkOption {
unfocused_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
@@ -839,40 +851,7 @@ in
);
default = null;
};
unfocused_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
unfocused_locked_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
bar_accent = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
single_border = lib.mkOption {
floating_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
@@ -1169,6 +1148,28 @@ in
);
default = null;
};
unfocused_locked_border = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
bar_accent = lib.mkOption {
type = (
lib.types.nullOr (
lib.types.oneOf [
(lib.types.nullOr catppuccinValue)
(lib.types.nullOr base16Value)
]
)
);
default = null;
};
};
}
)
@@ -1178,8 +1179,8 @@ in
};
toggle_float_placement = lib.mkOption {
type = (lib.types.nullOr placement);
default = null;
description = "Determines the placement of a new window when toggling to float (default: CenterAndResize)";
default = "CenterAndResize";
description = "Determines the placement of a new window when toggling to float";
};
unmanaged_window_operation_behaviour = lib.mkOption {
type = (
@@ -1190,13 +1191,13 @@ in
]
)
);
default = null;
description = "Determine what happens when commands are sent while an unmanaged window is in the foreground (default: Op)";
default = "Op";
description = "Determine what happens when commands are sent while an unmanaged window is in the foreground";
};
window_container_behaviour = lib.mkOption {
type = (lib.types.nullOr windowContainerBehaviour);
default = null;
description = "Determine what happens when a new window is opened (default: Create)";
default = "Create";
description = "Determine what happens when a new window is opened";
};
};
};
+42 -26
View File
@@ -22,12 +22,13 @@
]
},
"font_size": {
"description": "Font size (default: 12.5)",
"description": "Font size",
"type": [
"number",
"null"
],
"format": "float"
"format": "float",
"default": 12.5
},
"frame": {
"description": "Frame options (see: https://docs.rs/egui/latest/egui/containers/frame/struct.Frame.html)",
@@ -52,20 +53,22 @@
]
},
"height": {
"description": "Bar height (default: 50)",
"description": "Bar height",
"type": [
"number",
"null"
],
"format": "float"
"format": "float",
"default": 50.0
},
"icon_scale": {
"description": "Scale of the icons relative to the font_size [[1.0-2.0]]. (default: 1.4)",
"description": "Scale of the icons relative to the font_size [[1.0-2.0]]",
"type": [
"number",
"null"
],
"format": "float"
"format": "float",
"default": 1.399999976158142
},
"left_widgets": {
"description": "Options for mouse interaction on the bar\nLeft side widgets (ordered left-to-right)",
@@ -75,7 +78,7 @@
}
},
"margin": {
"description": "Bar margin. Use one value for all sides or use a grouped margin for horizontal and/or\nvertical definition which can each take a single value for a symmetric margin or two\nvalues for each side, i.e.:\n```json\n\"margin\": {\n \"horizontal\": 10\n}\n```\nor:\n```json\n\"margin\": {\n \"vertical\": [top, bottom]\n}\n```\nYou can also set individual margin on each side like this:\n```json\n\"margin\": {\n \"top\": 10,\n \"bottom\": 10,\n \"left\": 10,\n \"right\": 10,\n}\n```\nBy default, margin is set to 0 on all sides.",
"description": "Bar margin. Use one value for all sides or use a grouped margin for horizontal and/or\nvertical definition which can each take a single value for a symmetric margin or two\nvalues for each side, i.e.:\n```json\n\"margin\": {\n \"horizontal\": 10.0\n}\n```\nor:\n```json\n\"margin\": {\n \"vertical\": [top, bottom]\n}\n```\nYou can also set individual margin on each side like this:\n```json\n\"margin\": {\n \"top\": 10.0,\n \"bottom\": 10.0,\n \"left\": 10.0,\n \"right\": 10.0\n}\n```",
"anyOf": [
{
"$ref": "#/$defs/SpacingKind"
@@ -86,19 +89,20 @@
]
},
"max_label_width": {
"description": "Max label width before text truncation (default: 400.0)",
"description": "Max label width before text truncation",
"type": [
"number",
"null"
],
"format": "float"
"format": "float",
"default": 400.0
},
"monitor": {
"description": "The monitor index or the full monitor options",
"$ref": "#/$defs/MonitorConfigOrIndex"
},
"padding": {
"description": "Bar padding. Use one value for all sides or use a grouped padding for horizontal and/or\nvertical definition which can each take a single value for a symmetric padding or two\nvalues for each side, i.e.:\n```json\n\"padding\": {\n \"horizontal\": 10\n}\n```\nor:\n```json\n\"padding\": {\n \"horizontal\": [left, right]\n}\n```\nYou can also set individual padding on each side like this:\n```json\n\"padding\": {\n \"top\": 10,\n \"bottom\": 10,\n \"left\": 10,\n \"right\": 10,\n}\n```\nBy default, padding is set to 10 on all sides.",
"description": "Bar padding. Use one value for all sides or use a grouped padding for horizontal and/or\nvertical definition which can each take a single value for a symmetric padding or two\nvalues for each side, i.e.:\n```json\n\"padding\": {\n \"horizontal\": 10.0\n}\n```\nor:\n```json\n\"padding\": {\n \"horizontal\": [left, right]\n}\n```\nYou can also set individual padding on each side like this:\n```json\n\"padding\": {\n \"top\": 10.0,\n \"bottom\": 10.0,\n \"left\": 10.0,\n \"right\": 10.0\n}\n```",
"anyOf": [
{
"$ref": "#/$defs/SpacingKind"
@@ -138,22 +142,24 @@
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"description": "Alpha value for the color transparency [[0-255]]",
"type": [
"integer",
"null"
],
"format": "uint8",
"default": 200,
"maximum": 255,
"minimum": 0
},
"widget_spacing": {
"description": "Spacing between widgets (default: 10.0)",
"description": "Spacing between widgets",
"type": [
"number",
"null"
],
"format": "float"
"format": "float",
"default": 10.0
}
},
"required": [
@@ -656,12 +662,13 @@
"minimum": 0
},
"data_refresh_interval": {
"description": "Data refresh interval (default: 10 seconds)",
"description": "Data refresh interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 10,
"minimum": 0
},
"enable": {
@@ -757,12 +764,13 @@
"minimum": 0
},
"data_refresh_interval": {
"description": "Data refresh interval (default: 10 seconds)",
"description": "Data refresh interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 10,
"minimum": 0
},
"enable": {
@@ -1080,12 +1088,13 @@
]
},
"transparency_alpha": {
"description": "Alpha value for the color transparency [[0-255]] (default: 200)",
"description": "Alpha value for the color transparency [[0-255]]",
"type": [
"integer",
"null"
],
"format": "uint8",
"default": 200,
"maximum": 255,
"minimum": 0
}
@@ -1609,12 +1618,13 @@
"minimum": 0
},
"data_refresh_interval": {
"description": "Data refresh interval (default: 10 seconds)",
"description": "Data refresh interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 10,
"minimum": 0
},
"enable": {
@@ -1700,12 +1710,13 @@
]
},
"data_refresh_interval": {
"description": "Data refresh interval (default: 10 seconds)",
"description": "Data refresh interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 10,
"minimum": 0
},
"enable": {
@@ -1944,12 +1955,13 @@
"minimum": 0
},
"data_refresh_interval": {
"description": "Data refresh interval (default: 10 seconds)",
"description": "Data refresh interval in seconds",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 10,
"minimum": 0
},
"enable": {
@@ -1968,18 +1980,20 @@
]
},
"show_read_only_disks": {
"description": "Show disks that are read only. (default: false)",
"description": "Show disks that are read only",
"type": [
"boolean",
"null"
]
],
"default": false
},
"show_removable_disks": {
"description": "Show removable disks. (default: true)",
"description": "Show removable disks",
"type": [
"boolean",
"null"
]
],
"default": true
}
},
"required": [
@@ -1990,11 +2004,12 @@
"type": "object",
"properties": {
"changing_icon": {
"description": "Change the icon depending on the time. The default icon is used between 8:30 and 12:00. (default: false)",
"description": "Change the icon depending on the time. The default icon is used between 8:30 and 12:00",
"type": [
"boolean",
"null"
]
],
"default": false
},
"enable": {
"description": "Enable the Time widget",
@@ -2079,12 +2094,13 @@
"type": "object",
"properties": {
"data_refresh_interval": {
"description": "Data refresh interval (default: 12 hours)",
"description": "Data refresh interval in hours",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 12,
"minimum": 0
},
"enable": {
+186 -128
View File
@@ -16,7 +16,7 @@
]
},
"app_specific_configuration_path": {
"description": "Path to applications.json from komorebi-application-specific-configurations (default: None)",
"description": "Path to applications.json from komorebi-application-specific-configurations",
"anyOf": [
{
"$ref": "#/$defs/AppSpecificConfigurationPath"
@@ -27,11 +27,12 @@
]
},
"border": {
"description": "Display window borders (default: true)",
"description": "Display window borders",
"type": [
"boolean",
"null"
]
],
"default": true
},
"border_colours": {
"description": "Window border colours for different container types (has no effect if a theme is defined)",
@@ -45,31 +46,34 @@
]
},
"border_offset": {
"description": "Offset of window borders (default: 5)",
"description": "Offset of window borders",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 5
},
"border_radius": {
"description": "Radius of window borders (default: 10)",
"description": "Radius of window borders",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 10
},
"border_width": {
"description": "Width of window borders (default: 6)",
"description": "Width of window borders",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 6
},
"cross_boundary_behaviour": {
"description": "Determine what happens when an action is called on a window at a monitor boundary (default: Monitor)",
"description": "Determine what happens when an action is called on a window at a monitor boundary",
"anyOf": [
{
"$ref": "#/$defs/CrossBoundaryBehaviour"
@@ -77,10 +81,11 @@
{
"type": "null"
}
]
],
"default": "Monitor"
},
"cross_monitor_move_behaviour": {
"description": "Determine what happens when a window is moved across a monitor boundary (default: Swap)",
"description": "Determine what happens when a window is moved across a monitor boundary",
"anyOf": [
{
"$ref": "#/$defs/MoveBehaviour"
@@ -88,23 +93,26 @@
{
"type": "null"
}
]
],
"default": "Swap"
},
"default_container_padding": {
"description": "Global default container padding (default: 10)",
"description": "Global default container padding",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 10
},
"default_workspace_padding": {
"description": "Add transparency to unfocused windows (default: false)\nGlobal default workspace padding (default: 10)",
"description": "Global default workspace padding",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 10
},
"display_index_preferences": {
"description": "Set display index preferences",
@@ -120,14 +128,15 @@
}
},
"float_override": {
"description": "Enable or disable float override, which makes it so every new window opens in floating mode\n(default: false)",
"description": "Enable or disable float override, which makes it so every new window opens in floating mode",
"type": [
"boolean",
"null"
]
],
"default": false
},
"float_override_placement": {
"description": "Determines the `Placement` to be used when spawning a window with float override active\n(default: None)",
"description": "Determines the `Placement` to be used when spawning a window with float override active",
"anyOf": [
{
"$ref": "#/$defs/Placement"
@@ -138,7 +147,7 @@
]
},
"float_rule_placement": {
"description": "Determines the `Placement` to be used when spawning a window that matches a\n'floating_applications' rule (default: None)",
"description": "Determines the `Placement` to be used when spawning a window that matches a\n'floating_applications' rule",
"anyOf": [
{
"$ref": "#/$defs/Placement"
@@ -159,7 +168,7 @@
}
},
"floating_layer_behaviour": {
"description": "Determines what happens on a new window when on the `FloatingLayer`\n(default: Tile)",
"description": "Determines what happens on a new window when on the `FloatingLayer`",
"anyOf": [
{
"$ref": "#/$defs/FloatingLayerBehaviour"
@@ -167,10 +176,11 @@
{
"type": "null"
}
]
],
"default": "Tile"
},
"floating_layer_placement": {
"description": "Determines the `Placement` to be used when spawning a window on the floating layer with the\n`FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float` (default: Center)",
"description": "Determines the `Placement` to be used when spawning a window on the floating layer with the\n`FloatingLayerBehaviour` set to `FloatingLayerBehaviour::Float`",
"anyOf": [
{
"$ref": "#/$defs/Placement"
@@ -178,7 +188,8 @@
{
"type": "null"
}
]
],
"default": "Center"
},
"floating_window_aspect_ratio": {
"description": "Identify applications which are slow to send initial event notifications\nAspect ratio to resize with when toggling floating mode for a window",
@@ -192,7 +203,7 @@
]
},
"global_work_area_offset": {
"description": "Global work area (space used for tiling) offset (default: None)",
"description": "Global work area (space used for tiling) offset",
"anyOf": [
{
"$ref": "#/$defs/Rect"
@@ -233,19 +244,21 @@
}
},
"mouse_follows_focus": {
"description": "Enable or disable mouse follows focus (default: true)",
"description": "Enable or disable mouse follows focus",
"type": [
"boolean",
"null"
]
],
"default": true
},
"resize_delta": {
"description": "Delta to resize windows by (default 50)",
"description": "Delta to resize windows by",
"type": [
"integer",
"null"
],
"format": "int32"
"format": "int32",
"default": 50
},
"theme": {
"description": "Theme configuration options",
@@ -259,7 +272,7 @@
]
},
"toggle_float_placement": {
"description": "Determines the placement of a new window when toggling to float (default: CenterAndResize)",
"description": "Determines the placement of a new window when toggling to float",
"anyOf": [
{
"$ref": "#/$defs/Placement"
@@ -267,10 +280,11 @@
{
"type": "null"
}
]
],
"default": "CenterAndResize"
},
"unmanaged_window_operation_behaviour": {
"description": "Determine what happens when commands are sent while an unmanaged window is in the foreground (default: Op)",
"description": "Determine what happens when commands are sent while an unmanaged window is in the foreground",
"anyOf": [
{
"$ref": "#/$defs/OperationBehaviour"
@@ -278,10 +292,11 @@
{
"type": "null"
}
]
],
"default": "Op"
},
"window_container_behaviour": {
"description": "Determine what happens when a new window is opened (default: Create)",
"description": "Determine what happens when a new window is opened",
"anyOf": [
{
"$ref": "#/$defs/WindowContainerBehaviour"
@@ -289,7 +304,8 @@
{
"type": "null"
}
]
],
"default": "Create"
}
},
"$defs": {
@@ -369,7 +385,7 @@
"type": "object",
"properties": {
"duration": {
"description": "Set the animation duration in ms (default: 250)",
"description": "Set the animation duration in ms",
"anyOf": [
{
"$ref": "#/$defs/PerAnimationPrefixConfig2"
@@ -377,23 +393,26 @@
{
"type": "null"
}
]
],
"default": 250
},
"enabled": {
"description": "Enable or disable animations (default: false)",
"$ref": "#/$defs/PerAnimationPrefixConfig"
"description": "Enable or disable animations",
"$ref": "#/$defs/PerAnimationPrefixConfig",
"default": false
},
"fps": {
"description": "Set the animation FPS (default: 60)",
"description": "Set the animation FPS",
"type": [
"integer",
"null"
],
"format": "uint64",
"default": 60,
"minimum": 0
},
"style": {
"description": "Set the animation style (default: Linear)",
"description": "Set the animation style",
"anyOf": [
{
"$ref": "#/$defs/PerAnimationPrefixConfig3"
@@ -401,7 +420,8 @@
{
"type": "null"
}
]
],
"default": "Linear"
}
},
"required": [
@@ -1045,7 +1065,7 @@
"type": "object",
"properties": {
"bar_accent": {
"description": "Komorebi status bar accent (default: Blue)",
"description": "Komorebi status bar accent",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1053,10 +1073,11 @@
{
"type": "null"
}
]
],
"default": "Blue"
},
"floating_border": {
"description": "Border colour when the window is floating (default: Yellow)",
"description": "Border colour when the window is floating",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1064,10 +1085,11 @@
{
"type": "null"
}
]
],
"default": "Yellow"
},
"monocle_border": {
"description": "Border colour when the container is in monocle mode (default: Pink)",
"description": "Border colour when the container is in monocle mode",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1075,7 +1097,8 @@
{
"type": "null"
}
]
],
"default": "Pink"
},
"name": {
"description": "Name of the Catppuccin theme (theme previews: https://github.com/catppuccin/catppuccin)",
@@ -1086,7 +1109,7 @@
"const": "Catppuccin"
},
"single_border": {
"description": "Border colour when the container contains a single window (default: Blue)",
"description": "Border colour when the container contains a single window",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1094,10 +1117,11 @@
{
"type": "null"
}
]
],
"default": "Blue"
},
"stack_border": {
"description": "Border colour when the container contains multiple windows (default: Green)",
"description": "Border colour when the container contains multiple windows",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1105,10 +1129,11 @@
{
"type": "null"
}
]
],
"default": "Green"
},
"unfocused_border": {
"description": "Border colour when the container is unfocused (default: Base)",
"description": "Border colour when the container is unfocused",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1116,10 +1141,11 @@
{
"type": "null"
}
]
],
"default": "Base"
},
"unfocused_locked_border": {
"description": "Border colour when the container is unfocused and locked (default: Red)",
"description": "Border colour when the container is unfocused and locked",
"anyOf": [
{
"$ref": "#/$defs/CatppuccinValue"
@@ -1127,7 +1153,8 @@
{
"type": "null"
}
]
],
"default": "Red"
}
},
"required": [
@@ -1140,7 +1167,7 @@
"type": "object",
"properties": {
"bar_accent": {
"description": "Komorebi status bar accent (default: Base0D)",
"description": "Komorebi status bar accent",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1148,10 +1175,11 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"floating_border": {
"description": "Border colour when the window is floating (default: Base09)",
"description": "Border colour when the window is floating",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1159,10 +1187,11 @@
{
"type": "null"
}
]
],
"default": "Base09"
},
"monocle_border": {
"description": "Border colour when the container is in monocle mode (default: Base0F)",
"description": "Border colour when the container is in monocle mode",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1170,7 +1199,8 @@
{
"type": "null"
}
]
],
"default": "Base0F"
},
"name": {
"description": "Name of the Base16 theme (theme previews: https://tinted-theming.github.io/tinted-gallery/)",
@@ -1181,7 +1211,7 @@
"const": "Base16"
},
"single_border": {
"description": "Border colour when the container contains a single window (default: Base0D)",
"description": "Border colour when the container contains a single window",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1189,10 +1219,11 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"stack_border": {
"description": "Border colour when the container contains multiple windows (default: Base0B)",
"description": "Border colour when the container contains multiple windows",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1200,10 +1231,11 @@
{
"type": "null"
}
]
],
"default": "Base0B"
},
"unfocused_border": {
"description": "Border colour when the container is unfocused (default: Base01)",
"description": "Border colour when the container is unfocused",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1211,10 +1243,11 @@
{
"type": "null"
}
]
],
"default": "Base01"
},
"unfocused_locked_border": {
"description": "Border colour when the container is unfocused and locked (default: Base08)",
"description": "Border colour when the container is unfocused and locked",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1222,7 +1255,8 @@
{
"type": "null"
}
]
],
"default": "Base08"
}
},
"required": [
@@ -1235,7 +1269,7 @@
"type": "object",
"properties": {
"bar_accent": {
"description": "Komorebi status bar accent (default: Base0D)",
"description": "Komorebi status bar accent",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1243,14 +1277,15 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"colours": {
"description": "Colours of the custom Base16 theme palette",
"$ref": "#/$defs/Base16ColourPalette"
},
"floating_border": {
"description": "Border colour when the window is floating (default: Base09)",
"description": "Border colour when the window is floating",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1258,10 +1293,11 @@
{
"type": "null"
}
]
],
"default": "Base09"
},
"monocle_border": {
"description": "Border colour when the container is in monocle mode (default: Base0F)",
"description": "Border colour when the container is in monocle mode",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1269,14 +1305,15 @@
{
"type": "null"
}
]
],
"default": "Base0F"
},
"palette": {
"type": "string",
"const": "Custom"
},
"single_border": {
"description": "Border colour when the container contains a single window (default: Base0D)",
"description": "Border colour when the container contains a single window",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1284,10 +1321,11 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"stack_border": {
"description": "Border colour when the container contains multiple windows (default: Base0B)",
"description": "Border colour when the container contains multiple windows",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1295,10 +1333,11 @@
{
"type": "null"
}
]
],
"default": "Base0B"
},
"unfocused_border": {
"description": "Border colour when the container is unfocused (default: Base01)",
"description": "Border colour when the container is unfocused",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1306,10 +1345,11 @@
{
"type": "null"
}
]
],
"default": "Base01"
},
"unfocused_locked_border": {
"description": "Border colour when the container is unfocused and locked (default: Base08)",
"description": "Border colour when the container is unfocused and locked",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1317,7 +1357,8 @@
{
"type": "null"
}
]
],
"default": "Base08"
}
},
"required": [
@@ -1386,7 +1427,7 @@
"type": "object",
"properties": {
"container_padding": {
"description": "Container padding (default: global)",
"description": "Container padding",
"type": [
"integer",
"null"
@@ -1394,7 +1435,7 @@
"format": "int32"
},
"floating_layer_behaviour": {
"description": "Determine what happens to a new window when the Floating workspace layer is active (default: Tile)",
"description": "Determine what happens to a new window when the Floating workspace layer is active",
"anyOf": [
{
"$ref": "#/$defs/FloatingLayerBehaviour"
@@ -1402,7 +1443,8 @@
{
"type": "null"
}
]
],
"default": "Tile"
},
"wallpaper": {
"description": "Specify a wallpaper for this monitor",
@@ -1416,7 +1458,7 @@
]
},
"window_based_work_area_offset": {
"description": "Window based work area offset (default: None)",
"description": "Window based work area offset",
"anyOf": [
{
"$ref": "#/$defs/Rect"
@@ -1427,12 +1469,13 @@
]
},
"window_based_work_area_offset_limit": {
"description": "Open window limit after which the window based work area offset will no longer be applied (default: 1)",
"description": "Open window limit after which the window based work area offset will no longer be applied",
"type": [
"integer",
"null"
],
"format": "int"
"format": "int",
"default": 1
},
"window_hiding_position": {
"description": "Determine which position windows should be hidden at on this monitor",
@@ -1446,7 +1489,7 @@
]
},
"work_area_offset": {
"description": "Monitor-specific work area offset (default: None)",
"description": "Monitor-specific work area offset",
"anyOf": [
{
"$ref": "#/$defs/Rect"
@@ -1673,7 +1716,7 @@
"type": "object",
"properties": {
"bar_accent": {
"description": "Komorebi status bar accent (default: Base0D)",
"description": "Komorebi status bar accent",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1681,10 +1724,11 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"floating_border": {
"description": "Border colour when the window is floating (default: Base09)",
"description": "Border colour when the window is floating",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1692,10 +1736,11 @@
{
"type": "null"
}
]
],
"default": "Base09"
},
"monocle_border": {
"description": "Border colour when the container is in monocle mode (default: Base0F)",
"description": "Border colour when the container is in monocle mode",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1703,10 +1748,11 @@
{
"type": "null"
}
]
],
"default": "Base0F"
},
"single_border": {
"description": "Border colour when the container contains a single window (default: Base0D)",
"description": "Border colour when the container contains a single window",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1714,10 +1760,11 @@
{
"type": "null"
}
]
],
"default": "Base0D"
},
"stack_border": {
"description": "Border colour when the container contains multiple windows (default: Base0B)",
"description": "Border colour when the container contains multiple windows",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1725,10 +1772,11 @@
{
"type": "null"
}
]
],
"default": "Base0B"
},
"theme_variant": {
"description": "Specify Light or Dark variant for theme generation (default: Dark)",
"description": "Specify Light or Dark variant for theme generation",
"anyOf": [
{
"$ref": "#/$defs/ThemeVariant"
@@ -1736,10 +1784,11 @@
{
"type": "null"
}
]
],
"default": "Dark"
},
"unfocused_border": {
"description": "Border colour when the container is unfocused (default: Base01)",
"description": "Border colour when the container is unfocused",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1747,10 +1796,11 @@
{
"type": "null"
}
]
],
"default": "Base01"
},
"unfocused_locked_border": {
"description": "Border colour when the container is unfocused and locked (default: Base08)",
"description": "Border colour when the container is unfocused and locked",
"anyOf": [
{
"$ref": "#/$defs/Base16Value"
@@ -1758,7 +1808,8 @@
{
"type": "null"
}
]
],
"default": "Base08"
}
}
},
@@ -1773,18 +1824,19 @@
"type": "object",
"properties": {
"generate_theme": {
"description": "Generate and apply Base16 theme for this wallpaper (default: true)",
"description": "Generate and apply Base16 theme for this wallpaper",
"type": [
"boolean",
"null"
]
],
"default": true
},
"path": {
"description": "Path to the wallpaper image file",
"$ref": "#/$defs/PathBuf"
},
"theme_options": {
"description": "Specify Light or Dark variant for theme generation (default: Dark)",
"description": "Specify theme options",
"anyOf": [
{
"$ref": "#/$defs/ThemeOptions"
@@ -1831,11 +1883,12 @@
"type": "object",
"properties": {
"apply_window_based_work_area_offset": {
"description": "Apply this monitor's window-based work area offset (default: true)",
"description": "Apply this monitor's window-based work area offset",
"type": [
"boolean",
"null"
]
],
"default": true
},
"container_padding": {
"description": "Container padding (default: global)",
@@ -1846,14 +1899,15 @@
"format": "int32"
},
"float_override": {
"description": "Enable or disable float override, which makes it so every new window opens in floating mode (default: false)",
"description": "Enable or disable float override, which makes it so every new window opens in floating mode",
"type": [
"boolean",
"null"
]
],
"default": false
},
"floating_layer_behaviour": {
"description": "Determine what happens to a new window when the Floating workspace layer is active (default: Tile)",
"description": "Determine what happens to a new window when the Floating workspace layer is active",
"anyOf": [
{
"$ref": "#/$defs/FloatingLayerBehaviour"
@@ -1861,7 +1915,8 @@
{
"type": "null"
}
]
],
"default": "Tile"
},
"initial_workspace_rules": {
"description": "Initial workspace application rules",
@@ -1874,7 +1929,7 @@
}
},
"layout": {
"description": "Layout (default: BSP)",
"description": "Layout",
"anyOf": [
{
"$ref": "#/$defs/DefaultLayout"
@@ -1882,10 +1937,11 @@
{
"type": "null"
}
]
],
"default": "BSP"
},
"layout_flip": {
"description": "Specify an axis on which to flip the selected layout (default: None)",
"description": "Specify an axis on which to flip the selected layout",
"anyOf": [
{
"$ref": "#/$defs/Axis"
@@ -1896,7 +1952,7 @@
]
},
"layout_options": {
"description": "Layout-specific options (default: None)",
"description": "Layout-specific options",
"anyOf": [
{
"$ref": "#/$defs/LayoutOptions"
@@ -1907,7 +1963,7 @@
]
},
"layout_rules": {
"description": "Layout rules in the format of threshold => layout (default: None)",
"description": "Layout rules in the format of threshold => layout",
"type": [
"object",
"null"
@@ -1924,11 +1980,12 @@
"type": "string"
},
"tile": {
"description": "Enable or disable tiling for the workspace (default: true)",
"description": "Enable or disable tiling for the workspace",
"type": [
"boolean",
"null"
]
],
"default": true
},
"wallpaper": {
"description": "Specify a wallpaper for this workspace",
@@ -1942,7 +1999,7 @@
]
},
"window_container_behaviour": {
"description": "Determine what happens when a new window is opened (default: Create)",
"description": "Determine what happens when a new window is opened",
"anyOf": [
{
"$ref": "#/$defs/WindowContainerBehaviour"
@@ -1950,10 +2007,11 @@
{
"type": "null"
}
]
],
"default": "Create"
},
"window_container_behaviour_rules": {
"description": "Window container behaviour rules in the format of threshold => behaviour (default: None)",
"description": "Window container behaviour rules in the format of threshold => behaviour",
"type": [
"object",
"null"
@@ -1966,7 +2024,7 @@
}
},
"work_area_offset": {
"description": "Workspace specific work area offset (default: None)",
"description": "Workspace specific work area offset",
"anyOf": [
{
"$ref": "#/$defs/Rect"