eww/crates/yuck/src/config/snapshots/yuck__config__test__config.snap
2021-07-26 20:41:36 +02:00

93 lines
2.4 KiB
Text

---
source: crates/yuck/src/config/test.rs
expression: config.unwrap()
---
Config(
widget_definitions: {
"bar": WidgetDefinition(
name: "bar",
expected_args: [
AttrName("arg"),
AttrName("arg2"),
],
widget: WidgetUse(
name: "foo",
attrs: Attributes(
span: Span(47, 47, 51),
attrs: {
AttrName("arg"): AttrEntry(
key_span: Span(52, 56, 0),
value: Literal(Span(57, 61, 0), DynVal("hi", Span(18446744073709551615, 18446744073709551615, 18446744073709551615))),
),
},
),
children: [],
span: Span(47, 62, 0),
name_span: Span(48, 51, 0),
),
span: Span(9, 63, 0),
args_span: Span(24, 34, 0),
),
},
window_definitions: {
"some-window": WindowDefinition(
name: "some-window",
geometry: Some(WindowGeometry(
anchor_point: AnchorPoint(
x: START,
y: START,
),
offset: Coords(
x: Pixels(0),
y: Pixels(0),
),
size: Coords(
x: Percent(12),
y: Pixels(20),
),
)),
stacking: Foreground,
monitor_number: Some(12),
widget: WidgetUse(
name: "bar",
attrs: Attributes(
span: Span(463, 463, 467),
attrs: {
AttrName("arg"): AttrEntry(
key_span: Span(468, 472, 0),
value: Literal(Span(473, 478, 0), DynVal("bla", Span(18446744073709551615, 18446744073709551615, 18446744073709551615))),
),
},
),
children: [],
span: Span(463, 479, 0),
name_span: Span(464, 467, 0),
),
resizable: true,
backend_options: BackendWindowOptions(
wm_ignore: false,
sticky: true,
window_type: Dock,
struts: StrutDefinition(
side: Left,
dist: Pixels(30),
),
),
),
},
var_definitions: {
VarName("some_var"): VarDefinition(
name: VarName("some_var"),
initial_value: DynVal("bla", Span(18446744073709551615, 18446744073709551615, 18446744073709551615)),
span: Span(72, 95, 0),
),
},
script_vars: {
VarName("stuff"): Listen(ListenScriptVar(
name: VarName("stuff"),
command: "tail -f stuff",
command_span: Span(168, 183, 0),
)),
},
)