SHARE
TWEET

Configuración compton

duvsu Nov 15th, 2016 (edited) 130 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #CONFIGURACION COMPTON
  2. #################################
  3. #
  4. # Backend
  5. #
  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. #
  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. # Useful with --glx-swap-method, as well.
  25. glx-copy-from-front = false;
  26.  
  27. # GLX backend: Use MESA_copy_sub_buffer to do partial screen update.
  28. # My tests on nouveau shows a 200% performance boost when only 1/4 of the screen is updated.
  29. # May break VSync and is not available on some drivers.
  30. # Overrides --glx-copy-from-front.
  31. # glx-use-copysubbuffermesa = true;
  32.  
  33. # GLX backend: Avoid rebinding pixmap on window damage.
  34. # Probably could improve performance on rapid window content changes, but is known to break things on some drivers (LLVMpipe).
  35. # Recommended if it works.
  36. # glx-no-rebind-pixmap = true;
  37.  
  38.  
  39. # GLX backend: GLX buffer swap method we assume.
  40. # Could be undefined (0), copy (1), exchange (2), 3-6, or buffer-age (-1).
  41. # undefined is the slowest and the safest, and the default value.
  42. # copy is fastest, but may fail on some drivers,
  43. # 2-6 are gradually slower but safer (6 is still faster than 0).
  44. # Usually, double buffer means 2, triple buffer means 3.
  45. # buffer-age means auto-detect using GLX_EXT_buffer_age, supported by some drivers.
  46. # Useless with --glx-use-copysubbuffermesa.
  47. # Partially breaks --resize-damage.
  48. # Defaults to undefined.
  49. glx-swap-method = "undefined";
  50.  
  51. #################################
  52. #
  53. # Shadows
  54. #
  55. #################################
  56.  
  57. # Enabled client-side shadows on windows.
  58. shadow = true;
  59. # Don't draw shadows on DND windows.
  60. no-dnd-shadow = true;
  61. # Avoid drawing shadows on dock/panel windows.
  62. no-dock-shadow = true;
  63. # Zero the part of the shadow's mask behind the window. Fix some weirdness with ARGB windows.
  64. clear-shadow = true;
  65. # The blur radius for shadows. (default 12)
  66. shadow-radius = 5;
  67. # The left offset for shadows. (default -15)
  68. shadow-offset-x = -5;
  69. # The top offset for shadows. (default -15)
  70. shadow-offset-y = -5;
  71. # The translucency for shadows. (default .75)
  72. shadow-opacity = 0.5;
  73.  
  74. # Set if you want different colour shadows
  75. # shadow-red = 0.0;
  76. # shadow-green = 0.0;
  77. # shadow-blue = 0.0;
  78.  
  79. # 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
  80. # (most applications are fine, only apps that do weird things with xshapes or argb are affected).
  81. # 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.
  82. shadow-exclude = [
  83.     "! name~=''",
  84.     "name = 'Notification'",
  85.     "name = 'Plank'",
  86.     "name = 'Docky'",
  87.     "name = 'Kupfer'",
  88.     "name = 'xfce4-notifyd'",
  89.     "name *= 'VLC'",
  90.     "name *= 'compton'",
  91.     "name *= 'Chromium'",
  92.     "name *= 'Chrome'",
  93.     "class_g = 'Conky'",
  94.     "class_g = 'Kupfer'",
  95.     "class_g = 'Synapse'",
  96.     "class_g ?= 'Notify-osd'",
  97.     "class_g ?= 'Cairo-dock'",
  98.     "class_g ?= 'Xfce4-notifyd'",
  99.     "class_g ?= 'Xfce4-power-manager'",
  100.     "_GTK_FRAME_EXTENTS@:c"
  101. ];
  102. # Avoid drawing shadow on all shaped windows (see also: --detect-rounded-corners)
  103. shadow-ignore-shaped = false;
  104.  
  105. #################################
  106. #
  107. # Opacity
  108. #
  109. #################################
  110.  
  111. menu-opacity = 1;
  112. inactive-opacity = 1;
  113. active-opacity = 1;
  114. frame-opacity = 1;
  115. inactive-opacity-override = false;
  116. alpha-step = 0.06;
  117.  
  118. # Dim inactive windows. (0.0 - 1.0)
  119. # inactive-dim = 0.2;
  120. # Do not let dimness adjust based on window opacity.
  121. # inactive-dim-fixed = true;
  122. # Blur background of transparent windows. Bad performance with X Render backend. GLX backend is preferred.
  123. # blur-background = true;
  124. # Blur background of opaque windows with transparent frames as well.
  125. # blur-background-frame = true;
  126. # Do not let blur radius adjust based on window opacity.
  127. blur-background-fixed = false;
  128. blur-background-exclude = [
  129.     "window_type = 'dock'",
  130.     "window_type = 'desktop'"
  131. ];
  132.  
  133. #################################
  134. #
  135. # Fading
  136. #
  137. #################################
  138.  
  139. # Fade windows during opacity changes.
  140. fading = true;
  141. # The time between steps in a fade in milliseconds. (default 10).
  142. fade-delta = 4;
  143. # Opacity change between steps while fading in. (default 0.028).
  144. fade-in-step = 0.03;
  145. # Opacity change between steps while fading out. (default 0.03).
  146. fade-out-step = 0.03;
  147. # Fade windows in/out when opening/closing
  148. # no-fading-openclose = true;
  149.  
  150. # Specify a list of conditions of windows that should not be faded.
  151. fade-exclude = [ ];
  152.  
  153. #################################
  154. #
  155. # Other
  156. #
  157. #################################
  158.  
  159. # Try to detect WM windows and mark them as active.
  160. mark-wmwin-focused = true;
  161. # Mark all non-WM but override-redirect windows active (e.g. menus).
  162. mark-ovredir-focused = true;
  163. # Use EWMH _NET_WM_ACTIVE_WINDOW to determine which window is focused instead of using FocusIn/Out events.
  164. # Usually more reliable but depends on a EWMH-compliant WM.
  165. use-ewmh-active-win = true;
  166. # Detect rounded corners and treat them as rectangular when --shadow-ignore-shaped is on.
  167. detect-rounded-corners = true;
  168.  
  169. # Detect _NET_WM_OPACITY on client windows, useful for window managers not passing _NET_WM_OPACITY of client windows to frame windows.
  170. # This prevents opacity being ignored for some apps.
  171. # For example without this enabled my xfce4-notifyd is 100% opacity no matter what.
  172. detect-client-opacity = true;
  173.  
  174. # Specify refresh rate of the screen.
  175. # If not specified or 0, compton will try detecting this with X RandR extension.
  176. refresh-rate = 0;
  177.  
  178. # Set VSync method. VSync methods currently available:
  179. # none: No VSync
  180. # drm: VSync with DRM_IOCTL_WAIT_VBLANK. May only work on some drivers.
  181. # opengl: Try to VSync with SGI_video_sync OpenGL extension. Only work on some drivers.
  182. # opengl-oml: Try to VSync with OML_sync_control OpenGL extension. Only work on some drivers.
  183. # opengl-swc: Try to VSync with SGI_swap_control OpenGL extension. Only work on some drivers. Works only with GLX backend. Known to be most effective on many drivers. Does not actually control paint timing, only buffer swap is affected, so it doesn’t have the effect of --sw-opti unlike other methods. Experimental.
  184. # opengl-mswc: Try to VSync with MESA_swap_control OpenGL extension. Basically the same as opengl-swc above, except the extension we use.
  185. # (Note some VSync methods may not be enabled at compile time.)
  186. vsync = "opengl-swc";
  187.  
  188. # Enable DBE painting mode, intended to use with VSync to (hopefully) eliminate tearing.
  189. # Reported to have no effect, though.
  190. dbe = false;
  191. # Painting on X Composite overlay window. Recommended.
  192. paint-on-overlay = true;
  193.  
  194. # Limit compton to repaint at most once every 1 / refresh_rate second to boost performance.
  195. # This should not be used with --vsync drm/opengl/opengl-oml as they essentially does --sw-opti's job already,
  196. # unless you wish to specify a lower refresh rate than the actual value.
  197. sw-opti = true;
  198.  
  199. # Unredirect all windows if a full-screen opaque window is detected, to maximize performance for full-screen windows, like games.
  200. # Known to cause flickering when redirecting/unredirecting windows.
  201. # paint-on-overlay may make the flickering less obvious.
  202. unredir-if-possible = true;
  203.  
  204. # Specify a list of conditions of windows that should always be considered focused.
  205. focus-exclude = [ ];
  206.  
  207. # Use WM_TRANSIENT_FOR to group windows, and consider windows in the same group focused at the same time.
  208. detect-transient = true;
  209. # Use WM_CLIENT_LEADER to group windows, and consider windows in the same group focused at the same time.
  210. # WM_TRANSIENT_FOR has higher priority if --detect-transient is enabled, too.
  211. detect-client-leader = true;
  212.  
  213. #################################
  214. #
  215. # Window type settings
  216. #
  217. #################################
  218.  
  219. wintypes:
  220. {
  221.     tooltip =
  222.     {
  223.         # fade: Fade the particular type of windows.
  224.         fade = true;
  225.         # shadow: Give those windows shadow
  226.         shadow = false;
  227.         # opacity: Default opacity for the type of windows.
  228.         opacity = 0.85;
  229.         # focus: Whether to always consider windows of this type focused.
  230.         focus = true;
  231.     };
  232. };
RAW Paste Data
Top