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

Cornerbind script

Tags: None
(comma "," separated)
dzon
Registered Member
Posts
493
Karma
3

Cornerbind script

Fri Feb 24, 2023 6:01 pm
I'm having a problem with this script.

Whereas this one that creates a screenbinding to minimize all active windows, one by one, works...

function minimizeActive() {
workspace.activeClient.minimized=true;
}
registerScreenEdge(KWin.ElectricBottomRight, minimizeActive);

...I simply can't get a working structure that leaves the active window open and minimizes all inactive ones.

function() {
var clients = workspace.clientList();
for (var i=0; i<clients.length; i++) {
if( true != clients[i].active )
{
clients[i].minimized = true;
}
}
});
registerScreenEdge(KWin.ElectricBottomRight);

I have a desktop application which does the same ( like shake) using a xdotool script and works just fine. This one? For the love of it, I don't get what I'm doing wrong.


This realm's name is Maya. And she speaks Hertz. But Ahamkara makes a fuzz about it.


Bookmarks



Who is online

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