Advertisement
discrust

picom.conf

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