Skip to content

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

feat(domain): further brainstorming on config file format

Larsb6f723cafcbf
diff --git a/LarsWM.Domain/UserConfigs/SampleUserConfig.json b/LarsWM.Domain/UserConfigs/SampleUserConfig.json
deleted file mode 100644
index 288c4ea6..00000000
--- a/LarsWM.Domain/UserConfigs/SampleUserConfig.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "gaps": {
- "innerGap": 10,
- "topGap": 20,
- "bottomGap": 20
- },
- "shortcuts": {
- "shiftFocusLeft": [ "mod+h" ],
- "shiftFocusRight": [ "mod+j" ]
- }
-}
\ No newline at end of file
diff --git a/LarsWM.Domain/UserConfigs/SampleUserConfig.yaml b/LarsWM.Domain/UserConfigs/SampleUserConfig.yaml
new file mode 100644
index 00000000..c30aa59e
--- /dev/null
+++ b/LarsWM.Domain/UserConfigs/SampleUserConfig.yaml
@@ -0,0 +1,26 @@
+Gaps:
+ InnerGap: 10
+ OuterGap: 20
+
+Bar:
+ Height: 50
+
+
+Workspaces:
+ - Name: 1
+ BindToMonitor: "Primary"
+ # Other possible names: CustomDisplayName, OverrideName
+ DisplayedName: "Aa"
+ KeepAlive: true
+ - Name: 2
+ - Name: 3
+ - Name: 4
+ - Name: 5
+ - Name: 6
+
+Keybindings:
+ - Binding: [ "mod+h" ]
+ Exec: "ShiftFocusLeft"
+
+ - Binding: [ "mod+h" ]
+ ExecInShell: "rundll32.exe user32.dll,LockWorkStation"