Would it be possible to have like a argument to pass in a kwin script.
For custom kwin requests and returned values.
Like then something like windowlooking may be used with something like this:
var locked = false;
function toggleLock() {
var client = workspace.activeClient;
if (!client) return;
locked = !locked;
client.resizeable = !locked;
client.moveable = !locked;
workspace.showOnScreenDisplay(
"Window " + (locked ? "Locked" : "Unlocked")
);
}
This code may be wrong, have not checked it yet.
But this would not be your issue.
Just asking for a easy run return system for kwin scripts.
Edit:
resizeable and moveable are read only, sad.
Same with the layer property.
There still are limitations even with direct control.
But still some nice things to do with direct kwin control.
Would it be possible to have like a argument to pass in a kwin script.
For custom kwin requests and returned values.
Like then something like windowlooking may be used with something like this:
This code may be wrong, have not checked it yet.
But this would not be your issue.
Just asking for a easy run return system for kwin scripts.
Edit:
resizeable and moveable are read only, sad.
Same with the layer property.
There still are limitations even with direct control.
But still some nice things to do with direct kwin control.