Skip to content

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

feat(domain): add hardcoded keybindings for moving focused window

Lars Berger0a2df0189a79
diff --git a/LarsWM.Domain/Common/Services/KeybindingService.cs b/LarsWM.Domain/Common/Services/KeybindingService.cs
index 9f2c4ddd..a3e574ba 100644
--- a/LarsWM.Domain/Common/Services/KeybindingService.cs
+++ b/LarsWM.Domain/Common/Services/KeybindingService.cs
@@ -93,6 +93,14 @@ namespace LarsWM.Domain.Common.Services
_bus.Invoke(new FocusWorkspaceCommand("8"));
if (pressedKey == Keys.D9)
_bus.Invoke(new FocusWorkspaceCommand("9"));
+ if (pressedKey == Keys.A)
+ _bus.Invoke(new MoveFocusedWindowCommand(Direction.LEFT));
+ if (pressedKey == Keys.S)
+ _bus.Invoke(new MoveFocusedWindowCommand(Direction.DOWN));
+ if (pressedKey == Keys.W)
+ _bus.Invoke(new MoveFocusedWindowCommand(Direction.UP));
+ if (pressedKey == Keys.D)
+ _bus.Invoke(new MoveFocusedWindowCommand(Direction.RIGHT));
if (pressedKey == Keys.U)
_bus.Invoke(new ResizeFocusedWindowCommand(ResizeDirection.SHRINK_WIDTH));
if (pressedKey == Keys.I)