Giter Site home page Giter Site logo

anu-prakash-dev / kwin-effects-blur-respect-rounded-decorations Goto Github PK

View Code? Open in Web Editor NEW

This project forked from alban-boissard/kwin-effects-blur-respect-rounded-decorations

0.0 0.0 0.0 221 KB

A fork of the kwin blur effect that solve the corners bug.

License: GNU General Public License v2.0

Shell 0.41% C++ 88.79% CMake 10.80%

kwin-effects-blur-respect-rounded-decorations's Introduction

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.

kwin-effects-blur-respect-rounded-decorations's People

Contributors

alban-boissard avatar zzag avatar aleasto avatar amr3k avatar homersp avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.