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

Home
Posts

Blurring unfocused terminals in picom

After an extended break I have started using dwm again as my main window manager after being in KDE land for a bit. I had a pretty good setup going before with transparency and a custom status bar but this time I wanted to use the chadwm fork as the base for my current rice.

chadwm

One thing I really did miss in KDE was the nice blur effect for transparent windows and wanted to replicate this in dwm. As I want this to only apply to terminals that are not focused, this means creating some opacity rules in picom.

opacity-rule = [
    "70:class_g = 'kitty' && !focused",
];

As my default opacity is set to 1, this will result in only unfocused kitty windows being transparent. To get the nice blur effect I used the dual kawase method as I think this looks a lot nicer than the standard and I already use this for my slock config.

blur-method = "dual_kawase";
blur-strength = 10;
blur-background = true;
no-dnd-blur = true;

I really like how this looks!

I find this helps me a lot with identifying the current focused window in dwm, even more than a border. I would really like to get rounded windows in too but I will be patient and wait for it to get merged :) (EDIT 2022-03-04: Oops, this actually was in the main branch just not documented too well. I'm happily using this in my own config!)

My setup is slowly getting to how it used to be but I still have quite a bit to go. I still want to update my bar script to make better use of the statuscolors patch (I'm currently using the one included with chadwm) and get my old neovim, fish, and mpd configs in.

Finally, welcome to my blog! I really wasn't sure what to post here first but I hope starting with something I wanted to share anyway was a good idea.

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