Last active
September 28, 2022 18:26
-
-
Save ynsta/a51701047127885f32f6 to your computer and use it in GitHub Desktop.
Blur konsole and yakuake instead of simple transparency
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
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
Is there anyway to specify window class instead of name? And is there anyway I could increase the blur?
modify ~/.config/yakuakerc with
[Appearance]
Blur=true
Enjoy blurred yakuake 👍
modify ~/.config/yakuakerc with
[Appearance] Blur=true
Enjoy blurred yakuake
Is there a way to control blur intensity? @ishank-dev
Navigate to
System Settings --> Desktop Effects --> Blur --> Click on Configure
Here you will be able to change the blur and noise strength
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
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