aerothemeplasma/KWin/kwin_reflect
2023-08-28 23:26:29 +02:00
..
cmake/Modules Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
doc Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
src Updated reflection texture again, reverted back to the original with finer adjustments this time. 2023-08-28 23:26:29 +02:00
CMakeLists.txt Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
install Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
install.sh Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
LICENSE Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
README.md Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00
uninstall.sh Released AeroThemePlasma version 0.2 2023-08-25 00:32:11 +02:00

Kwin blur effect - Respect rounded corners

This kwin effect is a fork of the default kwin blur effect, with minimal changes to solve the "plasma kornerbug". It works with all decorations, including aurorae one's, and take care of maximized windows, that are assumed to not have rounded corners.

Screenshot

Above left : Korner bug with the default blur effect

Above right : with the present blur effect

(Window decorations : classikstyles by paulmcauly)

Usage

After installing the effect, go to Settings --> Workspace behavior --> Desktop Effects.

  • Disable the default blur effect ("Blur")
  • Enable "Blur - Respect rounded corners"
  • Tweak the settings of the effect to match your window decorations. Settings

Limitations

The effect only acts for window decorations. If the window has a decoration that have to be blurred and is not maximized, the rounded corners area are removed from the region "to be blurred". (before the blur occurs)

It seems to be not compatible with ligthlyShaders or shapecorners.

Plasma version

I only tested the effect on plasma 5.23.3, I don't know if it work with older versions (But it should, the changes from the default blur effect are very minimal)

Installation

Binary package

If you build a binary package, or make the effect available from the "kde get new stuff" service, let me know !

Build from source

Section copied from Yet another magic lamp from zzag.

You will need the following dependencies to build this effect:

  • CMake
  • any C++14 enabled compiler
  • Qt
  • libkwineffects
  • KDE Frameworks 5:
    • Config
    • CoreAddons
    • Extra CMake Modules
    • WindowSystem

On Arch Linux

sudo pacman -S cmake extra-cmake-modules kwin

On Fedora

sudo dnf install cmake extra-cmake-modules kf5-kconfig-devel \
    kf5-kcoreaddons-devel kf5-kwindowsystem-devel kwin-devel \
    qt5-qtbase-devel libepoxy-devel kf5-kconfigwidgets-devel

On fedora 35, it seems you need the following dep too :

kwayland-server-devel
kf5-kwayland-devel
wayland-devel

On OpenSUSE

sudo zypper install cmake extra-cmake-modules kconfig-devel \
    kcoreaddons-devel kwindowsystem-devel kwin5-devel \
    libqt5-qtbase-devel libepoxy-devel kconfigwidgets-devel \
    kwayland-server-devel

On Ubuntu

sudo apt install cmake extra-cmake-modules kwin-dev \
    libkf5config-dev libkf5configwidgets-dev libkf5coreaddons-dev \
    libkf5windowsystem-dev qtbase5-dev libkwaylandserver-dev libwayland-dev

After you installed all the required dependencies, clone the repo and use the provided scripts :

Build and install:

chmod +x install.sh
./install.sh

Uninstall build script:

chmod +x uninstall.sh
./uninstall.sh

Contributing

Any help is welcome. Feel free to fill an issue if you have one.