The step sizes and the keyboard shortcuts are configurable.
Related:On old Plasma versions, additional steps may be required after installation to make the configuration menu available. For more information on installation and configuration as well as any requests, please visit the GitHub page.
© 2021 Natalie Clarius ‹natalie_clarius@yahoo.de›
This work is licensed under the GNU General Public License v3.0.
This program comes with absolutely no warranty.
This is free software, and you are welcome to redistribute and/or modify it under certain conditions.
If you would like to thank me, you can always make me happy with a review or a cup of coffee:


Ratings & Comments
14 Comments
8 I'm using Plasma 5.23.5, I installed v2.8 of the script and here is what I found: - Alt D (centering window) doesn't work. Anything else works fine. - Configuration doesn't work (msg: Plugin does not provide configuration file in expected location) - Window can still be moved when maximized (I don't know if this is a bug or not) Anything else works fine, thanks for your effort making this :-)
- Centering should now work. - Configuration not found is a known bug in the KWin scripting system: https://bugs.kde.org/show_bug.cgi?id=444378 I made a change to the metadata file that may fix this; if it didn't, I can provide instructions on how to edit the configuration manually. - Hadn't really thought about that but I guess it makes sense to prevent it; changed. Please test the newest version and let me know which issues remain.
This v3.0 fix the issues, except for the Configuration bug. I do a couple tests using it and I also use your Tile Gaps (Window Gaps) script with (gaps: 8px, between windows: 12px). Is it normal when tiling window to the right or left, I can still using Alt D to centering the window but cannot using the others to move it (except when Tile Gaps is off. But Alt D still remain the same) and also the window size doesn't revert back to it initial size (like before tiling) ?
- Configuration bug: I included instructions in the readme on how to hopefully fix the problem; please test whether this works. - Other directions not working: The default configuration for the moving script moves the window only by 10px but the tile gaps script is set to consider windows that are only slightly off (by max. 2 x the gap size) to still be in the tile position and snaps them back into the grid, effectively undoing the movement. The problem should be solved by setting the move step size to > 16 px. - Window geometry not reverting: This is intended; I might consider adding an option some time but currently there are no plans to change this behavior.
- Configuration bug: I downloaded the newer version (updated from v3.0) but the issue remain. Then following your new readme (sed -i 's/ConfigModule/Library/g' ...), but it seems like doubling the "X-KDE-Library=", because one is already there, so I edit the metadata.desktop manually and delete one of them, then I can do configuration from the button (the config window now showing up), but somehow, it's like the Script doesn't read the config whatever I change the 'step value' it still read the default one (10px). No lucky. but, yeah, Just leave it for now, maybe I really need to update my Plasma version to get it works properly or maybe just a simple re-login, I don't now, haven't tried that. The default config is enough for now.
Oh, that was actually a bug in the script; please try with the latest version one more time.
Ahh... Finally, it works now. I can play with it :-D, Thanks a lot
- Other direction not working: I got it. Actually I expected that, because it makes sense to not moving the window step by step to the right or left while it is tiled, if doing so, the window should be un-tiled automatically (just like normally doing it with mouse) or maybe it's not moving at all until User manually un-tiled the window with already dedicated key shortcut . This is what expected with 'Alt D' (centering), but it's not. maybe you can add this option to prevent window 'step' movements while window is tiled or just revert back the geometry if it's forced to do so. But, yeah, this script already behaves as expected with default configuration and tile 'Tile Gaps' on, except for Centering. And this one is OOT :-D . If you don't mind, could you suggest me references to learn Kwin Scripting so I can do a little tweak as I need to the script, I'm curious where you learn all of this Kwin Scripting stuff. I am not a developer, and Just a general Linux User with a little scripting (programming language) knowladge. I cannot find user-friendly tutorial on Internet about Kwin Script except the official one. and don't worry if you couldn't. :))
Window restoring: Oh, I see. When you until the window my moving it out with the mouse the geometry is restored, but this is not the case when using a keyboard shortcut. It probably would be possible to do this, but it's not high on my priority lsit.
I know of no good tutorial on KWin scripting apart from the soemwhat patchy official documentation. The only thing you can do is look for inspiration in existing scripts and do a lot of trial and error. Feel free to drop me an e-mail if there is something specfic I might be able to help with.
Yeah, it could be right, but maybe they are targeting it for more experienced Dev to do Kwin Scripting stuff. Anyway, Thanks for you kindness. I saw your code, it's very organized, I could read it easily, very explanatory even for a general Linux user like me :)), I think you could be a good Mentor for someone like me and any other noobs out there :)). Thank you so much, really appreciate it.
I'm not a professoinal developer either, just have a high frustration tolerance. :D Glad to hear it works now!
- Window geometry not reverting: Just replied it and can't reproduce, can you describe the expected and the actual behavior more precisely?
* just tried it