This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Script to move windows with shortcuts

Tags: None
(comma "," separated)
nopaste
Registered Member
Posts
3
Karma
0
Hello,
I wrote a simple script to move windows around using shortcuts
I'm using the *client.geometry* function to move the windows:
Code: Select all
client.geometry = {
        x: newX,
        y: newY,
        width: w,
        height: h
    }


The problem is that doing it in this way is a bit buggy: with multiple screens, with some applications (e.g. telegram, chrome) *sometimes* it does not work correctly.
The default shortcuts win + L\R work perfectly in my experience.


Is there some other function that I can call that handles the window movement nicely?


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]