https://bugs.kde.org/show_bug.cgi?id=466483

Vlad Zahorodnii <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |NOT A BUG
             Status|CONFIRMED                   |RESOLVED

--- Comment #2 from Vlad Zahorodnii <[email protected]> ---
This can be achieved by writing a custom script, e.g.

```
registerShortcut('Toggle Opacity', 'Toggle Opacity', 'Meta+O', () => {
    const activeWindow = workspace.activeWindow;
    if (!activeWindow) {
        return;
    }

    if (activeWindow.opacity < 0.5) {
        activeWindow.opacity = 1.0;
    } else {
        activeWindow.opacity = 0.25;
    }
});
```

See
https://invent.kde.org/plasma/kwin/-/blob/master/src/plugins/minimizeall/package/contents/code/main.js?ref_type=heads
for another example.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to