mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-07-22 04:48:38 +02:00
feat(wm): add query command to cli
Added a query command to komorebic to return the WindowManager struct serialized to JSON to help with debugging and maybe help others to build tools like stackline for yabai in the future.
This commit is contained in:
@@ -3,6 +3,7 @@ use std::collections::VecDeque;
|
||||
|
||||
use color_eyre::eyre::ContextCompat;
|
||||
use color_eyre::Result;
|
||||
use serde::Serialize;
|
||||
|
||||
use komorebi_core::Rect;
|
||||
|
||||
@@ -10,12 +11,13 @@ use crate::container::Container;
|
||||
use crate::ring::Ring;
|
||||
use crate::workspace::Workspace;
|
||||
|
||||
#[derive(Debug, Clone)]
|
||||
#[derive(Debug, Clone, Serialize)]
|
||||
pub struct Monitor {
|
||||
id: isize,
|
||||
monitor_size: Rect,
|
||||
work_area_size: Rect,
|
||||
workspaces: Ring<Workspace>,
|
||||
#[serde(skip_serializing)]
|
||||
workspace_names: HashMap<usize, String>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user