.picom.conf 7.7 KB

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