picom.conf 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. # Picom Config
  2. # for fork with both tryone144's dual kawase blur method and anti-aliased rounded corners on glx backend
  3. # https://github.com/ibhagwan/picom
  4. # -------------------------------------------------------------------------------------------------------
  5. # Backend
  6. # ---
  7. # Specify the backend to use: `xrender`, `glx`, or `xr_glx_hybrid`.
  8. # GLX backend is typically much faster but depends on a sane driver.
  9. backend = "xrender";
  10. #experimental-backends = true;
  11. # GLX Backend
  12. # ---
  13. glx-no-stencil = true;
  14. # GLX backend: Copy unmodified regions from front buffer instead of redrawing them all.
  15. # My tests with nvidia-drivers show a 10% decrease in performance when the whole screen is modified,
  16. # but a 20% increase when only 1/4 is.
  17. # My tests on nouveau show terrible slowdown.
  18. glx-copy-from-front = false;
  19. # GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
  20. # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
  21. # May break VSync and is not available on some drivers.
  22. # Overrides --glx-copy-from-front.
  23. #glx-use-copysubbuffermesa = true;
  24. # GLX backend: Avoid rebinding pixmap on window damage.
  25. # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
  26. # Recommended if it works.
  27. glx-no-rebind-pixmap = true;
  28. # GLX backend: GLX buffer swap method we assume.
  29. # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
  30. # undefined is the slowest and the safest, and the default value.
  31. # copy is fastest, but may fail on some drivers,
  32. # 2-6 are gradually slower but safer (6 is still faster than 0).
  33. # Usually, double buffer means 2, triple buffer means 3.
  34. # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
  35. # Useless with --glx-use-copysubbuffermesa.
  36. # Partially breaks --resize-damage.
  37. # Defaults to undefined.
  38. #glx-swap-method = "undefined";
  39. # Shadows
  40. # ---
  41. # Enabled client-side shadows on windows.
  42. shadow = true;
  43. # The blur radius for shadows. (default 12)
  44. shadow-radius = 12;
  45. # The left offset for shadows. (default -15)
  46. shadow-offset-x = -5;
  47. # The top offset for shadows. (default -15)
  48. shadow-offset-y = -5;
  49. # The translucency for shadows. (default .75)
  50. shadow-opacity = 0.25;
  51. # Set if you want different colour shadows
  52. #shadow-red = 255.0;
  53. #shadow-green = 255.0;
  54. #shadow-blue = 255.0;
  55. # The shadow exclude options are helpful if you have shadows enabled. Due to the way picom draws its shadows, certain applications will have visual glitches
  56. # (most applications are fine, only apps that do weird things with xshapes or argb are affected).
  57. # This list includes all the affected apps I found in my testing. The "! name~=''" part excludes shadows on any "Unknown" windows, this prevents a visual glitch with the XFWM alt tab switcher.
  58. shadow-exclude = [
  59. #"! name~=''",
  60. "name = 'Plank'",
  61. "name *= 'compton'",
  62. "name *= 'picom'",
  63. "class_g = 'conky'",
  64. "class_g = 'GLava'",
  65. #"class_g = 'Polybar'",
  66. #"class_g = 'Tint2'",
  67. "class_g = 'Cairo-clock'",
  68. "class_g = 'slop'",
  69. "name *= 'eyecandy.tint2'" , # Per Panel Name
  70. "_GTK_FRAME_EXTENTS@:c"
  71. ];
  72. # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
  73. shadow-ignore-shaped = false;
  74. # Opacity
  75. # ---
  76. inactive-opacity = 1.0;
  77. active-opacity = 1.0;
  78. frame-opacity = 1.0;
  79. inactive-opacity-override = false;
  80. # Dim inactive windows. (0.0 - 1.0)
  81. #inactive-dim = 0.2;
  82. # Do not let dimness adjust based on window opacity.
  83. #inactive-dim-fixed = true;
  84. # Rounded Corner Radius
  85. # ---
  86. corner-radius = 8;
  87. rounded-corners-exclude = [
  88. #"! name~=''",
  89. #"window_type = 'normal'",
  90. "class_g = 'conky'",
  91. "class_g = 'GLava'",
  92. "class_g = 'Polybar'",
  93. "class_g = 'Tint2'"
  94. ];
  95. round-borders = 0;
  96. round-borders-exclude = [
  97. #"! name~=''",
  98. ];
  99. # Fading
  100. # ---
  101. # Fade windows during opacity changes.
  102. fading = true;
  103. # The time between steps in a fade in milliseconds. (default 10).
  104. fade-delta = 4;
  105. # Opacity change between steps while fading in. (default 0.028).
  106. fade-in-step = 0.03;
  107. # Opacity change between steps while fading out. (default 0.03).
  108. fade-out-step = 0.03;
  109. # Fade windows in/out when opening/closing
  110. no-fading-openclose = false;
  111. # Specify a list of conditions of windows that should not be faded.
  112. fade-exclude = [
  113. "class_g = 'slop'"
  114. ];
  115. # Kawase Blur
  116. # ---
  117. #blur: {
  118. # method = "kawase";
  119. # strength = 8;
  120. # background = false;
  121. # background-frame = false;
  122. # background-fixed = false;
  123. #}
  124. #blur-background-exclude = [
  125. # "! name~=''",
  126. # "window_type = 'dock'",
  127. # "window_type = 'desktop'",
  128. # "class_g = 'Rofi'",
  129. # "class_g = 'slop'",
  130. # "_GTK_FRAME_EXTENTS@:c"
  131. #];
  132. # Other
  133. # ---
  134. # Try to detect WM windows and mark them as active.
  135. mark-wmwin-focused = true;
  136. # Mark all non-WM but override-redirect windows active (e.g. menus).
  137. mark-ovredir-focused = true;
  138. # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
  139. # Usually more reliable but depends on a EWMH-compliant WM.
  140. use-ewmh-active-win = true;
  141. # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
  142. detect-rounded-corners = true;
  143. # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
  144. # This prevents opacity being ignored for some apps.
  145. # For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
  146. detect-client-opacity = true;
  147. # Specify refresh rate of the screen.
  148. # If not specified or 0, picom will try detecting this with X RandR extension.
  149. refresh-rate = 0;
  150. # Vertical synchronization: match the refresh rate of the monitor
  151. vsync = true;
  152. # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
  153. # Reported to have no effect, though.
  154. dbe = false;
  155. # Limit picom to repaint at most once every 1 / refresh_rate second to boost performance.
  156. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
  157. # unless you wish to specify a lower refresh rate than the actual value.
  158. #sw-opti = true;
  159. # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
  160. # Known to cause flickering when redirecting/unredirecting windows.
  161. unredir-if-possible = false;
  162. # Specify a list of conditions of windows that should always be considered focused.
  163. focus-exclude = [ ];
  164. # Specify a list of opacity rules, in the format `PERCENT:PATTERN`,
  165. # like `50:name *= "Firefox"`. picom-trans is recommended over this.
  166. # Note we don't make any guarantee about possible conflicts with other
  167. # programs that set '_NET_WM_WINDOW_OPACITY' on frame or client windows.
  168. # example:
  169. # opacity-rule = [ "80:class_g = 'URxvt'" ];
  170. #
  171. opacity-rule = [ ];
  172. # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
  173. detect-transient = true;
  174. # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
  175. # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
  176. detect-client-leader = true;
  177. # Window type settings
  178. # ---
  179. # fade: Fade the particular type of windows.
  180. # shadow: Give those windows shadow
  181. # opacity: Default opacity for the type of windows.
  182. # focus: Whether to always consider windows of this type focused.
  183. wintypes: {
  184. tooltip = { fade = true; shadow = true; opacity = 1.00; };
  185. menu = { fade = true; shadow = true; opacity = 1.00; };
  186. popup_menu = { fade = true; shadow = true; opacity = 1.00; };
  187. dropdown_menu = { fade = true; shadow = true; opacity = 1.00; };
  188. utility = { fade = true; shadow = true; opacity = 1.00; };
  189. dialog = { fade = true; shadow = true; opacity = 1.00; };
  190. notify = { fade = true; shadow = true; opacity = 1.00; };
  191. unknown = { fade = true; shadow = true; opacity = 1.00; };
  192. };
  193. # XSync
  194. # ---
  195. # Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
  196. xrender-sync-fence = true;