mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-29 11:52:50 +01:00
test(protocol): check in the per-platform wire goldens and the generator
Add tests/golden/{windows,kde,macos}/{variants.json,schema-variants.txt} (taken from each daemon's own SocketMessage before it moves, oracle D14), the support table variants-table.tsv (197 variants x windows/kde/macos) and the schema-driven generator tests/common/golden_gen.rs.
tests/golden.rs checks, until SocketMessage moves (stage 2e): every golden wire text parses to its golden value; each platform's golden variant set equals its column of the support table; the generator runs on a stand-in enum. Stage 2e swaps in the real enum and compares wire text and schema branches (subset check).
Verified: native cargo test -p komorebi-protocol, 3 passed 0 failed; Windows clippy --workspace --locked --all-targets -D warnings clean.
This commit is contained in:
1 parent
280bbc668b
commit
8179aef3e2
9 files changed
+15039
No files matched your search
@@ -0,0 +1,250 @@
|
||||
// Golden-JSON generator for a `#[serde(tag="type", content="content")]` enum with a JsonSchema.
|
||||
// Included by #[path] into each harness binary (and, after step 2, into one over komorebi-protocol).
|
||||
//
|
||||
// golden_gen::run::<SocketMessage>("kde", outdir, &[("ActiveWindowBorder", "Border")], &["ApplyState"])
|
||||
// (aliases: serde aliases not in the schema; stubbed: variants whose payload type is a harness stub)
|
||||
//
|
||||
// 1. schema = schemars::schema_for!(T) -> outdir/schema.json
|
||||
// 2. for each oneOf branch: name = properties.type.const; content = minimal value for properties.content
|
||||
// 3. instance {"type":name[,"content":..]} is deserialised into T and serialised again (the golden).
|
||||
// 4. outdir/variants.json: { name: { instance, golden, roundtrip_equal, deserialised } } sorted by name.
|
||||
// outdir/variants.txt: the sorted names. A summary goes to stdout.
|
||||
use serde::Serialize;
|
||||
use serde::de::DeserializeOwned;
|
||||
use serde_json::Map;
|
||||
use serde_json::Value;
|
||||
use serde_json::json;
|
||||
use std::collections::BTreeMap;
|
||||
use std::path::Path;
|
||||
|
||||
fn resolve<'a>(root: &'a Value, r: &str) -> &'a Value {
|
||||
let path = r.strip_prefix("#/").unwrap_or_else(|| panic!("unsupported $ref {r}"));
|
||||
let mut cur = root;
|
||||
for seg in path.split('/') {
|
||||
cur = cur.get(seg).unwrap_or_else(|| panic!("dangling $ref {r}"));
|
||||
}
|
||||
cur
|
||||
}
|
||||
|
||||
thread_local! {
|
||||
/// (branch index to use at every oneOf/anyOf/enum, prefer a null branch)
|
||||
static MODE: std::cell::Cell<(usize, bool)> = const { std::cell::Cell::new((0, false)) };
|
||||
}
|
||||
|
||||
/// The smallest value the schema accepts; deterministic (branch MODE.0, lowest bound).
|
||||
pub fn minimal(s: &Value, root: &Value, depth: usize) -> Value {
|
||||
assert!(depth < 40, "schema recursion too deep");
|
||||
let Some(o) = s.as_object() else { return Value::Null };
|
||||
if let Some(r) = o.get("$ref").and_then(Value::as_str) {
|
||||
let mut base = minimal(resolve(root, r), root, depth + 1);
|
||||
// siblings of $ref (schemars adds `properties` for an internally tagged variant)
|
||||
if let (Value::Object(m), Some(p)) = (&mut base, o.get("properties").and_then(Value::as_object)) {
|
||||
let req: Vec<&str> = o.get("required").and_then(Value::as_array).map(|r| r.iter().filter_map(Value::as_str).collect()).unwrap_or_default();
|
||||
for (k, v) in p {
|
||||
if req.contains(&k.as_str()) {
|
||||
m.insert(k.clone(), minimal(v, root, depth + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
return base;
|
||||
}
|
||||
if let Some(c) = o.get("const") {
|
||||
return c.clone();
|
||||
}
|
||||
if let Some(e) = o.get("enum").and_then(Value::as_array) {
|
||||
let (k, _) = MODE.get();
|
||||
return e[k.min(e.len() - 1)].clone();
|
||||
}
|
||||
for k in ["oneOf", "anyOf"] {
|
||||
if let Some(b) = o.get(k).and_then(Value::as_array) {
|
||||
// prefer a branch that is not the bare null type; keep source order otherwise
|
||||
let (k, nulls) = MODE.get();
|
||||
let non_null: Vec<&Value> = b.iter().filter(|x| x.get("type") != Some(&json!("null"))).collect();
|
||||
let null = b.iter().find(|x| x.get("type") == Some(&json!("null")));
|
||||
let pick = match (nulls, null) {
|
||||
(true, Some(n)) => n,
|
||||
_ if non_null.is_empty() => &b[0],
|
||||
_ => non_null[k.min(non_null.len() - 1)],
|
||||
};
|
||||
return minimal(pick, root, depth + 1);
|
||||
}
|
||||
}
|
||||
if let Some(a) = o.get("allOf").and_then(Value::as_array) {
|
||||
let mut merged: Option<Map<String, Value>> = None;
|
||||
for x in a {
|
||||
let v = minimal(x, root, depth + 1);
|
||||
match (&mut merged, v) {
|
||||
(None, Value::Object(m)) => merged = Some(m),
|
||||
(Some(m), Value::Object(n)) => m.extend(n),
|
||||
(None, v) => return v,
|
||||
_ => {}
|
||||
}
|
||||
}
|
||||
return merged.map(Value::Object).unwrap_or(Value::Null);
|
||||
}
|
||||
let ty = match o.get("type") {
|
||||
Some(Value::String(t)) => t.as_str().to_owned(),
|
||||
Some(Value::Array(ts)) => ts
|
||||
.iter()
|
||||
.filter_map(Value::as_str)
|
||||
.find(|t| *t != "null")
|
||||
.unwrap_or("null")
|
||||
.to_owned(),
|
||||
_ => {
|
||||
if o.contains_key("properties") {
|
||||
"object".into()
|
||||
} else if o.contains_key("items") || o.contains_key("prefixItems") {
|
||||
"array".into()
|
||||
} else {
|
||||
"null".into()
|
||||
}
|
||||
}
|
||||
};
|
||||
match ty.as_str() {
|
||||
"null" => Value::Null,
|
||||
"boolean" => json!(false),
|
||||
"integer" | "number" => {
|
||||
let mut v = o.get("minimum").and_then(Value::as_f64).unwrap_or(0.0).max(0.0);
|
||||
if let Some(x) = o.get("exclusiveMinimum").and_then(Value::as_f64) {
|
||||
v = v.max(x + 1.0);
|
||||
}
|
||||
if ty == "integer" { json!(v as i64) } else { json!(v) }
|
||||
}
|
||||
"string" => json!("x"),
|
||||
"array" => {
|
||||
if let Some(p) = o.get("prefixItems").and_then(Value::as_array) {
|
||||
return Value::Array(p.iter().map(|x| minimal(x, root, depth + 1)).collect());
|
||||
}
|
||||
let n = o.get("minItems").and_then(Value::as_u64).unwrap_or(0) as usize;
|
||||
let item = o.get("items").map(|i| minimal(i, root, depth + 1)).unwrap_or(Value::Null);
|
||||
Value::Array(vec![item; n])
|
||||
}
|
||||
"object" => {
|
||||
let mut m = Map::new();
|
||||
let req: Vec<&str> = o
|
||||
.get("required")
|
||||
.and_then(Value::as_array)
|
||||
.map(|r| r.iter().filter_map(Value::as_str).collect())
|
||||
.unwrap_or_default();
|
||||
if let Some(p) = o.get("properties").and_then(Value::as_object) {
|
||||
for (k, v) in p {
|
||||
if req.contains(&k.as_str()) {
|
||||
m.insert(k.clone(), minimal(v, root, depth + 1));
|
||||
}
|
||||
}
|
||||
}
|
||||
Value::Object(m)
|
||||
}
|
||||
t => panic!("unsupported type {t}"),
|
||||
}
|
||||
}
|
||||
|
||||
pub fn run<T>(platform: &str, outdir: &Path, aliases: &[(&str, &str)], stubbed: &[&str])
|
||||
where
|
||||
T: Serialize + DeserializeOwned + schemars::JsonSchema,
|
||||
{
|
||||
std::fs::create_dir_all(outdir).unwrap();
|
||||
// paths expand environment variables (and ~ on macOS): pin them so the golden is host independent
|
||||
unsafe {
|
||||
std::env::set_var("HOME", "/golden-home");
|
||||
std::env::set_var("USERPROFILE", "C:\\golden-profile");
|
||||
std::env::set_var("GOLDEN_VAR", "golden-value");
|
||||
}
|
||||
let schema = serde_json::to_value(schemars::schema_for!(T)).unwrap();
|
||||
std::fs::write(outdir.join("schema.json"), serde_json::to_string_pretty(&schema).unwrap() + "\n").unwrap();
|
||||
|
||||
let branches = schema["oneOf"].as_array().expect("top-level oneOf");
|
||||
let mut out: BTreeMap<String, Value> = BTreeMap::new();
|
||||
let mut inst_by_name: BTreeMap<String, Value> = BTreeMap::new();
|
||||
for b in branches {
|
||||
let name = b["properties"]["type"]["const"].as_str().expect("type const").to_owned();
|
||||
let mut inst = Map::new();
|
||||
inst.insert("type".into(), json!(name));
|
||||
if let Some(c) = b["properties"].get("content") {
|
||||
inst.insert("content".into(), minimal(c, &schema, 0));
|
||||
}
|
||||
assert!(inst_by_name.insert(name, Value::Object(inst)).is_none(), "duplicate variant");
|
||||
}
|
||||
// more instances: other oneOf/enum branches (@1, @2, @3, only if different), null options (@nulls)
|
||||
let base: Vec<(String, Value)> = inst_by_name.iter().map(|(k, v)| (k.clone(), v.clone())).collect();
|
||||
for b in branches {
|
||||
let name = b["properties"]["type"]["const"].as_str().unwrap().to_owned();
|
||||
let Some(c) = b["properties"].get("content") else { continue };
|
||||
let mut seen = vec![inst_by_name[&name]["content"].clone()];
|
||||
for (suffix, mode) in [("@1", (1, false)), ("@2", (2, false)), ("@3", (3, false)), ("@nulls", (0, true))] {
|
||||
MODE.set(mode);
|
||||
let v = minimal(c, &schema, 0);
|
||||
MODE.set((0, false));
|
||||
if !seen.contains(&v) {
|
||||
seen.push(v.clone());
|
||||
let inst = json!({ "type": name, "content": v });
|
||||
// the generator is naive (e.g. untagged unions): keep only instances the type accepts
|
||||
if serde_json::from_value::<T>(inst.clone()).is_ok() {
|
||||
inst_by_name.insert(format!("{name}{suffix}"), inst);
|
||||
} else {
|
||||
println!(" skipped alternative instance {name}{suffix} (not accepted by the type)");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
let _ = base;
|
||||
for (name, content) in [
|
||||
("Load@~", "~/k.json"), ("Load@dollar", "$HOME/k.json"), ("Load@braces", "${GOLDEN_VAR}/k.json"),
|
||||
("Load@percent", "%USERPROFILE%/k.json"), ("Load@psenv", "$Env:USERPROFILE/k.json"),
|
||||
("Save@~", "~/k.json"), ("ReplaceConfiguration@dollar", "$HOME/k.json"),
|
||||
("ReloadStaticConfiguration@percent", "%USERPROFILE%/k.json"),
|
||||
] {
|
||||
let t = name.split('@').next().unwrap();
|
||||
if inst_by_name.contains_key(t) {
|
||||
inst_by_name.insert(name.to_owned(), json!({ "type": t, "content": content }));
|
||||
}
|
||||
}
|
||||
for (alias, target) in aliases {
|
||||
let mut v = inst_by_name[*target].clone();
|
||||
v["type"] = json!(alias);
|
||||
inst_by_name.insert((*alias).to_owned(), v);
|
||||
}
|
||||
let (mut de_ok, mut eq_ok) = (0usize, 0usize);
|
||||
for (name, inst) in &inst_by_name {
|
||||
let r = serde_json::from_value::<T>(inst.clone());
|
||||
let mut wire = Value::Null;
|
||||
let (golden, de, eq) = match r {
|
||||
Ok(t) => {
|
||||
let g = serde_json::to_value(&t).unwrap();
|
||||
// and the text form the socket really carries must read back
|
||||
let s = serde_json::to_string(&t).unwrap();
|
||||
wire = json!(s.clone());
|
||||
let back: T = serde_json::from_str(&s).expect("reserialised text must parse");
|
||||
assert_eq!(serde_json::to_value(&back).unwrap(), g, "{name}: unstable round trip");
|
||||
let eq = &g == inst;
|
||||
(g, true, eq)
|
||||
}
|
||||
Err(e) => (json!({ "error": e.to_string() }), false, false),
|
||||
};
|
||||
de_ok += de as usize;
|
||||
eq_ok += eq as usize;
|
||||
out.insert(
|
||||
name.clone(),
|
||||
json!({ "instance": inst, "wire": wire, "golden": golden, "deserialised": de, "roundtrip_equal": eq, "payload_stubbed": stubbed.contains(&name.as_str()) }),
|
||||
);
|
||||
}
|
||||
std::fs::write(outdir.join("variants.json"), serde_json::to_string_pretty(&out).unwrap() + "\n").unwrap();
|
||||
let names: Vec<&String> = out.keys().collect();
|
||||
std::fs::write(
|
||||
outdir.join("variants.txt"),
|
||||
names.iter().map(|n| format!("{n}\n")).collect::<String>(),
|
||||
)
|
||||
.unwrap();
|
||||
println!(
|
||||
"{platform}: schema branches {}, aliases {}, instances {}, deserialised {de_ok}, golden==instance {eq_ok}, payload stubbed {}",
|
||||
branches.len(),
|
||||
aliases.len(),
|
||||
out.len(),
|
||||
stubbed.len()
|
||||
);
|
||||
for (n, v) in &out {
|
||||
if v["deserialised"] == json!(false) || v["roundtrip_equal"] == json!(false) {
|
||||
println!(" note {n}: deserialised={} equal={} golden={}", v["deserialised"], v["roundtrip_equal"], v["golden"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,95 @@
|
||||
//! Wire conformance of the protocol crate against the per-platform goldens.
|
||||
//!
|
||||
//! The goldens in `tests/golden/<platform>/` were generated from the three daemons'
|
||||
//! own `SocketMessage` before the type moved into this crate (generator:
|
||||
//! `tests/common/golden_gen.rs`). `variants.json` holds, per instance, the exact text
|
||||
//! the socket carries (`wire`) and the re-serialised value (`golden`);
|
||||
//! `schema-variants.txt` lists the variants of the platform's schema.
|
||||
//!
|
||||
//! Stage 2a (SocketMessage has not moved yet) checks:
|
||||
//! - the goldens are internally consistent (every `wire` text parses to `golden`);
|
||||
//! - the variant names of each golden equal the platform's column of
|
||||
//! `variants-table.tsv`, which `platforms()` is derived from;
|
||||
//! - the generator itself works, on a stand-in enum.
|
||||
//!
|
||||
//! Later stages replace the stand-in with the crate's `SocketMessage` and compare
|
||||
//! wire text and schema branches per platform (a subset check: the unified enum
|
||||
//! accepts everything each platform accepted).
|
||||
|
||||
#[path = "common/golden_gen.rs"]
|
||||
#[allow(dead_code)]
|
||||
mod golden_gen;
|
||||
|
||||
use std::collections::BTreeSet;
|
||||
use std::path::Path;
|
||||
|
||||
use serde_json::Value;
|
||||
|
||||
const PLATFORMS: [(&str, usize); 3] = [("windows", 1), ("kde", 2), ("macos", 3)];
|
||||
|
||||
fn golden(platform: &str) -> Value {
|
||||
let p = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/golden").join(platform).join("variants.json");
|
||||
serde_json::from_str(&std::fs::read_to_string(p).unwrap()).unwrap()
|
||||
}
|
||||
|
||||
fn schema_variants(platform: &str) -> BTreeSet<String> {
|
||||
let p = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/golden").join(platform).join("schema-variants.txt");
|
||||
std::fs::read_to_string(p).unwrap().lines().map(str::to_owned).collect()
|
||||
}
|
||||
|
||||
fn table() -> Vec<Vec<String>> {
|
||||
let p = Path::new(env!("CARGO_MANIFEST_DIR")).join("tests/golden/variants-table.tsv");
|
||||
std::fs::read_to_string(p).unwrap().lines().skip(1).map(|l| l.split('\t').map(str::to_owned).collect()).collect()
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn golden_wire_text_matches_golden_value() {
|
||||
for (platform, _) in PLATFORMS {
|
||||
let g = golden(platform);
|
||||
let g = g.as_object().unwrap();
|
||||
assert!(!g.is_empty());
|
||||
for (name, v) in g {
|
||||
if v["deserialised"] != Value::Bool(true) {
|
||||
panic!("{platform}: {name} was not accepted by the platform's own enum");
|
||||
}
|
||||
let wire: Value = serde_json::from_str(v["wire"].as_str().unwrap()).unwrap();
|
||||
assert_eq!(wire, v["golden"], "{platform}: {name}");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn golden_variants_match_the_support_table() {
|
||||
let rows = table();
|
||||
assert_eq!(rows.len(), 197);
|
||||
for (platform, col) in PLATFORMS {
|
||||
let from_table: BTreeSet<String> = rows.iter().filter(|r| r[col] != "-").map(|r| r[0].clone()).collect();
|
||||
assert_eq!(from_table, schema_variants(platform), "{platform}");
|
||||
// every golden instance is of a variant of the platform (or one of its serde aliases)
|
||||
let g = golden(platform);
|
||||
for (name, v) in g.as_object().unwrap() {
|
||||
let ty = v["golden"]["type"].as_str().unwrap();
|
||||
assert!(from_table.contains(ty), "{platform}: {name} serialises as {ty}, which the table does not list");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(serde::Serialize, serde::Deserialize, schemars::JsonSchema)]
|
||||
#[serde(tag = "type", content = "content")]
|
||||
enum Stand {
|
||||
Unit,
|
||||
Number(usize),
|
||||
Pair(bool, String),
|
||||
Maybe(Option<u8>),
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn generator_runs_on_a_stand_in_enum() {
|
||||
let dir = std::env::temp_dir().join(format!("komorebi-protocol-golden-{}", std::process::id()));
|
||||
golden_gen::run::<Stand>("stand-in", &dir, &[], &[]);
|
||||
let v: Value = serde_json::from_str(&std::fs::read_to_string(dir.join("variants.json")).unwrap()).unwrap();
|
||||
for k in ["Unit", "Number", "Pair", "Maybe"] {
|
||||
assert_eq!(v[k]["deserialised"], Value::Bool(true), "{k}");
|
||||
}
|
||||
let _ = std::fs::remove_dir_all(dir);
|
||||
}
|
||||
@@ -0,0 +1,163 @@
|
||||
AddSubscriberSocket
|
||||
AddSubscriberSocketWithOptions
|
||||
AdjustContainerPadding
|
||||
AdjustWorkspacePadding
|
||||
Animation
|
||||
AnimationDuration
|
||||
AnimationFps
|
||||
AnimationStyle
|
||||
ApplicationSpecificConfigurationSchema
|
||||
Border
|
||||
BorderColour
|
||||
BorderOffset
|
||||
BorderWidth
|
||||
CancelPreselect
|
||||
CenterFocus
|
||||
ChangeLayout
|
||||
ClearAllWorkspaceRules
|
||||
ClearNamedWorkspaceLayoutRules
|
||||
ClearNamedWorkspaceRules
|
||||
ClearSessionFloatRules
|
||||
ClearWorkspaceLayoutRules
|
||||
ClearWorkspaceRules
|
||||
Close
|
||||
CloseWorkspace
|
||||
Consume
|
||||
ContainerPadding
|
||||
CrossMonitorMoveBehaviour
|
||||
CycleFocusEmptyWorkspace
|
||||
CycleFocusMonitor
|
||||
CycleFocusWindow
|
||||
CycleFocusWorkspace
|
||||
CycleLayout
|
||||
CycleMoveContainerToMonitor
|
||||
CycleMoveContainerToWorkspace
|
||||
CycleMoveWindow
|
||||
CycleMoveWorkspaceToMonitor
|
||||
CycleSendContainerToMonitor
|
||||
CycleSendContainerToWorkspace
|
||||
CycleStack
|
||||
CycleStackIndex
|
||||
DebugWindow
|
||||
DisplayIndexPreference
|
||||
EagerFocus
|
||||
EnforceWorkspaceRules
|
||||
EnsureNamedWorkspaces
|
||||
EnsureWorkspaces
|
||||
Expand
|
||||
Expel
|
||||
FlipLayout
|
||||
FocusFollowsMouse
|
||||
FocusLastWorkspace
|
||||
FocusMonitorAtCursor
|
||||
FocusMonitorNumber
|
||||
FocusMonitorWorkspaceNumber
|
||||
FocusNamedWorkspace
|
||||
FocusStackWindow
|
||||
FocusWindow
|
||||
FocusWorkspaceNumber
|
||||
FocusWorkspaceNumbers
|
||||
FocusedWorkspaceContainerPadding
|
||||
FocusedWorkspacePadding
|
||||
GenerateStaticConfig
|
||||
GlobalState
|
||||
HotkeysState
|
||||
IgnoreRule
|
||||
InitialNamedWorkspaceRule
|
||||
InitialWorkspaceRule
|
||||
LayoutRatios
|
||||
Load
|
||||
LockMonitorWorkspaceContainer
|
||||
ManageFocusedWindow
|
||||
ManageRule
|
||||
Minimize
|
||||
MonitorInformation
|
||||
MonitorWorkAreaOffset
|
||||
MonocleFocusBehaviour
|
||||
MouseFollowsFocus
|
||||
MoveContainerToLastWorkspace
|
||||
MoveContainerToMonitorNumber
|
||||
MoveContainerToMonitorWorkspaceNumber
|
||||
MoveContainerToNamedWorkspace
|
||||
MoveContainerToWorkspaceNumber
|
||||
MoveWindow
|
||||
MoveWorkspaceToMonitorNumber
|
||||
NamedWorkspaceContainerPadding
|
||||
NamedWorkspaceLayout
|
||||
NamedWorkspaceLayoutRule
|
||||
NamedWorkspacePadding
|
||||
NamedWorkspaceRule
|
||||
NamedWorkspaceTiling
|
||||
NewWorkspace
|
||||
NotificationSchema
|
||||
Pan
|
||||
PreselectDirection
|
||||
Promote
|
||||
PromoteFocus
|
||||
PromoteSwap
|
||||
PromoteWindow
|
||||
Query
|
||||
QuickLoad
|
||||
QuickSave
|
||||
ReloadHotkeys
|
||||
ReloadStaticConfiguration
|
||||
RemoveSubscriberSocket
|
||||
ReplaceConfiguration
|
||||
ResizeDelta
|
||||
ResizeWindowAxis
|
||||
ResizeWindowEdge
|
||||
Retile
|
||||
RetileWithResizeDimensions
|
||||
Save
|
||||
ScrollingLayoutColumns
|
||||
ScrollingLayoutFullWidth
|
||||
SendContainerToLastWorkspace
|
||||
SendContainerToMonitorNumber
|
||||
SendContainerToMonitorWorkspaceNumber
|
||||
SendContainerToNamedWorkspace
|
||||
SendContainerToWorkspaceNumber
|
||||
SessionFloatRule
|
||||
SessionFloatRules
|
||||
SocketSchema
|
||||
StackAll
|
||||
StackWindow
|
||||
State
|
||||
StaticConfigSchema
|
||||
Stop
|
||||
StopIgnoreRestore
|
||||
SwapWorkspacesToMonitorNumber
|
||||
Theme
|
||||
ToggleColumnStack
|
||||
ToggleCrossMonitorMoveBehaviour
|
||||
ToggleFloat
|
||||
ToggleFloatOverride
|
||||
ToggleFocusFollowsMouse
|
||||
ToggleLock
|
||||
ToggleMaximize
|
||||
ToggleMonocle
|
||||
ToggleMonocleFocusBehaviour
|
||||
ToggleMouseFollowsFocus
|
||||
TogglePause
|
||||
ToggleTiling
|
||||
ToggleTransparency
|
||||
ToggleWindowBasedWorkAreaOffset
|
||||
ToggleWindowContainerBehaviour
|
||||
ToggleWorkspaceFloatOverride
|
||||
ToggleWorkspaceLayer
|
||||
ToggleWorkspaceWindowContainerBehaviour
|
||||
Transparency
|
||||
TransparencyAlpha
|
||||
UnlockMonitorWorkspaceContainer
|
||||
UnmanageFocusedWindow
|
||||
UnmanagedWindowOperationBehaviour
|
||||
UnstackAll
|
||||
UnstackWindow
|
||||
VisibleWindows
|
||||
WorkAreaOffset
|
||||
WorkspaceLayout
|
||||
WorkspaceLayoutRule
|
||||
WorkspaceName
|
||||
WorkspacePadding
|
||||
WorkspaceRule
|
||||
WorkspaceTiling
|
||||
WorkspaceWorkAreaOffset
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,156 @@
|
||||
AddSubscriberSocket
|
||||
AddSubscriberSocketWithOptions
|
||||
AdjustContainerPadding
|
||||
AdjustWorkspacePadding
|
||||
Animation
|
||||
AnimationDuration
|
||||
AnimationFps
|
||||
AnimationStyle
|
||||
ApplicationSpecificConfigurationSchema
|
||||
Border
|
||||
BorderColour
|
||||
BorderOffset
|
||||
BorderWidth
|
||||
CancelPreselect
|
||||
CenterFocus
|
||||
ChangeLayout
|
||||
ClearAllWorkspaceRules
|
||||
ClearNamedWorkspaceLayoutRules
|
||||
ClearNamedWorkspaceRules
|
||||
ClearSessionFloatRules
|
||||
ClearWorkspaceLayoutRules
|
||||
ClearWorkspaceRules
|
||||
Close
|
||||
CloseWorkspace
|
||||
Consume
|
||||
ContainerPadding
|
||||
CrossMonitorMoveBehaviour
|
||||
CycleFocusEmptyWorkspace
|
||||
CycleFocusMonitor
|
||||
CycleFocusWindow
|
||||
CycleFocusWorkspace
|
||||
CycleLayout
|
||||
CycleMoveContainerToMonitor
|
||||
CycleMoveContainerToWorkspace
|
||||
CycleMoveWindow
|
||||
CycleMoveWorkspaceToMonitor
|
||||
CycleSendContainerToMonitor
|
||||
CycleSendContainerToWorkspace
|
||||
CycleStack
|
||||
CycleStackIndex
|
||||
DebugWindow
|
||||
DisplayIndexPreference
|
||||
EagerFocus
|
||||
EnforceWorkspaceRules
|
||||
EnsureNamedWorkspaces
|
||||
EnsureWorkspaces
|
||||
Expand
|
||||
Expel
|
||||
FlipLayout
|
||||
FocusLastWorkspace
|
||||
FocusMonitorAtCursor
|
||||
FocusMonitorNumber
|
||||
FocusMonitorWorkspaceNumber
|
||||
FocusNamedWorkspace
|
||||
FocusStackWindow
|
||||
FocusWindow
|
||||
FocusWorkspaceNumber
|
||||
FocusWorkspaceNumbers
|
||||
FocusedWorkspaceContainerPadding
|
||||
FocusedWorkspacePadding
|
||||
GenerateStaticConfig
|
||||
GlobalState
|
||||
IgnoreRule
|
||||
InitialNamedWorkspaceRule
|
||||
InitialWorkspaceRule
|
||||
LayoutRatios
|
||||
Load
|
||||
LockMonitorWorkspaceContainer
|
||||
ManageFocusedWindow
|
||||
ManageRule
|
||||
Minimize
|
||||
MonitorInformation
|
||||
MonitorWorkAreaOffset
|
||||
MonocleFocusBehaviour
|
||||
MouseFollowsFocus
|
||||
MoveContainerToLastWorkspace
|
||||
MoveContainerToMonitorNumber
|
||||
MoveContainerToMonitorWorkspaceNumber
|
||||
MoveContainerToNamedWorkspace
|
||||
MoveContainerToWorkspaceNumber
|
||||
MoveWindow
|
||||
MoveWorkspaceToMonitorNumber
|
||||
NamedWorkspaceContainerPadding
|
||||
NamedWorkspaceLayout
|
||||
NamedWorkspaceLayoutRule
|
||||
NamedWorkspacePadding
|
||||
NamedWorkspaceRule
|
||||
NamedWorkspaceTiling
|
||||
NewWorkspace
|
||||
NotificationSchema
|
||||
Pan
|
||||
PanGesture
|
||||
PreselectDirection
|
||||
Promote
|
||||
PromoteFocus
|
||||
PromoteSwap
|
||||
PromoteWindow
|
||||
Query
|
||||
QuickLoad
|
||||
QuickSave
|
||||
ReloadStaticConfiguration
|
||||
RemoveSubscriberSocket
|
||||
ReplaceConfiguration
|
||||
ResizeDelta
|
||||
ResizeWindowAxis
|
||||
ResizeWindowEdge
|
||||
Retile
|
||||
RetileWithResizeDimensions
|
||||
Save
|
||||
ScrollingLayoutColumns
|
||||
ScrollingLayoutFullWidth
|
||||
SendContainerToLastWorkspace
|
||||
SendContainerToMonitorNumber
|
||||
SendContainerToMonitorWorkspaceNumber
|
||||
SendContainerToNamedWorkspace
|
||||
SendContainerToWorkspaceNumber
|
||||
SessionFloatRule
|
||||
SessionFloatRules
|
||||
SocketSchema
|
||||
StackAll
|
||||
StackWindow
|
||||
State
|
||||
StaticConfigSchema
|
||||
Stop
|
||||
StopIgnoreRestore
|
||||
SwapWorkspacesToMonitorNumber
|
||||
Theme
|
||||
ToggleColumnStack
|
||||
ToggleCrossMonitorMoveBehaviour
|
||||
ToggleFloat
|
||||
ToggleFloatOverride
|
||||
ToggleLock
|
||||
ToggleMonocle
|
||||
ToggleMonocleFocusBehaviour
|
||||
ToggleMouseFollowsFocus
|
||||
TogglePause
|
||||
ToggleTiling
|
||||
ToggleWindowBasedWorkAreaOffset
|
||||
ToggleWindowContainerBehaviour
|
||||
ToggleWorkspaceFloatOverride
|
||||
ToggleWorkspaceLayer
|
||||
ToggleWorkspaceWindowContainerBehaviour
|
||||
UnlockMonitorWorkspaceContainer
|
||||
UnmanageFocusedWindow
|
||||
UnmanagedWindowOperationBehaviour
|
||||
UnstackAll
|
||||
UnstackWindow
|
||||
VisibleWindows
|
||||
WorkAreaOffset
|
||||
WorkspaceLayout
|
||||
WorkspaceLayoutRule
|
||||
WorkspaceName
|
||||
WorkspacePadding
|
||||
WorkspaceRule
|
||||
WorkspaceTiling
|
||||
WorkspaceWorkAreaOffset
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,198 @@
|
||||
variant windows kde macos
|
||||
AddSubscriberPipe W - -
|
||||
AddSubscriberSocket W K M
|
||||
AddSubscriberSocketWithOptions W K M
|
||||
AdjustContainerPadding W K M
|
||||
AdjustWorkspacePadding W K M
|
||||
AltFocusHack W - -
|
||||
Animation W K M
|
||||
AnimationDuration W K M
|
||||
AnimationFps W K M
|
||||
AnimationStyle W K M
|
||||
ApplicationSpecificConfigurationSchema W K M
|
||||
ApplyState W - -
|
||||
Border W K M
|
||||
BorderColour W K M
|
||||
BorderImplementation W - -
|
||||
BorderOffset W K M
|
||||
BorderStyle W - -
|
||||
BorderWidth W K M
|
||||
CancelPreselect W K M
|
||||
CenterFocus W K M
|
||||
ChangeLayout W K M
|
||||
ChangeLayoutCustom W - -
|
||||
ClearAllWorkspaceRules W K M
|
||||
ClearNamedWorkspaceLayoutRules W K M
|
||||
ClearNamedWorkspaceRules W K M
|
||||
ClearSessionFloatRules W K M
|
||||
ClearWorkspaceLayoutRules W K M
|
||||
ClearWorkspaceRules W K M
|
||||
Close W K M
|
||||
CloseWorkspace W K M
|
||||
CompleteConfiguration W - -
|
||||
Consume W K M
|
||||
ContainerPadding W K M
|
||||
CrossMonitorMoveBehaviour W K M
|
||||
CycleFocusEmptyWorkspace W K M
|
||||
CycleFocusMonitor W K M
|
||||
CycleFocusWindow W K M
|
||||
CycleFocusWorkspace W K M
|
||||
CycleLayout W K M
|
||||
CycleMoveContainerToMonitor W K M
|
||||
CycleMoveContainerToWorkspace W K M
|
||||
CycleMoveWindow W K M
|
||||
CycleMoveWorkspaceToMonitor W K M
|
||||
CycleSendContainerToMonitor W K M
|
||||
CycleSendContainerToWorkspace W K M
|
||||
CycleStack W K M
|
||||
CycleStackIndex W K M
|
||||
DebugWindow W K M
|
||||
DisplayIndexPreference W K M
|
||||
EagerFocus W K M
|
||||
EnforceWorkspaceRules W K M
|
||||
EnsureNamedWorkspaces W K M
|
||||
EnsureWorkspaces W K M
|
||||
Expand W K M
|
||||
Expel W K M
|
||||
FlipLayout W K M
|
||||
FocusFollowsMouse W K -
|
||||
FocusLastWorkspace W K M
|
||||
FocusMonitorAtCursor W K M
|
||||
FocusMonitorNumber W K M
|
||||
FocusMonitorWorkspaceNumber W K M
|
||||
FocusNamedWorkspace W K M
|
||||
FocusStackWindow W K M
|
||||
FocusWindow W K M
|
||||
FocusWorkspaceNumber W K M
|
||||
FocusWorkspaceNumbers W K M
|
||||
FocusedWorkspaceContainerPadding W K M
|
||||
FocusedWorkspacePadding W K M
|
||||
ForceFocus W - -
|
||||
GenerateStaticConfig W K M
|
||||
GlobalState W K M
|
||||
HotkeysState - K -
|
||||
IdentifyBorderOverflowApplication W - -
|
||||
IdentifyLayeredApplication W - -
|
||||
IdentifyObjectNameChangeApplication W - -
|
||||
IdentifyTrayApplication W - -
|
||||
IgnoreRule W K M
|
||||
InitialNamedWorkspaceRule W K M
|
||||
InitialWorkspaceRule W K M
|
||||
InvisibleBorders W - -
|
||||
LayoutRatios W K M
|
||||
Load W K M
|
||||
LockMonitorWorkspaceContainer W K M
|
||||
ManageFocusedWindow W K M
|
||||
ManageRule W K M
|
||||
Minimize W K M
|
||||
MonitorIndexPreference W - -
|
||||
MonitorInformation W K M
|
||||
MonitorWorkAreaOffset W K M
|
||||
MonocleFocusBehaviour W K M
|
||||
MouseFollowsFocus W K M
|
||||
MoveContainerToLastWorkspace W K M
|
||||
MoveContainerToMonitorNumber W K M
|
||||
MoveContainerToMonitorWorkspaceNumber W K M
|
||||
MoveContainerToNamedWorkspace W K M
|
||||
MoveContainerToWorkspaceNumber W K M
|
||||
MoveWindow W K M
|
||||
MoveWorkspaceToMonitorNumber W K M
|
||||
NamedWorkspaceContainerPadding W K M
|
||||
NamedWorkspaceLayout W K M
|
||||
NamedWorkspaceLayoutCustom W - -
|
||||
NamedWorkspaceLayoutCustomRule W - -
|
||||
NamedWorkspaceLayoutRule W K M
|
||||
NamedWorkspacePadding W K M
|
||||
NamedWorkspaceRule W K M
|
||||
NamedWorkspaceTiling W K M
|
||||
NewWorkspace W K M
|
||||
NotificationSchema W K M
|
||||
Pan W K M
|
||||
PanGesture W - M
|
||||
PreselectDirection W K M
|
||||
Promote W K M
|
||||
PromoteFocus W K M
|
||||
PromoteSwap W K M
|
||||
PromoteWindow W K M
|
||||
Query W K M
|
||||
QuickLoad W K M
|
||||
QuickSave W K M
|
||||
ReloadConfiguration W - -
|
||||
ReloadHotkeys - K -
|
||||
ReloadStaticConfiguration W K M
|
||||
RemoveSubscriberPipe W - -
|
||||
RemoveSubscriberSocket W K M
|
||||
RemoveTitleBar W - -
|
||||
ReplaceConfiguration W K M
|
||||
ResizeDelta W K M
|
||||
ResizeWindowAxis W K M
|
||||
ResizeWindowEdge W K M
|
||||
Retile W K M
|
||||
RetileWithResizeDimensions W K M
|
||||
Save W K M
|
||||
ScrollingLayoutColumns W K M
|
||||
ScrollingLayoutFullWidth W K M
|
||||
SendContainerToLastWorkspace W K M
|
||||
SendContainerToMonitorNumber W K M
|
||||
SendContainerToMonitorWorkspaceNumber W K M
|
||||
SendContainerToNamedWorkspace W K M
|
||||
SendContainerToWorkspaceNumber W K M
|
||||
SessionFloatRule W K M
|
||||
SessionFloatRules W K M
|
||||
SocketSchema W K M
|
||||
StackAll W K M
|
||||
StackWindow W K M
|
||||
StackbarBackgroundColour W - -
|
||||
StackbarFocusedTextColour W - -
|
||||
StackbarFontFamily W - -
|
||||
StackbarFontSize W - -
|
||||
StackbarHeight W - -
|
||||
StackbarLabel W - -
|
||||
StackbarMode W - -
|
||||
StackbarTabWidth W - -
|
||||
StackbarUnfocusedTextColour W - -
|
||||
State W K M
|
||||
StaticConfigSchema W K M
|
||||
Stop W K M
|
||||
StopIgnoreRestore W K M
|
||||
SwapWorkspacesToMonitorNumber W K M
|
||||
Theme W K M
|
||||
ToggleColumnStack W K M
|
||||
ToggleCrossMonitorMoveBehaviour W K M
|
||||
ToggleFloat W K M
|
||||
ToggleFloatOverride W K M
|
||||
ToggleFocusFollowsMouse W K -
|
||||
ToggleLock W K M
|
||||
ToggleMaximize W K -
|
||||
ToggleMonocle W K M
|
||||
ToggleMonocleFocusBehaviour W K M
|
||||
ToggleMouseFollowsFocus W K M
|
||||
TogglePause W K M
|
||||
ToggleTiling W K M
|
||||
ToggleTitleBars W - -
|
||||
ToggleTransparency W K -
|
||||
ToggleWindowBasedWorkAreaOffset W K M
|
||||
ToggleWindowContainerBehaviour W K M
|
||||
ToggleWorkspaceFloatOverride W K M
|
||||
ToggleWorkspaceLayer W K M
|
||||
ToggleWorkspaceWindowContainerBehaviour W K M
|
||||
Transparency W K -
|
||||
TransparencyAlpha W K -
|
||||
UnlockMonitorWorkspaceContainer W K M
|
||||
UnmanageFocusedWindow W K M
|
||||
UnmanagedWindowOperationBehaviour W K M
|
||||
UnstackAll W K M
|
||||
UnstackWindow W K M
|
||||
VisibleWindows W K M
|
||||
WatchConfiguration W - -
|
||||
WindowHidingBehaviour W - -
|
||||
WorkAreaOffset W K M
|
||||
WorkspaceLayout W K M
|
||||
WorkspaceLayoutCustom W - -
|
||||
WorkspaceLayoutCustomRule W - -
|
||||
WorkspaceLayoutRule W K M
|
||||
WorkspaceName W K M
|
||||
WorkspacePadding W K M
|
||||
WorkspaceRule W K M
|
||||
WorkspaceTiling W K M
|
||||
WorkspaceWorkAreaOffset W K M
|
||||
|
@@ -0,0 +1,195 @@
|
||||
AddSubscriberPipe
|
||||
AddSubscriberSocket
|
||||
AddSubscriberSocketWithOptions
|
||||
AdjustContainerPadding
|
||||
AdjustWorkspacePadding
|
||||
AltFocusHack
|
||||
Animation
|
||||
AnimationDuration
|
||||
AnimationFps
|
||||
AnimationStyle
|
||||
ApplicationSpecificConfigurationSchema
|
||||
ApplyState
|
||||
Border
|
||||
BorderColour
|
||||
BorderImplementation
|
||||
BorderOffset
|
||||
BorderStyle
|
||||
BorderWidth
|
||||
CancelPreselect
|
||||
CenterFocus
|
||||
ChangeLayout
|
||||
ChangeLayoutCustom
|
||||
ClearAllWorkspaceRules
|
||||
ClearNamedWorkspaceLayoutRules
|
||||
ClearNamedWorkspaceRules
|
||||
ClearSessionFloatRules
|
||||
ClearWorkspaceLayoutRules
|
||||
ClearWorkspaceRules
|
||||
Close
|
||||
CloseWorkspace
|
||||
CompleteConfiguration
|
||||
Consume
|
||||
ContainerPadding
|
||||
CrossMonitorMoveBehaviour
|
||||
CycleFocusEmptyWorkspace
|
||||
CycleFocusMonitor
|
||||
CycleFocusWindow
|
||||
CycleFocusWorkspace
|
||||
CycleLayout
|
||||
CycleMoveContainerToMonitor
|
||||
CycleMoveContainerToWorkspace
|
||||
CycleMoveWindow
|
||||
CycleMoveWorkspaceToMonitor
|
||||
CycleSendContainerToMonitor
|
||||
CycleSendContainerToWorkspace
|
||||
CycleStack
|
||||
CycleStackIndex
|
||||
DebugWindow
|
||||
DisplayIndexPreference
|
||||
EagerFocus
|
||||
EnforceWorkspaceRules
|
||||
EnsureNamedWorkspaces
|
||||
EnsureWorkspaces
|
||||
Expand
|
||||
Expel
|
||||
FlipLayout
|
||||
FocusFollowsMouse
|
||||
FocusLastWorkspace
|
||||
FocusMonitorAtCursor
|
||||
FocusMonitorNumber
|
||||
FocusMonitorWorkspaceNumber
|
||||
FocusNamedWorkspace
|
||||
FocusStackWindow
|
||||
FocusWindow
|
||||
FocusWorkspaceNumber
|
||||
FocusWorkspaceNumbers
|
||||
FocusedWorkspaceContainerPadding
|
||||
FocusedWorkspacePadding
|
||||
ForceFocus
|
||||
GenerateStaticConfig
|
||||
GlobalState
|
||||
IdentifyBorderOverflowApplication
|
||||
IdentifyLayeredApplication
|
||||
IdentifyObjectNameChangeApplication
|
||||
IdentifyTrayApplication
|
||||
IgnoreRule
|
||||
InitialNamedWorkspaceRule
|
||||
InitialWorkspaceRule
|
||||
InvisibleBorders
|
||||
LayoutRatios
|
||||
Load
|
||||
LockMonitorWorkspaceContainer
|
||||
ManageFocusedWindow
|
||||
ManageRule
|
||||
Minimize
|
||||
MonitorIndexPreference
|
||||
MonitorInformation
|
||||
MonitorWorkAreaOffset
|
||||
MonocleFocusBehaviour
|
||||
MouseFollowsFocus
|
||||
MoveContainerToLastWorkspace
|
||||
MoveContainerToMonitorNumber
|
||||
MoveContainerToMonitorWorkspaceNumber
|
||||
MoveContainerToNamedWorkspace
|
||||
MoveContainerToWorkspaceNumber
|
||||
MoveWindow
|
||||
MoveWorkspaceToMonitorNumber
|
||||
NamedWorkspaceContainerPadding
|
||||
NamedWorkspaceLayout
|
||||
NamedWorkspaceLayoutCustom
|
||||
NamedWorkspaceLayoutCustomRule
|
||||
NamedWorkspaceLayoutRule
|
||||
NamedWorkspacePadding
|
||||
NamedWorkspaceRule
|
||||
NamedWorkspaceTiling
|
||||
NewWorkspace
|
||||
NotificationSchema
|
||||
Pan
|
||||
PanGesture
|
||||
PreselectDirection
|
||||
Promote
|
||||
PromoteFocus
|
||||
PromoteSwap
|
||||
PromoteWindow
|
||||
Query
|
||||
QuickLoad
|
||||
QuickSave
|
||||
ReloadConfiguration
|
||||
ReloadStaticConfiguration
|
||||
RemoveSubscriberPipe
|
||||
RemoveSubscriberSocket
|
||||
RemoveTitleBar
|
||||
ReplaceConfiguration
|
||||
ResizeDelta
|
||||
ResizeWindowAxis
|
||||
ResizeWindowEdge
|
||||
Retile
|
||||
RetileWithResizeDimensions
|
||||
Save
|
||||
ScrollingLayoutColumns
|
||||
ScrollingLayoutFullWidth
|
||||
SendContainerToLastWorkspace
|
||||
SendContainerToMonitorNumber
|
||||
SendContainerToMonitorWorkspaceNumber
|
||||
SendContainerToNamedWorkspace
|
||||
SendContainerToWorkspaceNumber
|
||||
SessionFloatRule
|
||||
SessionFloatRules
|
||||
SocketSchema
|
||||
StackAll
|
||||
StackWindow
|
||||
StackbarBackgroundColour
|
||||
StackbarFocusedTextColour
|
||||
StackbarFontFamily
|
||||
StackbarFontSize
|
||||
StackbarHeight
|
||||
StackbarLabel
|
||||
StackbarMode
|
||||
StackbarTabWidth
|
||||
StackbarUnfocusedTextColour
|
||||
State
|
||||
StaticConfigSchema
|
||||
Stop
|
||||
StopIgnoreRestore
|
||||
SwapWorkspacesToMonitorNumber
|
||||
Theme
|
||||
ToggleColumnStack
|
||||
ToggleCrossMonitorMoveBehaviour
|
||||
ToggleFloat
|
||||
ToggleFloatOverride
|
||||
ToggleFocusFollowsMouse
|
||||
ToggleLock
|
||||
ToggleMaximize
|
||||
ToggleMonocle
|
||||
ToggleMonocleFocusBehaviour
|
||||
ToggleMouseFollowsFocus
|
||||
TogglePause
|
||||
ToggleTiling
|
||||
ToggleTitleBars
|
||||
ToggleTransparency
|
||||
ToggleWindowBasedWorkAreaOffset
|
||||
ToggleWindowContainerBehaviour
|
||||
ToggleWorkspaceFloatOverride
|
||||
ToggleWorkspaceLayer
|
||||
ToggleWorkspaceWindowContainerBehaviour
|
||||
Transparency
|
||||
TransparencyAlpha
|
||||
UnlockMonitorWorkspaceContainer
|
||||
UnmanageFocusedWindow
|
||||
UnmanagedWindowOperationBehaviour
|
||||
UnstackAll
|
||||
UnstackWindow
|
||||
VisibleWindows
|
||||
WatchConfiguration
|
||||
WindowHidingBehaviour
|
||||
WorkAreaOffset
|
||||
WorkspaceLayout
|
||||
WorkspaceLayoutCustom
|
||||
WorkspaceLayoutCustomRule
|
||||
WorkspaceLayoutRule
|
||||
WorkspaceName
|
||||
WorkspacePadding
|
||||
WorkspaceRule
|
||||
WorkspaceTiling
|
||||
WorkspaceWorkAreaOffset
|
||||
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user