terminator
terminator copied to clipboard
How to add a transparent blur to the background
Transparency blurs are really cool, how can I get my terminator client to add a variable blur so I can't quite make out the background?
The closest thing I can think of is in the preferences window there's an option to shade the transparent background. I don't know whether GTK or VTE supports a blurring effect. If you have any ideas on how to do that I'd love to hear that.
Transparency blurs are really cool, how can I get my terminator client to add a variable blur so I can't quite make out the background?
being more specific is good - are you requesting individual terminal blur, independent off global one? otherwise workaround would be 2 profiles with different global transparency levels and switching between them...
This would really be an interesting feature, KDE Konsole implements this natively
theoretically it would be just adding another blur layer to the background. PRs are welcome
pycairo blur effect example code https://www.cairographics.org/cookbook/pythoncairopil/
Any update to this?
I would like to implement this but don't really know where to start:
I found draw_background()
in terminal.py
but this seems only to be for the background image. Debug messages also aren't printed inside this function and breakpoints don't work which makes it really hard to debug. Help is appreciated :)
The background image is actually some good code to draw from. The normal background is just a GTK RGBA object, so most of the work is done for us, including transparency. The code for that is around here: https://github.com/gnome-terminator/terminator/blob/6d225c7aee3d42e37acac67629f7b321b7a4889b/terminatorlib/terminal.py#L747C1-L750C35
The background_draw()
code draws the background image on top of the background RGBA object. To blur, you would add another layer similar to draw_background that would just add the blur layer on top of the image, or the transparent background.
On debugging, I assure you, debug messages work, hit me up on matrix and I'll talk you through it.