Created
July 12, 2016 01:47
-
-
Save hiroaki-yamamoto/13916fbe5b139494e7781991f91e1405 to your computer and use it in GitHub Desktop.
Blur Effect for konsole
This file contains hidden or 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
#!/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