Skip to content

Instantly share code, notes, and snippets.

@hiroaki-yamamoto
Created July 12, 2016 01:47
Show Gist options
  • Save hiroaki-yamamoto/13916fbe5b139494e7781991f91e1405 to your computer and use it in GitHub Desktop.
Save hiroaki-yamamoto/13916fbe5b139494e7781991f91e1405 to your computer and use it in GitHub Desktop.
Blur Effect for konsole
#!/bin/sh
# How to use it: include this file from shell rc file.
# e.g. source .konsole_blur_effect
# Blur Active Konsolw window
service="org.kde.konsole"
windows=($(qdbus ${service} 2>null| grep -E '^/konsole/MainWindow_[0-9]+$'))
for window in ${windows}; do
is_active="$(qdbus ${service} ${window} org.qtproject.Qt.QWidget.isActiveWindow)"
if [ "${is_active}" = "true" ]; then
xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c \
-set _KDE_NET_WM_BLUR_BEHIND_REGION 0 \
-id "$(qdbus ${service} ${window} winId)"
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment