Skip to content

Instantly share code, notes, and snippets.

@ynsta
Last active September 28, 2022 18:26
Show Gist options
  • Save ynsta/a51701047127885f32f6 to your computer and use it in GitHub Desktop.
Save ynsta/a51701047127885f32f6 to your computer and use it in GitHub Desktop.
Blur konsole and yakuake instead of simple transparency
# add to zshrc
function blur-konsoles() {
windows=($(qdbus org.kde.konsole 2>/dev/null | egrep '^\/konsole\/MainWindow_[0-9]+$'))
for win in ${windows}; do
winId=$(qdbus org.kde.konsole $win winId 2>/dev/null)
[ ! -z "${winId}" ] && xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id "${winId}"
done
qdbus org.kde.yakuake &>/dev/null && xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -name Yakuake
}
[ ! -z "$KONSOLE_DBUS_WINDOW" ] && blur-konsoles
@andreyorst
Copy link

Seems don't work at all in plasma 5.9.
I mean, that command xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 will blur on cleck, but entire function don't work for me

@TRPB
Copy link

TRPB commented Oct 24, 2017

Try this:

konsolex=$(qdbus | grep konsole | cut -f 2 -d\ )
if [ -n konsolex ]; then
for konsole in $konsolex
do
xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id `qdbus $konsole /konsole/MainWindow_1 winId`;
done
fi
if [ `qdbus | grep yakuake` ]; then
xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -name Yakuake;
fi

@snow-drop
Copy link

Is there anyway to specify window class instead of name? And is there anyway I could increase the blur?

@ishank-dev
Copy link

modify ~/.config/yakuakerc with

[Appearance]
Blur=true

Enjoy blurred yakuake 👍

@murilolobato
Copy link

murilolobato commented Mar 2, 2020

modify ~/.config/yakuakerc with

[Appearance]
Blur=true

Enjoy blurred yakuake

Is there a way to control blur intensity? @ishank-dev

@ishank-dev
Copy link

Navigate to
System Settings --> Desktop Effects --> Blur --> Click on Configure
Here you will be able to change the blur and noise strength

@cwagnersc
Copy link

Navigate to System Settings --> Desktop Effects --> Blur --> Click on Configure Here you will be able to change the blur and noise strength

Thank you.
I was searching for this a while. Unfortunately this seems just works on X11.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment