Force Blur Original

Kwin Scripts blur kwin

Source (link to git-repo or to original if based on someone elses unmodified work): https://www.opencode.net/esjeon/kwin-force-blur

12
8 .9
Description:

Force Blur

A KWin script to force-enable KWin Blur effect on user-specified windows.

This is more useful than shell script hacks, because KWin script receives event notification and window info from KWin. This can also fix tray-based apps, which loses blur hints when restored from system tray.

System Requirement

  • Operating System:

    • (K)Ubuntu 18.10 or newer
    • Fedora 29 or newer
    • Arch Linux - kwin 5.14 or newer
  • Make sure you're using "Blur" desktop effect, which can be enabled through System Settings.

  • This script internally calls xprop command, which would be already installed on your system.

  • X11 display server (the script does not support wayland applications)

How to Use

  1. Install the script.

  2. Run the following in terminal, to enable script configuration:

     mkdir -p ~/.local/share/kservices5/
     cp ~/.local/share/kwin/scripts/forceblur/metadata.desktop ~/.local/share/kservices5/forceblur.desktop
  3. Open Kwin Scripts page in System Settings.

  4. Enable Force Blur script by checking the checkbox next to it.

  5. Change script settings. Note that the script can only match with window classes.

  6. Click OK to enable the script.

  7. Whenever settings are changed, you must disable and re-enable the script.
    (Uncheck -> Apply -> Check -> Apply)

GTK CSD Shadow

Some GTK applications render client-side shadows, which look ugly if blurred. To prevent this, you can enable "Blur only the content of window" option.

This works by updating the blur region info whenever a window is resized, so might have some performance impacts. Use with caution.

Authors



reyes

10 months ago

I apologize for my ignorance, but how do I add window's class names for other applications?

Report

S2 10

l4k1

10 months ago

Correction!!!

For example: You open System Settings
Right click> More Actions> Special Window Settings> Appearance & Fixes> Active opacity and Inactive opacity (to mark),> Force> Then, open the Windows Matching window (to see the correct application name), in this case: systemsettings
Then go to System Settings> Wind Management> Kwin Scripts> Force Blur> Configure> Insert systemsettings> ok> (Uncheck -> Apply -> Check -> Apply)
So for every application you want it to be Blur

Report

reyes

10 months ago

Thanks a lot, mate! I knew there was supposed to be a Configure button in Force-blur, the thing is that it doesn't show for me right now, but I vaguely remembered it from some time ago. For some reason I cannot uninstall Force-blur, it is still shown for me even when I uninstall it, I'll keep trying to reinstall and then hope for the configure button to be there. Anyways, thanks a lot for your help!

Report

S2 10

l4k1

10 months ago

This is how it should look: https://i.postimg.cc/qv12MW9y/Screenshot-20190818-193431.png

And: https://i.postimg.cc/hvYHBCKB/Screenshot-20190818-193852.png

Report

reyes

10 months ago

I'm really thankful for your help and yeah, I managed to do it already.
It was hard to uninstall it because first I installed it by downloading the .kwinscript file and using the "Install from file". Then I tried re-installing it by using the "Get new scripts..." option and by installing with ocs-url and ocs-store, but the "Configure option" still didn't show up, finally I installed it via pamac (AUR) and there it was the cute button. Everything is working as intended, thanks a lot!

Report

S2 10

l4k1

10 months ago

Ok, it's important that everything is fine,
greeting

Report

10

deezee

11 months ago

10 10

Report

10

deezee

11 months ago

This works great thanks! In order for dolphin, system settings, or other apps to work you need to enable Active Opacity for them. Refer to my reply to below.

Report

socks

11 months ago

Hi, thanks for uploading this! It seems to work in some windows but not others, for example, I've use xprop | grep CLASS to get the window class of say, dolphin, or system, settings, then added it to the configuration, disabled and re-enabled, but there doesn't seem to be any change? I've closed all windows and rebooted as well with no change. I'm using Fedora 30 with KDE Plasma. Any ideas?
Thanks in advance!

Report

10

deezee

11 months ago

I ran into the same issue. In order for blur to work with dolphin you need to enable Active Opacity which I have it to 85% (Right click on top of Dolphin>More Actions>Special Application settings>Appearance and fixes>Active Opacity>Force

Report

10

vladimir123

1 year ago

10 10 the best

Report

n3aka

1 year ago

how i am able to get the window class names, it works for konsole, dolphin but not for pycharm or code oss

Report

C

esjeon

1 year ago

You can use `xprop` command for that. Run `xprop | grep CLASS` on Konsole, and click the window of your interest. The class name of the window will be printed on the terminal.

Report

S2 10

l4k1

1 year ago

10 10 the best

Report

9

mallgrab

1 year ago

9 .

Report

9

mallgrab

1 year ago

Works perfectly! :)

Report

9

svah4cky0

1 year ago

9 +

Report

nikita240

1 year ago

Doesn't work for me. Can't figure out why.

Report

S2 10

l4k1

1 year ago

Wonderful, great job!

Report

12345678910
313
product-maker ppenguinz Jun 19 2020 10 the best
10 the best
product-maker leo5sk Jun 02 2020 10 the best
10 the best Is something with similar functionality possible in wayland? Or could be possible in future?
product-maker 20percentrendered Apr 08 2020 10 the best
It works a treat.
product-maker zinjanthr0pus Mar 24 2020 10 the best
Very well done script! Thanks for sharing it :)
product-maker cookiealice Mar 09 2020 10 the best
10 the best
product-maker migue Mar 01 2020 10 the best
10 the best
product-maker yasanthaparanamanna Feb 10 2020 10 the best
10 the best Perfect!!!
product-maker skylineone044 Feb 09 2020 10 the best
excellent
product-maker himanshuxd Dec 28 2019 10 the best
Tysm it works like a charm sublime_text and nemo both are blurry now.
product-maker redstar6486 Sep 22 2019 9 excellent
9 excellent
product-maker nhoxsang2411994 Sep 21 2019 10 the best
10 the best
product-maker deezee Jul 28 2019 10 the best
10
product-maker vladimir123 Jun 05 2019 10 the best
10 the best
product-maker l4k1 May 18 2019 10 the best
10 the best
product-maker mallgrab May 17 2019 9 excellent
.
product-maker svah4cky0 May 08 2019 9 excellent
+
product-maker Base: 4 x 5.0 Ratings
ppenguinz
Jun 19 2020
csaratakij
May 24 2020
egomaniac
May 24 2020
migue
Mar 01 2020
Nano-Ocelot
Feb 29 2020
himanshuxd
Dec 28 2019
andryNoor
Oct 27 2019
austin98
Oct 07 2019
rocketlr
Jun 28 2019
vladimir123
Jun 05 2019
mallgrab
May 17 2019
l4k1
Mar 14 2019
File (click to download) Version Description Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
MIT License
version
0.5
updated May 14 2020
added Mar 14 2019
downloads 24h
155
mediaviews 24h 0
pageviews 24h 89