Skip to content

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

feat(domain): handle parsing of 'toggle focus mode' command string

Lars Berger65196e564171
diff --git a/GlazeWM.Domain/UserConfigs/CommandParsingService.cs b/GlazeWM.Domain/UserConfigs/CommandParsingService.cs
index 837dc642..ab3e408c 100644
--- a/GlazeWM.Domain/UserConfigs/CommandParsingService.cs
+++ b/GlazeWM.Domain/UserConfigs/CommandParsingService.cs
@@ -101,6 +101,11 @@ namespace GlazeWM.Domain.UserConfigs
return commandParts[1] switch
{
"floating" => new ToggleFocusedWindowFloatingCommand(),
+ "focus" => commandParts[2] switch
+ {
+ "mode" => new ToggleFocusModeCommand(),
+ _ => throw new ArgumentException(),
+ },
_ => throw new ArgumentException(),
};
}