velitasali / gnome-shell-extension-awesome-tiles Goto Github PK
View Code? Open in Web Editor NEWTile windows using keyboard shortcuts.
Home Page: https://extensions.gnome.org/extension/4702/awesome-tiles/
License: GNU General Public License v3.0
Tile windows using keyboard shortcuts.
Home Page: https://extensions.gnome.org/extension/4702/awesome-tiles/
License: GNU General Public License v3.0
Hi,
this extension is great for wide screens, thanks!
I like the function to use several key-presses to get windows in 1/3, 1/2 and 2/3 widths, it helps when looking at multiple windows.
What I'm missing is a function to easily put a window, 1/3 of the width but full height, in the middle of the screen. As it is now, I put one to the left, one to the right, then manually resize the third window in the middle.
Super+KP_5
unfortunately reduces the height as well, so it doesn't quite do what I want..
Could you please implement specific gaps for each side (e.g. in percent).
Here is an example like:
inputs:
const topGridPortion = 10
const bottomGridPortion = 100
const leftGridPortion = 10
const rightGridPortion = 10
calculation before move_resize_frame:
x = x+(workArea.gaps.x*(leftGridPortion/100-1))
w = w-(workArea.gaps.x*(leftGridPortion/100-1))-(workArea.gaps.x*(rightGridPortion/100-1))
y = y+(workArea?.gaps.y*(topGridPortion/100-1))
h = h-(workArea.gaps.y*(topGridPortion/100-1))-(workArea.gaps.y*(bottomGridPortion/100-1))
Would be cool if it was in the original extension.
A feature I miss from "Put Windows" extension is to move the window to another monitor.
So press super+right (e.g.) and it will dock to the right, but press it again and it moves to the right-hand side monitor.
Hi Veli!
I've noticed a thing that i suppose is an issue but i'm really not sure if it's intended:
if i set a gap for tiling, the gap is observed only on the external area of windows but not between windows, or at least is strangely performed.
I've put a screenshot of what i'm talking about to be clearer.
Is that a bug or is it correct?
Hi,
great extension. I really love the simplicity of it! I was actually looking for an extension that would allow me to make the tiles split custom and found yours that is truly simple so I can modify it :)
Here's my changes: https://github.com/eboye/gnome-shell-extension-awesome-tiles/commits/main
As I'm really really new to gnome shell extensions, I'm pretty bad at making those options. But if you could make some kind of presets for tile splitting and incorporate that into the tile function.
I'm using a 21:9 monitor ultra wide and I often need to split my screen to 16:9 + 5:9. More often then anything else.
Also, I'm not sure if it's possible, but it would be great if there was an option to set preset per screen :) As I have another 16:9 screen that would be great if had regular tiling. But this one is less of an important to me :)
Anyhow, thanks a bunch for making this extension.
Thanks for this excellent extension!
It would be awesome to support Gnome 46, which was released very recently and (I believe) will ship with Ubuntu 24.04 next month!
I'm currently using 46, please let me know if there's anything I can do to help with porting it to this new version.
Cheers!
There are some use cases where I might want to return a window to its original (pre-tiled) size, e.g if I accidentally tiled an app or a modal/modeless dialog and it looks weird that looks weird.
Great extension -- thanks for that! I am a pixel perfect guy and would love to set the gap size in pixels instead of percentages. Also, an option for respecting inner gaps would be awesome. Thank you very much for consideration :)
First of all thanks for the great work. The extension lives up to its name and it's actually AWSOME.
However, I dare make a suggestion for a new feature:
As a user who works with three monitors, I would appreciate the addition of a setting that, when enabled, would allow keyboard shortcuts to tile the focused window on the monitor where the mouse cursor is currently located, rather than the window's original monitor.
Something like "Follow the mouse and tile"
Again thanks for your great job!!
Best regards
Hi, thanks for the great extension!
Is there a way to reduce the size of the gap or disable it altogether? (I tried following the instructions on the Useless Gaps README, but to no avail.)
Thanks!
Hi, thanks for this awesome plugin -- been using for the past few days and really loving it, especially the extremely intuitive "press-again" to increase/decrease the size!
One question I had was: is it possible to add a simple "Disable shortcut" feature?
The default shortcuts implements this nicely by just setting "press ESC to cancel, ENTER to confirm, and BACKSPACE to disable"
I'll sometimes accidentally click a setting, and I'm forced to assign a shortcut that doesn't interfere, and I'd assume it's basically safe to assume that "ESC", "BACKSPACE" and "ENTER" should be safe to never be part of the shortcut commands
cud u provide a documentation with shortcuts description pls?
Hey, thanks for the great extension! It helps me a lot!
So, I went to https://extensions.gnome.org/extension/4702/awesome-tiles/ and there was an update option. I clicked and the UI returned "Error". The extension stopped working. I tried uninstalling and then installing back (through both the website and cloning the repo), but it is not working anymore.
I am on Fedora Linux 36 (Workstation Edition), GNOME version 42.2 (Wayland).
Right now using the Tile Window to Center
functionality will cause the window to shrink/expand vertically as well as horizontally.
This makes perfect sense, however, it would be nice if there were options to only scale horizontally, letting the window take the full height of the screen.
I currently achieve this by using Super+KP_4 or Super+KP_6 until the window is at the size I want, then I use Super+KP_0 to centre the window. This is acceptable, but it would be great if there was some way to add some kind of discriminator to the tiling steps to indicate that only a particular dimension should be sized.
I'm using a 32:9 monitor, so having 3 applications sharing only the screen's horizontal space (in a non-homogeneous way) works really nicely.
This extension has been a life safer!
Possible partial functionality overlap with !23
Currently the extension allows customizing tiling steps for center and side tiling.
I think expanding this to allow a more fine grained control would be useful.
As an example (what I would like to use) :
The reason for me is that corner .65 has no real use. If I need a large window I either go .65 top/bottom or sides.
The fact that this however can not be configured results in me sometimes having to corner-tile multiple times to get the desired result.
If I have time on the weekend I might dig into the code to see if I can provide a PR. However I am not familiar with js and gnome-extension programming, so no promises :)
Hi,
It's possible I'm being dumb. I previously used this extension and it worked beautifully. I've now installed in on Gnome 42 and I cannot seem to get quarter tiling working properly. I can assign my own hotkeys and have quarter tiling working, but it used to be the case that if I tiled to the left (super + left), then hit super + down it would tile to the left-hand bottom corner. I cannot seem to replicate this functionality anymore and it was very useful. Is this intended behavior or have I missed something?
Regardless, great extension, thank you for making it
Would you mind adding support for gnome-45?
Firstly, thank you for making this extension. I've been using "Put Windows" for years, and it stopped working on ubuntu 22 / gnome 42. Was very happy to find this drop-in replacement!
What is the purpose of the gaps feature? I'm sure it serves some useful purpose, but I just can't figure out what that is? π
This is an upstream bug that appeared after an update to mutter. What happens is windows restore a previous size (set by move_resize_frame
) after they lose focus. As this is an upstream issue, there is nothing that can be done here.
You can track the issue here: https://gitlab.gnome.org/GNOME/mutter/-/issues/2091
Hi with portrait screens I sometimes want to divide the screen into more than 3 windows vertically but I have to do this manually, is there a way to change the snap sizes. I would benefit from 1/4 and 1/6 screen height options, thanks, simon
Add German translation.
I'll provide a pq.
No idea how to use this
First of all, thank you for this awesome extension.
I just upgraded to Ubuntu 22.10 and the extension manager disabled this extension as it's not compatible.
I found that just adding ,"43"
to the metadata.json makes it work without any issue.
Disclaimer: I use 0 as gap, so I didn't test it, but I don't think that's going to be a problem, as it appears it's only used for internal calculations.
As per title, i cannot change shortcut from "extensions" app, menu remains on "press your keyboard shortcut..."
GNOME 40
Ubuntu 21.10
When using super+Left for tile-left and super+shift+left for tile-upper-left this cannot distinguish between the two key combinations and only traps the super+left portion, ignoring the modifier. Other tiling plugins correctly handle this.
When I have two windows tiled vertically - i.e. one occupies the top 50% of the screen and the other the bottom 50% - there is a small gap between the windows, as well as between the top window and top edge of the screen, and bottom window and bottom edge of screen.
The settings:
This occurs whether there's a taskbar on the screen or not.
What could be the problem?
On latest Fedora Silverblue running GNOME 45, tiling Firefox has recently broken.
If I, for example, have Firefox tiled on the left half of the screen and press the keyboard shortcut to move it to the right, itβll animate and then snap back to the original location.
If I Alt+Esc to select the window, it will pop into existence where it should have been.
(It looks like the final window draw is failing following the animation.)
I installed this extension (on Ubuntu 20.04) for the first time, but I am totally clueless as to how to use this extension to tile/resize/position my windows. Which keystrokes are mapped to which action - the README is quite vague about it. Also, how to reconfigure the key mappings?
Currently, when you have a vertically oriented monitor and try to tile a window either in the center or to the bottom it does not align to the window edge. There is a small gap and I think its from not including the height of the window's title bar in the _tileWindow function. I've implemented a fix Im happy to create a MR for.
I run RHEL with Gnome Shell 3.32.2. I installed the extension from https://extensions.gnome.org/extension/4702/awesome-tiles/, but the install button turned into a red error button. After refreshing, I was able to extract the following error message:
SyntaxError: expected expression, got '.'
Stack trace:
get prefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:659:13
_showPrefs@resource:///org/gnome/shell/extensionPrefs/main.js:55:13
_extensionsLoaded@resource:///org/gnome/shell/extensionPrefs/main.js:308:13
_scanExtensions/<@resource:///org/gnome/shell/extensionPrefs/main.js:286:13
asyncCallback@resource:///org/gnome/gjs/modules/overrides/Gio.js:131:13
main@resource:///org/gnome/shell/extensionPrefs/main.js:691:5
@<main>:1:43
Hello, thank you so much for developing this extension!
I am coming from macOS, and this extension has helped a lot with my transition.
I would like to suggest a new feature, that would allow the focused window to be tiled at fractions.
For example:
I am using an ultrawide monitor, so being able to have more granular control over the size of my windows relative to the screen would help significantly with my productivity.
For reference, the feature I described is basically exactly from an app I've been using on my mac, called Rectangle.
Hey there, firstly thanks for that great extension!
Unfortunately on 20.04 (tested on 2 PCs) the settings window does not open. Extension version is 4.
Otherwise its working fine but on the laptiop I need to change the shortcuts as I don't have a numpad.
My Settings:
Gaps Between Windows: Off
Gap Between Window and Workspace: 0
Center Tiling Steps: 1
Side Tiling Steps: 0.5, 0.3
Image Description: Chrome on the left is properly sized when I have a split window at 0.5. The Terminal Window on the Right has a gap around the bottom and the right side (My desktop background is grey).
Thanks
Using the Tile window to center keyboard shortcut you will end up with a large centralized window. And on an ultrawide monitor you will end up with a huge centralized window. It would be nice if you could press the keyboard shortcut several times and go through multiple sizes. Just like you go through three different sizes while tiling left or right.
Thanks and keep up the good work!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.