Skip to content

GlazeWM is a tiling window manager for macOS and Windows inspired by i3wm.

feat(domain): created DTO to be used for deserializing user config yaml

Lars930c611fb093
diff --git a/LarsWM.Domain/UserConfigs/UserConfigFileDto.cs b/LarsWM.Domain/UserConfigs/UserConfigFileDto.cs
new file mode 100644
index 00000000..0cafe5ff
--- /dev/null
+++ b/LarsWM.Domain/UserConfigs/UserConfigFileDto.cs
@@ -0,0 +1,37 @@
+using System.Collections.Generic;
+
+namespace LarsWM.Domain.UserConfigs
+{
+ class UserConfigFileDto
+ {
+ public GapsConfig Gaps { get; set; }
+ public BarConfig Bar { get; set; }
+ public List<WorkspaceConfig> Workspaces { get; set; }
+ public List<KeybindingsConfig> Keybindings { get; set; }
+ }
+
+ struct GapsConfig
+ {
+ public int InnerGap { get; set; }
+ public int OuterGap { get; set; }
+ }
+
+ struct BarConfig
+ {
+ public int Height { get; set; }
+ }
+
+ struct WorkspaceConfig
+ {
+ public string Name { get; set; }
+ public string BindToMonitor { get; set; }
+ public string CustomDisplayName { get; set; }
+ public bool KeepAlive { get; set; }
+ }
+
+ struct KeybindingsConfig
+ {
+ public string Command { get; set; }
+ public List<string> Bindings { get; set; }
+ }
+}