Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,11 @@ My suggestion is to use the following configuration:
| <kbd>ctrl</kbd> + <kbd>Meta</kbd> + <kbd>shift</kbd> + <kbd>Numpad6</kbd> | <kbd>UltrawideWindows: Move Window to center-right-height (4x2 center biased)</kbd> |
| <kbd>ctrl</kbd> + <kbd>Meta</kbd> + <kbd>Numpad6</kbd> | <kbd>UltrawideWindows: Move Window to right-height (4x2 center biased)</kbd> |

| Shortcuts | Commands in 1x3 grid (useful for vertical monitors) |
| ----------------------------------------------------- | -------------------------------------------------------------- |
| <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>Numpad8</kbd> | <kbd>UltrawideWindows: Move Window to up (1x3)</kbd> |
| <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>Numpad5</kbd> | <kbd>UltrawideWindows: Move Window to center (1x3)</kbd> |
| <kbd>ctrl</kbd> + <kbd>alt</kbd> + <kbd>Numpad2</kbd> | <kbd>UltrawideWindows: Move Window to down (1x3)</kbd> |

| Shortcuts | Commands to fit 2/3 of the width |
| ----------------------------------- | ---------------------------------------------------------------------- |
Expand Down
15 changes: 15 additions & 0 deletions contents/code/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,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)
Expand Down
Binary file modified movewindowtocenter.kwinscript
Binary file not shown.