compton.conf 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243
  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 = "xrender";
  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 = true;
  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 = true;
  49. # The blur radius for shadows. (default 12)
  50. shadow-radius = 8;
  51. # The left offset for shadows. (default -15)
  52. shadow-offset-x = -10;
  53. # The top offset for shadows. (default -15)
  54. shadow-offset-y = -10;
  55. # The translucency for shadows. (default .75)
  56. shadow-opacity = 0.40;
  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. "class_g = 'Cairo-clock'" ,
  66. "class_g = 'CoverGloobus'",
  67. "class_g = 'Tilda'",
  68. "name ?= 'gnome-pie'",
  69. "class_g = 'Firefox'",
  70. "class_g = 'Firefox-esr'",
  71. "class_g = 'Dmenu'",
  72. "class_g ?= 'rofi'",
  73. "class_g ?= 'polybar'",
  74. "name = 'Notification'",
  75. "name = 'Plank'",
  76. "name = 'Docky'",
  77. "name = 'Kupfer'",
  78. #"name = 'xfce4-notifyd'",
  79. "name *= 'VLC'",
  80. "name *= 'Chromium'",
  81. "name *= 'Chrome'",
  82. "class_g = 'Conky'",
  83. "class_g = 'Plank'",
  84. "class_g = 'Kupfer'",
  85. "class_g = 'Synapse'",
  86. "class_g ?= 'Notify-osd'",
  87. "class_g ?= 'Cairo-dock'",
  88. #"class_g ?= 'Xfce4-notifyd'",
  89. #"class_g ?= 'Xfce4-power-manager'",
  90. "_GTK_FRAME_EXTENTS@:c",
  91. "_NET_WM_STATE@:32a *= '_NET_WM_STATE_HIDDEN'"
  92. ];
  93. # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
  94. shadow-ignore-shaped = false;
  95. #################################
  96. #
  97. # Opacity
  98. #
  99. #################################
  100. inactive-opacity = 1;
  101. active-opacity = 1;
  102. frame-opacity = 1;
  103. inactive-opacity-override = false;
  104. # Dim inactive windows. (0.0 - 1.0)
  105. # inactive-dim = 0.2;
  106. # Do not let dimness adjust based on window opacity.
  107. # inactive-dim-fixed = true;
  108. # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
  109. blur-background = false;
  110. # Blur background of opaque windows with transparent frames as well.
  111. blur-background-frame = false;
  112. # Do not let blur radius adjust based on window opacity.
  113. blur-method = "kawase";
  114. blur-strength = 12;
  115. blur-background-fixed = false;
  116. blur-background-exclude = [
  117. "window_type = 'dock'",
  118. "window_type = 'desktop'",
  119. "class_g = 'slop'",
  120. "_GTK_FRAME_EXTENTS@:c"
  121. ];
  122. #################################
  123. #
  124. # Fading
  125. #
  126. #################################
  127. # Fade windows during opacity changes.
  128. fading = true;
  129. # The time between steps in a fade in milliseconds. (default 10).
  130. fade-delta = 3;
  131. # Opacity change between steps while fading in. (default 0.028).
  132. fade-in-step = 0.03;
  133. # Opacity change between steps while fading out. (default 0.03).
  134. fade-out-step = 0.03;
  135. # Fade windows in/out when opening/closing
  136. # no-fading-openclose = true;
  137. # Specify a list of conditions of windows that should not be faded.
  138. fade-exclude = [ ];
  139. #################################
  140. #
  141. # Other
  142. #
  143. #################################
  144. # Try to detect WM windows and mark them as active.
  145. mark-wmwin-focused = true;
  146. # Mark all non-WM but override-redirect windows active (e.g. menus).
  147. mark-ovredir-focused = true;
  148. # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
  149. # Usually more reliable but depends on a EWMH-compliant WM.
  150. use-ewmh-active-win = true;
  151. # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
  152. detect-rounded-corners = true;
  153. # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
  154. # This prevents opacity being ignored for some apps.
  155. # For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
  156. detect-client-opacity = true;
  157. # Specify refresh rate of the screen.
  158. # If not specified or 0, picom will try detecting this with X RandR extension.
  159. refresh-rate = 0;
  160. # Vertical synchronization: match the refresh rate of the monitor
  161. vsync = true;
  162. # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
  163. # Reported to have no effect, though.
  164. dbe = false;
  165. # Limit picom to repaint at most once every 1 / refresh_rate second to boost performance.
  166. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
  167. # unless you wish to specify a lower refresh rate than the actual value.
  168. #sw-opti = true;
  169. # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
  170. # Known to cause flickering when redirecting/unredirecting windows.
  171. unredir-if-possible = false;
  172. # Specify a list of conditions of windows that should always be considered focused.
  173. focus-exclude = [ ];
  174. # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
  175. detect-transient = true;
  176. # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
  177. # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
  178. detect-client-leader = true;
  179. #################################
  180. #
  181. # Window type settings
  182. #
  183. #################################
  184. wintypes:
  185. {
  186. tooltip =
  187. {
  188. # fade: Fade the particular type of windows.
  189. fade = true;
  190. # shadow: Give those windows shadow
  191. shadow = true;
  192. # opacity: Default opacity for the type of windows.
  193. opacity = 0.95;
  194. # focus: Whether to always consider windows of this type focused.
  195. focus = true;
  196. };
  197. utility =
  198. {
  199. shadow = false;
  200. };
  201. };
  202. ######################
  203. #
  204. # XSync
  205. # See: https://github.com/yshui/picom/commit/b18d46bcbdc35a3b5620d817dd46fbc76485c20d
  206. #
  207. ######################
  208. # Use X Sync fence to sync clients' draw calls. Needed on nvidia-drivers with GLX backend for some users.
  209. xrender-sync-fence = true;