Skip to content

Instantly share code, notes, and snippets.

@costabatista-dev
Last active May 11, 2018 04:28
Show Gist options
  • Save costabatista-dev/67e30dc55d0b8420f5b6c50c94dfe844 to your computer and use it in GitHub Desktop.
Save costabatista-dev/67e30dc55d0b8420f5b6c50c94dfe844 to your computer and use it in GitHub Desktop.
Enabling Blur in kde terminal emulator

Enabling blur appearence in kde plasma terminal emulators

To enable Blur effect in a kde terminal emulator (those that are developed with QT engine), Put the following code sequence inside .bashrc file.

.bashrc file it's placed in user directory by standard. It can be acessed through ~/.bashrc

the code is:

if [[ $(ps --no-header -p $PPID -o comm) =~ yakuake|konsole ]]; then
        for wid in $(xdotool search --pid $PPID); do
            xprop -f _KDE_NET_WM_BLUR_BEHIND_REGION 32c -set _KDE_NET_WM_BLUR_BEHIND_REGION 0 -id $wid; done
fi

after that, reboot the system or type the following in terminal emulator:

source ~/.bashrc

so, open the terminal emulator to see the changes. Note that this example cover yakuke and konsole terminal emulators. If the application is another, feel free to change the name in code sequence.

Note

It may be necessary install xdotool. In ubuntu based it's easy:

sudo apt install xdotool -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment