picom.conf (15446B)
1 rules = ( 2 { 3 match = "!focused && !group_focused", 4 dim = 0.1; 5 }, 6 7 8 # Disable rounded corners 9 { 10 match = "window_type = 'dock' || window_type = 'desktop'"; 11 corner-radius = 0; 12 }, 13 14 # Disable background blur 15 { 16 match = "window_type = 'dock' || window_type = 'desktop'"; 17 blur-background = false; 18 }, 19 20 { 21 match = "window_type = 'menu'"; 22 blur-background = false; 23 full-shadow = false; 24 shadow = false; 25 animations = ( 26 { 27 triggers = ["open", "show"]; 28 preset = "appear"; 29 duration = 0.2; 30 }, 31 { 32 triggers = ["close", "hide"]; 33 preset = "disappear"; 34 duration = 0.2; 35 }, 36 ) 37 }, 38 39 # Disable animations 40 { 41 match = "window_type = 'tooltip'"; 42 opacity = 0.75; 43 full-shadow = false; 44 animations = ({ 45 triggers = ["open", "close", "show", "hide", "increase-opacity", "decrease-opacity", "geometry"]; 46 preset = "appear"; 47 duration = 0.1; 48 }); 49 }, 50 51 { 52 match = "class_i = 'dwm' && class_g = 'dwm'"; 53 dim = 0; 54 }, 55 56 { 57 match = "class_i = 'dmenu' && class_g = 'dmenu'"; 58 dim = 0; 59 animations = ( 60 { 61 triggers = [ "open", "show" ]; 62 preset = "slide-in"; 63 direction = "up"; 64 duration = 0.2; 65 }, 66 { 67 triggers = [ "close", "hide" ]; 68 preset = "slide-out"; 69 direction = "up"; 70 duration = 0.2; 71 }, 72 ); 73 }, 74 75 { 76 match = "window_type = 'notification'"; 77 animations = ( 78 { 79 triggers = ["close", "hide"]; 80 preset = "slide-out"; 81 direction = "right"; 82 }, 83 { 84 triggers = ["open", "show"]; 85 preset = "slide-in"; 86 direction = "right"; 87 }, 88 ); 89 }, 90 { 91 match = "name = 'scratchpad'"; 92 animations = ( 93 { 94 triggers = ["open", "show", "geometry"]; 95 preset = "appear"; 96 }, 97 ) 98 }, 99 100 ) 101 102 ################################# 103 # Shadows # 104 ################################# 105 106 107 # Enabled client-side shadows on windows. Note desktop windows 108 # (windows with '_NET_WM_WINDOW_TYPE_DESKTOP') never get shadow, 109 # unless explicitly requested using the wintypes option. 110 # 111 # shadow = false 112 shadow = true; 113 114 # The blur radius for shadows, in pixels. (defaults to 12) 115 # shadow-radius = 12 116 shadow-radius = 7; 117 118 # The opacity of shadows. (0.0 - 1.0, defaults to 0.75) 119 # shadow-opacity = .75 120 121 # The left offset for shadows, in pixels. (defaults to -15) 122 # shadow-offset-x = -15 123 shadow-offset-x = -7; 124 125 # The top offset for shadows, in pixels. (defaults to -15) 126 # shadow-offset-y = -15 127 shadow-offset-y = -7; 128 129 # Red color value of shadow (0.0 - 1.0, defaults to 0). 130 # shadow-red = 0 131 132 # Green color value of shadow (0.0 - 1.0, defaults to 0). 133 # shadow-green = 0 134 135 # Blue color value of shadow (0.0 - 1.0, defaults to 0). 136 # shadow-blue = 0 137 138 # Hex string color value of shadow (#000000 - #FFFFFF, defaults to #000000). This option will override options set shadow-(red/green/blue) 139 # shadow-color = "#000000" 140 141 # Specify a list of conditions of windows that should have no shadow painted over, such as a dock window. 142 # clip-shadow-above = [] 143 144 # Specify a X geometry that describes the region in which shadow should not 145 # be painted in, such as a dock window region. Use 146 # shadow-exclude-reg = "x10+0+0" 147 # for example, if the 10 pixels on the bottom of the screen should not have shadows painted on. 148 # 149 # shadow-exclude-reg = "" 150 151 # Crop shadow of a window fully on a particular monitor to that monitor. This is 152 # currently implemented using the X RandR extension. 153 # crop-shadow-to-monitor = false 154 155 156 ################################# 157 # Fading # 158 ################################# 159 160 161 # Fade windows in/out when opening/closing and when opacity changes, 162 # unless no-fading-openclose is used. 163 # fading = false 164 fading = true; 165 166 # Opacity change between steps while fading in. (0.01 - 1.0, defaults to 0.028) 167 # fade-in-step = 0.028 168 fade-in-step = 0.03; 169 170 # Opacity change between steps while fading out. (0.01 - 1.0, defaults to 0.03) 171 # fade-out-step = 0.03 172 fade-out-step = 0.03; 173 174 # The time between steps in fade step, in milliseconds. (> 0, defaults to 10) 175 fade-delta = 3 176 177 # Specify a list of conditions of windows that should not be faded. 178 # fade-exclude = [] 179 180 # Do not fade on window open/close. 181 # no-fading-openclose = false 182 183 # Do not fade destroyed ARGB windows with WM frame. Workaround of bugs in Openbox, Fluxbox, etc. 184 # no-fading-destroyed-argb = false 185 186 187 ################################# 188 # Transparency / Opacity # 189 ################################# 190 191 192 # Opacity of inactive windows. (0.1 - 1.0, defaults to 1.0) 193 # inactive-opacity = 1 194 195 # Opacity of window titlebars and borders. (0.1 - 1.0, disabled by default) 196 # frame-opacity = 1.0 197 frame-opacity = 0.7; 198 199 # Let inactive opacity set by -i override the '_NET_WM_WINDOW_OPACITY' values of windows. 200 # inactive-opacity-override = true 201 202 # Default opacity for active windows. (0.0 - 1.0, defaults to 1.0) 203 204 # Dim inactive windows. (0.0 - 1.0, defaults to 0.0) 205 206 207 # Use fixed inactive dim value, instead of adjusting according to window opacity. 208 # inactive-dim-fixed = 1.0 209 210 # Specify a list of opacity rules, in the format `PERCENT:PATTERN`, 211 # like `50:name *= "Firefox"`. picom-trans is recommended over this. 212 # Note we don't make any guarantee about possible conflicts with other 213 # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows. 214 # example: 215 # opacity-rule = [ "80:class_g = 'URxvt'" ]; 216 # 217 # opacity-rule = [] 218 219 220 ################################# 221 # Corners # 222 ################################# 223 224 # Sets the radius of rounded window corners. When > 0, the compositor will 225 # round the corners of windows. Does not interact well with 226 # `transparent-clipping`. 227 corner-radius = 0 228 229 ################################# 230 # Background-Blurring # 231 ################################# 232 233 234 # Parameters for background blurring, see the *BLUR* section for more information. 235 # blur-method = 236 # blur-size = 12 237 # 238 # blur-deviation = false 239 # 240 # blur-strength = 5 241 242 # Blur background of semi-transparent / ARGB windows. 243 # Bad in performance, with driver-dependent behavior. 244 # The name of the switch may change without prior notifications. 245 # 246 # blur-background = false 247 248 # Blur background of windows when the window frame is not opaque. 249 # Implies: 250 # blur-background 251 # Bad in performance, with driver-dependent behavior. The name may change. 252 # 253 # blur-background-frame = false 254 255 256 # Use fixed blur strength rather than adjusting according to window opacity. 257 # blur-background-fixed = false 258 259 260 # Specify the blur convolution kernel, with the following format: 261 # example: 262 # blur-kern = "5,5,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1"; 263 # 264 # blur-kern = "" 265 blur-kern = "3x3box"; 266 267 268 ################################# 269 # General Settings # 270 ################################# 271 272 # Enable remote control via D-Bus. See the man page for more details. 273 # dbus = true 274 275 # Daemonize process. Fork to background after initialization. Causes issues with certain (badly-written) drivers. 276 # daemon = false 277 278 # Specify the backend to use: `xrender`, `glx`, `egl` or `xr_glx_hybrid`. 279 # `xrender` is the default one. 280 # 281 backend = "glx" 282 # backend = "xrender"; 283 284 # Use higher precision during rendering, and apply dither when presenting the 285 # rendered screen. Reduces banding artifacts, but might cause performance 286 # degradation. Only works with OpenGL. 287 dithered-present = false; 288 289 # Enable/disable VSync. 290 # vsync = false 291 vsync = true; 292 293 # Try to detect WM windows (a non-override-redirect window with no 294 # child that has 'WM_STATE') and mark them as active. 295 # 296 # Mark override-redirect windows that doesn't have a child window with 'WM_STATE' focused. 297 # mark-ovredir-focused = false 298 299 # Try to detect windows with rounded corners and don't consider them 300 # shaped windows. The accuracy is not very high, unfortunately. 301 # 302 # detect-rounded-corners = false 303 detect-rounded-corners = true; 304 305 # Detect '_NET_WM_WINDOW_OPACITY' on client windows, useful for window managers 306 # not passing '_NET_WM_WINDOW_OPACITY' of client windows to frame windows. 307 # 308 # detect-client-opacity = false 309 detect-client-opacity = true; 310 311 # Use EWMH '_NET_ACTIVE_WINDOW' to determine currently focused window, 312 # rather than listening to 'FocusIn'/'FocusOut' event. Might have more accuracy, 313 # provided that the WM supports it. 314 # 315 # use-ewmh-active-win = false 316 317 # Unredirect all windows if a full-screen opaque window is detected, 318 # to maximize performance for full-screen windows. Known to cause flickering 319 # when redirecting/unredirecting windows. 320 # 321 # unredir-if-possible = false 322 323 # Delay before unredirecting the window, in milliseconds. Defaults to 0. 324 # unredir-if-possible-delay = 0 325 326 # Conditions of windows that shouldn't be considered full-screen for unredirecting screen. 327 # unredir-if-possible-exclude = [] 328 329 # Use 'WM_TRANSIENT_FOR' to group windows, and consider windows 330 # in the same group focused at the same time. 331 # 332 # detect-transient = false 333 detect-transient = true; 334 335 # Use 'WM_CLIENT_LEADER' to group windows, and consider windows in the same 336 # group focused at the same time. This usually means windows from the same application 337 # will be considered focused or unfocused at the same time. 338 # 'WM_TRANSIENT_FOR' has higher priority if detect-transient is enabled, too. 339 # 340 # detect-client-leader = false 341 342 # Resize damaged region by a specific number of pixels. 343 # A positive value enlarges it while a negative one shrinks it. 344 # If the value is positive, those additional pixels will not be actually painted 345 # to screen, only used in blur calculation, and such. (Due to technical limitations, 346 # with use-damage, those pixels will still be incorrectly painted to screen.) 347 # Primarily used to fix the line corruption issues of blur, 348 # in which case you should use the blur radius value here 349 # (e.g. with a 3x3 kernel, you should use `--resize-damage 1`, 350 # with a 5x5 one you use `--resize-damage 2`, and so on). 351 # May or may not work with *--glx-no-stencil*. Shrinking doesn't function correctly. 352 # 353 # resize-damage = 1 354 355 # Specify a list of conditions of windows that should be painted with inverted color. 356 # Resource-hogging, and is not well tested. 357 # 358 # invert-color-include = [] 359 360 # GLX backend: Avoid using stencil buffer, useful if you don't have a stencil buffer. 361 # Might cause incorrect opacity when rendering transparent content (but never 362 # practically happened) and may not work with blur-background. 363 # My tests show a 15% performance boost. Recommended. 364 # 365 # glx-no-stencil = false 366 367 # GLX backend: Avoid rebinding pixmap on window damage. 368 # Probably could improve performance on rapid window content changes, 369 # but is known to break things on some drivers (LLVMpipe, xf86-video-intel, etc.). 370 # Recommended if it works. 371 # 372 # glx-no-rebind-pixmap = false 373 374 # Disable the use of damage information. 375 # This cause the whole screen to be redrawn every time, instead of the part of the screen 376 # has actually changed. Potentially degrades the performance, but might fix some artifacts. 377 # The opposing option is use-damage 378 # 379 # no-use-damage = false 380 use-damage = true; 381 382 # Use X Sync fence to sync clients' draw calls, to make sure all draw 383 # calls are finished before picom starts drawing. Needed on nvidia-drivers 384 # with GLX backend for some users. 385 # 386 # xrender-sync-fence = false 387 388 # GLX backend: Use specified GLSL fragment shader for rendering window 389 # contents. Read the man page for a detailed explanation of the interface. 390 # 391 # window-shader-fg = "default" 392 393 # Use rules to set per-window shaders. Syntax is SHADER_PATH:PATTERN, similar 394 # to opacity-rule. SHADER_PATH can be "default". This overrides window-shader-fg. 395 # 396 # window-shader-fg-rule = [ 397 # "my_shader.frag:window_type != 'dock'" 398 # ] 399 400 # Force all windows to be painted with blending. Useful if you 401 # have a glx-fshader-win that could turn opaque pixels transparent. 402 # 403 # force-win-blend = false 404 405 # Do not use EWMH to detect fullscreen windows. 406 # Reverts to checking if a window is fullscreen based only on its size and coordinates. 407 # 408 # no-ewmh-fullscreen = false 409 410 # Dimming bright windows so their brightness doesn't exceed this set value. 411 # Brightness of a window is estimated by averaging all pixels in the window, 412 # so this could comes with a performance hit. 413 # Setting this to 1.0 disables this behaviour. Requires --use-damage to be disabled. (default: 1.0) 414 # 415 # max-brightness = 1.0 416 417 # Make transparent windows clip other windows like non-transparent windows do, 418 # instead of blending on top of them. 419 # 420 # transparent-clipping = false 421 422 # Specify a list of conditions of windows that should never have transparent 423 # clipping applied. Useful for screenshot tools, where you need to be able to 424 # see through transparent parts of the window. 425 # 426 # transparent-clipping-exclude = [] 427 428 # Set the log level. Possible values are: 429 # "trace", "debug", "info", "warn", "error" 430 # in increasing level of importance. Case doesn't matter. 431 # If using the "TRACE" log level, it's better to log into a file 432 # using *--log-file*, since it can generate a huge stream of logs. 433 # 434 # log-level = "debug" 435 log-level = "warn"; 436 437 # Set the log file. 438 # If *--log-file* is never specified, logs will be written to stderr. 439 # Otherwise, logs will to written to the given file, though some of the early 440 # logs might still be written to the stderr. 441 # When setting this option from the config file, it is recommended to use an absolute path. 442 # 443 # log-file = "/path/to/your/log/file" 444 445 # Show all X errors (for debugging) 446 # show-all-xerrors = false 447 448 # Write process ID to a file. 449 # write-pid-path = "/path/to/your/log/file" 450 451 # Window type settings 452 # 453 # 'WINDOW_TYPE' is one of the 15 window types defined in EWMH standard: 454 # "unknown", "desktop", "dock", "toolbar", "menu", "utility", 455 # "splash", "dialog", "normal", "dropdown_menu", "popup_menu", 456 # "tooltip", "notification", "combo", and "dnd". 457 # 458 # Following per window-type options are available: :: 459 # 460 # fade, shadow::: 461 # Controls window-type-specific shadow and fade settings. 462 # 463 # opacity::: 464 # Controls default opacity of the window type. 465 # 466 # focus::: 467 # Controls whether the window of this type is to be always considered focused. 468 # (By default, all window types except "normal" and "dialog" has this on.) 469 # 470 # full-shadow::: 471 # Controls whether shadow is drawn under the parts of the window that you 472 # normally won't be able to see. Useful when the window has parts of it 473 # transparent, and you want shadows in those areas. 474 # 475 # clip-shadow-above::: 476 # Controls whether shadows that would have been drawn above the window should 477 # be clipped. Useful for dock windows that should have no shadow painted on top. 478 # 479 # redir-ignore::: 480 # Controls whether this type of windows should cause screen to become 481 # redirected again after been unredirected. If you have unredir-if-possible 482 # set, and doesn't want certain window to cause unnecessary screen redirection, 483 # you can set this to `true`. 484 # 485 486 animations = ({ 487 triggers = [ "close", "hide" ]; 488 preset = "slide-out"; 489 direction = "down"; 490 duration = 0.2; 491 }, 492 { 493 triggers = [ "geometry" ]; 494 preset = "geometry-change"; 495 duration = 0.2; 496 }, 497 { 498 triggers = [ "open", "show" ]; 499 preset = "fly-in"; 500 direction = "up"; 501 duration = 0.2; 502 })