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
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ 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 to fit 3/4 of the width |
| ------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| <kbd>ctrl</kbd> + <kbd>Meta</kbd> + <kbd>shift</kbd> + <kbd>Numpad8</kbd> | <kbd>UltrawideWindows: Move Window to fit left-height 3/4 width</kbd> |
| <kbd>ctrl</kbd> + <kbd>Meta</kbd> + <kbd>shift</kbd> + <kbd>Numpad9</kbd> | <kbd>UltrawideWindows: Move Window to fit right-height 3/4 width</kbd> |

| Shortcuts | Commands to fit 2/3 of the width |
| ----------------------------------- | ---------------------------------------------------------------------- |
Expand Down
10 changes: 9 additions & 1 deletion contents/code/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,17 @@ registerShortcut("MoveWindowToRightHeight4x2_centerbiased", "UltrawideWindows: M
move(workspace, 4, 1, 3, 0, 1, 1)
});

// Fit 3/4 screen
registerShortcut("MoveWindowToLeftHeight34", "UltrawideWindows: Move Window to fit left-height 3/4 width", "Ctrl+Meta+Shift+Num+8", function () {
move(workspace, 4, 1, 0, 0, 3, 1)
});

registerShortcut("MoveWindowToRightHeight34", "UltrawideWindows: Move Window to fit right-height 3/4 width", "Ctrl+Meta+Shift+Num+9", function () {
move(workspace, 4, 1, 1, 0, 3, 1)
});

// Fit 2/3 screen
registerShortcut("MoveWindowToUpLeft23", "UltrawideWindows: Move Window to fit up-left 2/3 width ", "alt+Num+7", function () {
registerShortcut("MoveWindowToUpLeft23", "UltrawideWindows: Move Window to fit up-left 2/3 width", "alt+Num+7", function () {
move(workspace, 3, 2, 0, 0, 2, 1)
});

Expand Down
Binary file modified movewindowtocenter.kwinscript
Binary file not shown.