21 Commits

Author SHA1 Message Date
Dome 5020250699 Update README.md 2025-09-28 23:33:32 +02:00
Dome 16688d6996 Update README.md 2025-09-28 23:17:24 +02:00
Dome 6b8ac746aa Update modern.js 2025-09-28 23:16:42 +02:00
Dome bcc5044cf8 Update prefs_modern.js 2025-09-28 23:15:56 +02:00
Dome e2df9fb038 Delete metadata_gnome45-48.json.in 2025-09-28 23:11:46 +02:00
Dome 5e23390911 Delete prefs_gnome45-48.js 2025-09-28 23:11:27 +02:00
Dome 7ba8dd1b0f Delete gnome45-48.js 2025-09-28 23:11:18 +02:00
Dome 849e2dc177 Update metadata_modern.json.in 2025-09-28 23:11:03 +02:00
Dome 982ca71642 Update modern.js 2025-09-28 23:10:43 +02:00
Dome a62c2307f9 Merge pull request #13 from ValerioCataldo/gnome49-comp
Gnome 49 compatibility
2025-09-28 20:21:56 +00:00
Dome b1c4924276 Rename metadata_modern,json.in to metadata_modern.json.in 2025-09-28 22:20:56 +02:00
Dome 73874fbd4b Rename prefs.interim.js to prefs_interim.js 2025-09-28 22:19:08 +02:00
valerio cataldo e4af31cb90 updating metadata 2025-09-27 13:26:15 +02:00
valerio cataldo b400189b4f split files 2025-09-27 13:23:26 +02:00
ValerioCataldo 568ceb7823 Merge branch 'Domoel:main' into gnome49-comp 2025-09-27 13:12:59 +02:00
valerio cataldo 138701a33d fixed for gnome49 2025-09-27 13:03:24 +02:00
Dome bbe09af89b Update interim.js 2025-08-22 12:37:08 +02:00
Dome 3331c84f31 Update Makefile 2025-08-22 12:34:32 +02:00
Dome 6591690c69 Update interim.js 2025-08-22 12:27:05 +02:00
Dome 40bea7a937 Update prefs_modern.js 2025-08-22 12:25:30 +02:00
Dome 4ea80d27bf Update README.md 2025-08-13 03:33:25 +00:00
6 changed files with 26 additions and 10 deletions
+1 -1
View File
@@ -12,7 +12,7 @@
###############################################################################
UUID := simple-tiling@domoel
VERSION := 7.1
VERSION := 7.2
EXTDIR := $(HOME)/.local/share/gnome-shell/extensions
COMMON_FILES := prefs.js schemas exceptions.txt locale *.css README.md LICENSE
+2 -3
View File
@@ -16,7 +16,7 @@ A lightweight, opinionated, and automatic tiling window manager for GNOME Shell
Simple Tiling is a GNOME Shell extension created for users who want a clean, predictable, and automatic tiling layout without the complexity of larger, more feature-heavy tiling extensions. It is designed to be simple to configure and intuitive to use, focusing on a core set of essential tiling features.
This extension was built from the ground up to be stable and performant on **GNOME Shell 3.38**. However it is now also supporting modern gnome shells up to **version 48**.
This extension was built from the ground up to be stable and performant on **GNOME Shell 3.38**. However it is now also supporting modern gnome shells up to **version 49**.
## Features
@@ -37,7 +37,7 @@ This extension was built from the ground up to be stable and performant on **GNO
Please note that this extension has been developed for a very specific environment. However, with the latest updates, I have ensured that modern Gnome Shells and Wayland are also supported.
* **GNOME Shell Version:** **3.38 - 48**
* **GNOME Shell Version:** **3.38 - 49**
* **Session Type:** **X11** (Wayland is still in beta but should be fine!).
* **Monitor Setup:** **Single monitor only.** Multi-monitor support is not yet implemented.
@@ -122,4 +122,3 @@ This extension was built to solve a specific need. However, future enhancements
## License
This project is licensed under the MIT License - see the `LICENSE` file for details.
+2 -1
View File
@@ -7,7 +7,8 @@
"45",
"46",
"47",
"48"
"48",
"49"
],
"settings-schema": "org.gnome.shell.extensions.simple-tiling.domoel",
"preferences_ui": "prefs.js",
+20 -4
View File
@@ -1,5 +1,5 @@
/////////////////////////////////////////////////////////////
// SimpleTiling  MODERN (GNOME Shell 45+) //
// SimpleTiling  MODERN (GNOME Shell 45+) //
// © 2025domoel  MIT //
/////////////////////////////////////////////////////////////
@@ -14,6 +14,7 @@ import GLib from 'gi://GLib';
import Clutter from 'gi://Clutter';
// ── CONST ────────────────────────────────────────────
const SHELL_MAJOR = parseInt(Shell.get_session().get_shell_version().split('.')[0]);
const WM_SCHEMA = 'org.gnome.desktop.wm.keybindings';
const TILING_DELAY_MS = 20; // Change Tiling Window Delay
@@ -347,8 +348,15 @@ class Tiler {
if (index > -1) this._centerTimeoutIds.splice(index, 1);
if (!win || !win.get_display()) return GLib.SOURCE_REMOVE;
if (win.get_maximized())
win.unmaximize(Meta.MaximizeFlags.BOTH);
if (SHELL_MAJOR < 49) {
if (win.get_maximized()) {
win.unmaximize(Meta.MaximizeFlags.BOTH);
}
} else {
if (win.is_maximized()) {
win.unmaximize();
}
}
const monitorIndex = win.get_monitor();
const workspace = this._workspaceManager.get_active_workspace();
@@ -558,7 +566,15 @@ class Tiler {
height: workArea.height - 2 * this._outerGapVertical,
};
windowsToTile.forEach((win) => {
if (win.get_maximized()) win.unmaximize(Meta.MaximizeFlags.BOTH);
if (SHELL_MAJOR < 49) {
if (win.get_maximized()) {
win.unmaximize(Meta.MaximizeFlags.BOTH);
}
} else {
if (win.is_maximized()) {
win.unmaximize();
}
}
});
if (windowsToTile.length === 1) {
windowsToTile[0].move_resize_frame(
+1 -1
View File
@@ -8,7 +8,7 @@ import Adw from 'gi://Adw';
import Gio from 'gi://Gio';
import Gtk from 'gi://Gtk';
import GLib from 'gi://GLib';
import { ExtensionPreferences, gettext as _ } from 'resource:///org/gnome/shell/extensions/prefs.js';
import { ExtensionPreferences, gettext as _ } from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js';
export default class SimpleTilingPrefs extends ExtensionPreferences {
fillPreferencesWindow(window) {