Kitty: Support for blurred backgrounds

Created on 6 Sep 2018  路  2Comments  路  Source: kovidgoyal/kitty

I like to have the background with something like 0.75 opacity, but also with the contents behind the terminal to be blurred, so that the focus is not lost if I have multiple terminals stacked. Would this be possible in kitty?

Most helpful comment

@sergiocampama

I have this in my zshrc. Found it on reddit here. It is for plasma if you are using it.

# Blur {{{
if [[ $(ps --no-header -p $PPID -o comm) =~ '^yakuake|kitty$' ]]; 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
# }}}

All 2 comments

Not easily, at least as far as I know. GLFW (the toolkit kitty uses) has no ready made setting for that (as far as I know), which means it would need to be implemented with per-platform code, since the blurring would have to be performed by the OS (on platforms other than X11 windows are not allowed access to the contents of other windows for security reasons).

As such this is not worth the effort to me. But, patches are welcome. If anyone wants to implement this and needs guidance, feel free to ask, I will be happy to provide it, if I can.

@sergiocampama

I have this in my zshrc. Found it on reddit here. It is for plasma if you are using it.

# Blur {{{
if [[ $(ps --no-header -p $PPID -o comm) =~ '^yakuake|kitty$' ]]; 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
# }}}
Was this page helpful?
0 / 5 - 0 ratings

Related issues

drandreaskrueger picture drandreaskrueger  路  4Comments

bewzaalex picture bewzaalex  路  3Comments

lazarcf picture lazarcf  路  4Comments

mihaicristiantanase picture mihaicristiantanase  路  3Comments

keyofnight picture keyofnight  路  3Comments