diff --git a/README.md b/README.md index a710728..74f171e 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,11 @@ My suggestion is to use the following configuration: | ctrl + Meta + shift + Numpad6 | UltrawideWindows: Move Window to center-right-height (4x2 center biased) | | ctrl + Meta + Numpad6 | UltrawideWindows: Move Window to right-height (4x2 center biased) | +| Shortcuts | Commands in 1x3 grid (useful for vertical monitors) | +| ----------------------------------------------------- | -------------------------------------------------------------- | +| ctrl + alt + Numpad8 | UltrawideWindows: Move Window to up (1x3) | +| ctrl + alt + Numpad5 | UltrawideWindows: Move Window to center (1x3) | +| ctrl + alt + Numpad2 | UltrawideWindows: Move Window to down (1x3) | | Shortcuts | Commands to fit 2/3 of the width | | ----------------------------------- | ---------------------------------------------------------------------- | diff --git a/contents/code/main.js b/contents/code/main.js index 8fbb468..c114fcb 100644 --- a/contents/code/main.js +++ b/contents/code/main.js @@ -280,6 +280,21 @@ registerShortcut("MoveWindowToRightHeight2x2", "UltrawideWindows: Move Window to }); +// GRID 1x3 (for vertical monitors) + +registerShortcut("MoveWindowToUp1x3", "UltrawideWindows: Move Window to up (1x3)", "ctrl+alt+Num+8", function () { + move(workspace, 1, 3, 0, 0, 1, 1) +}); + +registerShortcut("MoveWindowToCenter1x3", "UltrawideWindows: Move Window to center (1x3)", "ctrl+alt+Num+5", function () { + move(workspace, 1, 3, 0, 1, 1, 1) +}); + +registerShortcut("MoveWindowToDown1x3", "UltrawideWindows: Move Window to down (1x3)", "ctrl+alt+Num+2", function () { + move(workspace, 1, 3, 0, 2, 1, 1) +}); + + // GRID 4x2 center biased (lateral windows fit accordingly to ctrl-X shortcuts) registerShortcut("MoveWindowToUpLeft4x2_centerbiased", "UltrawideWindows: Move Window to up-left (4x2 center biased)", "Ctrl+Meta+Num+7", function () { move(workspace, 4, 2, 0, 0, 1, 1)