![]() Registered Member ![]()
|
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.
|
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]