chjj / compton

A compositor for X11.
Other
2.25k stars 501 forks source link

A question about blur-background-exclude #238

Closed treeman1111 closed 10 years ago

treeman1111 commented 10 years ago

Hey all. I am working on customizing my Openbox desktop and have a question regarding the use of the blur-background-exclude parameter. I want to be able to blur the background of three windows on my desktop: Conky, Tint2, and URxvt. How would I configure this parameter to make this happen? I have tried things like blur-background-exclude = [ "!class_g = 'Conky'", "!class_g = 'URxvt'", "!window_type = 'dock'" ];. I realize that this cannot work because three different things are saying "everything, but not me." Is there any way around this? Thanks!

richardgv commented 10 years ago

You can join expressions with parentheses and logic operators:

--blur-background-exclude "!(class_g = 'Conky' || class_g = 'URxvt' || window_type = 'dock')"

Note that --blur-background won't work for windows with fake transparency: For example, you may need own_window_transparent true and own_window_argb_visual true in .conkyrc. And using a blurred part of wallpaper as background image on conky and tint2 could be better in performance.

treeman1111 commented 10 years ago

Thanks for the solution and the advice! You can mark this as resolved.