Skip to content

Suggestion: kwinscript argument #31

Description

@marvin1099

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions