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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@babel/generator": "^7.28.3",
"@babel/parser": "^7.28.4",
"@babel/traverse": "^7.28.4",
"esbuild": "^0.25.10",
"esbuild": "^0.27.3",
"esbuild-sass-plugin": "^3.3.1",
"eslint": "^9.39.1",
"eslint-config-prettier": "^10.1.8",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,11 @@
<summary>Enable auto tiling</summary>
<description>Automatically tile a new window to the best tile according to the current layout.</description>
</key>
<key name="always-maximize-with-up" type="b">
<default>true</default>
<summary>Always maximize with move up</summary>
<description>When using the Move Window Up shortcut, always maximize on the current monitor instead of moving to the monitor above.</description>
</key>
<key name="raise-together" type="b">
<default>false</default>
<summary>Raise tiled windows together</summary>
Expand Down
6 changes: 4 additions & 2 deletions src/components/tilingsystem/tilingManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,8 @@ export class TilingManager {
if (
direction === KeyBindingsDirection.UP &&
extWin.assignedTile &&
extWin.assignedTile?.y === 0
extWin.assignedTile?.y === 0 &&
(Settings.ALWAYS_MAXIMIZE_WITH_UP || clamp)
) {
maximizeWindow(window);
return true;
Expand Down Expand Up @@ -428,7 +429,8 @@ export class TilingManager {
// handle maximize of window
if (
direction === KeyBindingsDirection.UP &&
window.can_maximize()
window.can_maximize() &&
(Settings.ALWAYS_MAXIMIZE_WITH_UP || clamp)
) {
maximizeWindow(window);
return true;
Expand Down
9 changes: 9 additions & 0 deletions src/prefs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,15 @@ export default class TilingShellExtensionPreferences extends ExtensionPreference
);
behaviourGroup.add(autoTilingRow);

const alwaysMaximizeWithUpRow = this._buildSwitchRow(
Settings.KEY_ALWAYS_MAXIMIZE_WITH_UP,
_('Always maximize with Move Up'),
_(
'When enabled, Move Up always maximizes on the current monitor instead of moving to the monitor above',
),
);
behaviourGroup.add(alwaysMaximizeWithUpRow);

const resizeComplementingRow = this._buildSwitchRow(
Settings.KEY_RESIZE_COMPLEMENTING_WINDOWS,
_('Enable auto-resize of the complementing tiled windows'),
Expand Down
9 changes: 9 additions & 0 deletions src/settings/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ export default class Settings {
static KEY_ENABLE_BLUR_SELECTED_TILEPREVIEW = 'enable-blur-selected-tilepreview';
static KEY_ENABLE_MOVE_KEYBINDINGS = 'enable-move-keybindings';
static KEY_ENABLE_AUTO_TILING = 'enable-autotiling';
static KEY_ALWAYS_MAXIMIZE_WITH_UP = 'always-maximize-with-up';
static KEY_RAISE_TOGETHER = 'raise-together';
static KEY_ACTIVE_SCREEN_EDGES = 'active-screen-edges';
static KEY_TOP_EDGE_MAXIMIZE = 'top-edge-maximize';
Expand Down Expand Up @@ -341,6 +342,14 @@ export default class Settings {
set_boolean(Settings.KEY_ENABLE_AUTO_TILING, val);
}

static get ALWAYS_MAXIMIZE_WITH_UP(): boolean {
return get_boolean(Settings.KEY_ALWAYS_MAXIMIZE_WITH_UP);
}

static set ALWAYS_MAXIMIZE_WITH_UP(val: boolean) {
set_boolean(Settings.KEY_ALWAYS_MAXIMIZE_WITH_UP, val);
}

static get RAISE_TOGETHER(): boolean {
return get_boolean(Settings.KEY_RAISE_TOGETHER);
}
Expand Down