taj-ny / kwin-effects-forceblur

Fork of the KWin Blur effect for KDE Plasma 6 with additional features (including force blur) and bug fixes
GNU General Public License v3.0
201 stars 12 forks source link

[Feature Request] Support glob patterns for window classes to force blur #101

Open Interpause opened 3 months ago

Interpause commented 3 months ago

I am using "Blur only matching" mode to avoid the performance penalty of rendering everything as transparent. However, under my kvantum theme, most KDE applications include some transparency that should be blurred. As a result, the window class list becomes really long, for example:

...
org.kde.khelpcenter
org.kde.kdesu
org.kde.kfind
org.kde.merkuro.calendar
org.kde.kmenuedit
org.kde.sweeper
org.kde.kbackup
org.kde.kwalletmanager5
...

It would be nice if org.kde.* was all that was needed. Hence, would it be possible to support glob patterns? I believe the relevant function to modify is here:

https://github.com/taj-ny/kwin-effects-forceblur/blob/4500adb340b7f9a28e2e7e1b47d13d58e3ffefac/src/blur.cpp#L738-L747

Thanks.