_|                
_|_|_|    _|_|_|      _|_|_|    _|_|_|      
_|    _|  _|    _|  _|    _|  _|    _|      
_|    _|  _|    _|  _|    _|  _|    _|      
_|_|_|    _|    _|    _|_|_|    _|_|_|  _|  
_|                                          
_|                                            
                    _|  _|                      
  _|_|    _|_|_|    _|      _|_|_|      _|_|    
_|    _|  _|    _|  _|  _|  _|    _|  _|_|_|_|  
_|    _|  _|    _|  _|  _|  _|    _|  _|        
  _|_|    _|    _|  _|  _|  _|    _|    _|_|_|  

Home
Posts

Picom blurring (update)

A couple weeks ago I shared how I use picom to blur inactive terminal windows using dual kawase to get a nice KDE-like blur effect in dwm.

Original post

This worked well, however I also wanted rounded corners for my windows with this. Turns out both of these features are available in the mainline picom branch and can be used with the --experimental-backends option and GLX backend. This gets us most of the way there except for one thing - blurred, transparent windows will have the effect applied as though the window was still rectangular:

(it may be hard to notice but the bottom-right window's corner does not round off the blur effect).

To fix this I actually used a fork of picom by ibhagwan which ports rounded corners and dual kawase blur to the legacy glx backend.

ibhagwan's fork

Importantly, the rounded corners implementation to the legacy GLX backend has been re-written - which fixes the problems I had with blur before. To make sure borders are also rounded and not cut off you should also the following to your picom config

round-borders = 1

Here's what it looks like in action

                                                    ██████
                                  ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██
                              ▒▒▒▒░░░░░░░░░░░░░░░░░░░░░░▒▒▒▒
                            ▒▒░░░░                      ░░░░▒▒▒▒
                        ████████████████████▒▒░░            ░░░░▒▒
                      ██████████████████████████░░░░░░░░      ░░▒▒
      ██████████  ████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒██████████████░░      ░░▒▒
    ████████████▒▒▒▒▒▒░░░░░░░░░░░░░░░░░░░░▒▒▒▒▒▒██████████░░    ████
    ████████▒▒▒▒░░░░░░                    ░░░░░░▒▒▒▒██████░░    ████████
    ██████▒▒░░░░                                ░░░░▒▒████░░    ██████████
        ▒▒░░░░██████████              ████████      ░░▒▒██░░    ██████████
        ▒▒████████▒▒████              ██▒▒▒▒██████  ░░▒▒██░░░░░░▒▒██████
  ██████░░████▒▒▒▒██████              ██████▒▒████  ░░▒▒██████▒▒▒▒
████████░░██████████        ████        ██████████  ░░▒▒████████
████████░░    ░░░░░░░░░░  ░░░░░░░░░░  ░░░░░░░░░░    ░░▒▒████████
  ██████▒▒░░░░░░░░░░░░░░░░▒▒▒▒▒▒▒▒▒▒░░░░░░░░░░░░░░░░▒▒████████
          ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒          ▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒