ksmanis / kwin-move-window-to-center Goto Github PK
View Code? Open in Web Editor NEWA simple KWin script that introduces a KDE Global Shortcut for centering the active window in the current screen.
License: GNU General Public License v2.0
A simple KWin script that introduces a KDE Global Shortcut for centering the active window in the current screen.
License: GNU General Public License v2.0
After centering a window with Meta+C, the title and controls become blurred. Moving the window fixes it, but resizing the window doesn't.
If I resize the window too much while the title bar is blurred, the entire display freezes. Audio continues to play, but I can't even switch TTYs. CPU ramps up during this.
Example.
KDE Version: 5.26.5
KDE Frameworks Version: 5.102.0
Qt Version: 5.15.8
Display Driver: Mesa
Judging by the activity on this script, I assume Wayland isn't exactly tested.
I also suppose this should be reported on the KDE bug tracker, but my journal doesn't seem to have anything after the point where the freeze occurs so I'm not sure where to start.
Hi!
I could install your script via Get new scripts in Kubuntu 18.04 (Plasma 5.12.9) but couldn't do so on Kubuntu 19.10 or Kubuntu 20.04 (both with Plasma 5.18.3).
For Kubuntu 19.10 and 20.04, although the script is listed and checked in kcmshell5 kwinscripts
, Move Windows to Center doesn't appear in System Settings > Global Shortcuts > KWin. It also does figure in ~/.config/kglobalshortcutsrc
Hi! thank you for your script, it's super useful! I only noticed that, if the window is maximized and I Launch the script, it doesn't work. Could you do that?
Thanks anyway!
On Debian 11 (stable)
Script was installed from KWin scenarios.
It can be fixed, please?
Just what I needed. Thank you!
Hi and thank you for this big extension, a must have for me but unfortunately this has been broken on plasma 5.22 and windows no more moving to center.
Thank you for this script, it's so useful for me!
I only have one question: what's considered as "centre"? half the display width in pixels? or is a side taskbar counted in?
Cheers!
Hi @KSmanis, hope you have been well. Thanks for making a simple javascript app using the KDE API! I wanted to ask where someone might learn more about making JS apps within the KDE ecosystem? How would I make a widget, for example, with a UI and clickable regions?
Thanks in advance for your time!
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.